|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.figures.AttributeFigure
CH.ifa.draw.figures.ImageFigure
public class ImageFigure
A Figure that shows an Image. Images shown by an image figure are shared by using the Iconkit.
Iconkit
,
Serialized FormField Summary |
---|
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Fields inherited from interface CH.ifa.draw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
ImageFigure()
|
|
ImageFigure(java.awt.Image image,
java.lang.String fileName,
java.awt.Point origin)
|
Method Summary | |
---|---|
void |
basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
Sets the display box of a figure. |
protected void |
basicMoveBy(int x,
int y)
Moves the figure. |
java.awt.Rectangle |
displayBox()
Gets the display box of a figure. |
void |
draw(java.awt.Graphics g)
Draws the figure in the given graphics. |
java.util.Vector |
handles()
Returns the handles of a Figure that can be used to manipulate some of its attributes. |
boolean |
imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
Handles asynchroneous image updates. |
void |
read(StorableInput dr)
Reads the ImageFigure from a StorableInput. |
void |
write(StorableOutput dw)
Writes the ImageFigure to a StorableOutput. |
Methods inherited from class CH.ifa.draw.figures.AttributeFigure |
---|
drawBackground, drawFrame, getAttribute, getDefaultAttribute, getFillColor, getFrameColor, setAttribute |
Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
---|
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, size, willChange |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFigure()
public ImageFigure(java.awt.Image image, java.lang.String fileName, java.awt.Point origin)
Method Detail |
---|
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)
AbstractFigure
basicDisplayBox
in interface Figure
basicDisplayBox
in class AbstractFigure
origin
- the new origincorner
- the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)
public java.util.Vector handles()
AbstractFigure
handles
in interface Figure
handles
in class AbstractFigure
Handle
public java.awt.Rectangle displayBox()
AbstractFigure
displayBox
in interface Figure
displayBox
in class AbstractFigure
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
protected void basicMoveBy(int x, int y)
AbstractFigure
basicMoveBy
in class AbstractFigure
AbstractFigure.moveBy(int, int)
public void draw(java.awt.Graphics g)
AttributeFigure
draw
in interface Figure
draw
in class AttributeFigure
g
- the Graphics to draw intopublic boolean imageUpdate(java.awt.Image img, int flags, int x, int y, int w, int h)
imageUpdate
in interface java.awt.image.ImageObserver
public void write(StorableOutput dw)
write
in interface Storable
write
in class AttributeFigure
public void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
read
in class AttributeFigure
java.io.IOException
Iconkit.registerImage(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |