Class ImageAttachment
All Packages Class Hierarchy This Package Previous Next Index
Class ImageAttachment
public class netscape.application.ImageAttachment
extends netscape.application.TextAttachment
implements netscape.util.Codable
{
/* Constructors
*/
public ImageAttachment();
public ImageAttachment(Image);
/* Methods
*/
public void decode(Decoder);
public void describeClassInfo(ClassInfo);
public void drawInRect(Graphics, Rect);
public void encode(Encoder);
public void finishDecoding();
public int height();
public Image image();
public void setImage(Image);
public int width();
}
TextAttachment subclass for placing an Image among a TextView's characters.
Constructors
ImageAttachment
public ImageAttachment()
- Constructs an empty ImageAttachment.
ImageAttachment
public ImageAttachment(Image anImage)
- Constructs an ImageAttachment containing anImage.
Methods
setImage
public void setImage(Image anImage)
- Set the ImageAttachment's Image to anImage.
image
public Image image()
- Returns the ImageAttachment's Image.
- See Also:
- setImage
width
public int width()
- Overridden to return the ImageAttachment's width.
- Overrides:
- width in class TextAttachment
height
public int height()
- Overridden to return the ImageAttachment's height.
- Overrides:
- height in class TextAttachment
drawInRect
public void drawInRect(Graphics g,
Rect boundsRect)
- Draws the ImageAttachment's Image.
- Overrides:
- drawInRect in class TextAttachment
describeClassInfo
public void describeClassInfo(ClassInfo info)
- Describes the ImageAttachment class' information.
- Overrides:
- describeClassInfo in class TextAttachment
- See Also:
- describeClassInfo
encode
public void encode(Encoder encoder) throws CodingException
- Encodes the ImageAttachment instance.
- Overrides:
- encode in class TextAttachment
- See Also:
- encode
decode
public void decode(Decoder decoder) throws CodingException
- Decodes the ImageAttachment instance.
- Overrides:
- decode in class TextAttachment
- See Also:
- decode
finishDecoding
public void finishDecoding() throws CodingException
- Finishes the ImageAttachment's decoding.
- Overrides:
- finishDecoding in class TextAttachment
- See Also:
- finishDecoding
All Packages Class Hierarchy This Package Previous Next Index