|
|||||||||
| 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 Form| Field 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 FigurebasicDisplayBox in class AbstractFigureorigin - the new origincorner - the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)public java.util.Vector handles()
AbstractFigure
handles in interface Figurehandles in class AbstractFigureHandlepublic java.awt.Rectangle displayBox()
AbstractFigure
displayBox in interface FiguredisplayBox in class AbstractFigureFigure.basicDisplayBox(java.awt.Point, java.awt.Point)
protected void basicMoveBy(int x,
int y)
AbstractFigure
basicMoveBy in class AbstractFigureAbstractFigure.moveBy(int, int)public void draw(java.awt.Graphics g)
AttributeFigure
draw in interface Figuredraw in class AttributeFigureg - the Graphics to draw into
public boolean imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
imageUpdate in interface java.awt.image.ImageObserverpublic void write(StorableOutput dw)
write in interface Storablewrite in class AttributeFigure
public void read(StorableInput dr)
throws java.io.IOException
read in interface Storableread in class AttributeFigurejava.io.IOExceptionIconkit.registerImage(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||