All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.figures.ImageFigure
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.figures.AttributeFigure
|
+----CH.ifa.draw.figures.ImageFigure
- public class ImageFigure
- extends AttributeFigure
- implements ImageObserver
A Figure that shows an Image.
Images shown by an image figure are shared by using the Iconkit.
- See Also:
- Iconkit
-
ImageFigure()
-
-
ImageFigure(Image, String, Point)
-
-
basicDisplayBox(Point, Point)
- Sets the display box of a figure.
-
basicMoveBy(int, int)
- Moves the figure.
-
displayBox()
- Gets the display box of a figure.
-
draw(Graphics)
- Draws the figure in the given graphics.
-
handles()
- Returns the handles of a Figure that can be used
to manipulate some of its attributes.
-
imageUpdate(Image, int, int, int, int, int)
- Handles asynchroneous image updates.
-
read(StorableInput)
- Reads the ImageFigure from a StorableInput.
-
write(StorableOutput)
- Writes the ImageFigure to a StorableOutput.
ImageFigure
public ImageFigure()
ImageFigure
public ImageFigure(Image image,
String fileName,
Point origin)
basicDisplayBox
public void basicDisplayBox(Point origin,
Point corner)
- Sets the display box of a figure.
- Overrides:
- basicDisplayBox in class AbstractFigure
handles
public Vector handles()
- Returns the handles of a Figure that can be used
to manipulate some of its attributes.
- Overrides:
- handles in class AbstractFigure
displayBox
public Rectangle displayBox()
- Gets the display box of a figure.
- Overrides:
- displayBox in class AbstractFigure
basicMoveBy
protected void basicMoveBy(int x,
int y)
- Moves the figure.
- Overrides:
- basicMoveBy in class AbstractFigure
draw
public void draw(Graphics g)
- Draws the figure in the given graphics.
- Overrides:
- draw in class AttributeFigure
imageUpdate
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int w,
int h)
- Handles asynchroneous image updates.
write
public void write(StorableOutput dw)
- Writes the ImageFigure to a StorableOutput. Only a reference to the
image, that is its pathname is saved.
- Overrides:
- write in class AttributeFigure
read
public void read(StorableInput dr) throws IOException
- Reads the ImageFigure from a StorableInput. It registers the
referenced figure to be loaded from the Iconkit.
- Overrides:
- read in class AttributeFigure
- See Also:
- registerImage
All Packages Class Hierarchy This Package Previous Next Index