|
|||||||||
| 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.RectangleFigure
public class RectangleFigure
A rectangle figure.
| Field Summary |
|---|
| Fields inherited from interface CH.ifa.draw.framework.Figure |
|---|
POPUP_MENU |
| Constructor Summary | |
|---|---|
RectangleFigure()
|
|
RectangleFigure(java.awt.Point origin,
java.awt.Point corner)
|
|
| 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 |
drawBackground(java.awt.Graphics g)
Draws the background of the figure. |
void |
drawFrame(java.awt.Graphics g)
Draws the frame of the figure. |
java.util.Vector |
handles()
Returns the handles of a Figure that can be used to manipulate some of its attributes. |
void |
read(StorableInput dr)
Reads the Figure from a StorableInput. |
void |
write(StorableOutput dw)
Stores the Figure to a StorableOutput. |
| Methods inherited from class CH.ifa.draw.figures.AttributeFigure |
|---|
draw, 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 RectangleFigure()
public RectangleFigure(java.awt.Point origin,
java.awt.Point corner)
| 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 drawBackground(java.awt.Graphics g)
AttributeFigure
drawBackground in class AttributeFigureAttributeFigure.draw(java.awt.Graphics)public void drawFrame(java.awt.Graphics g)
AttributeFigure
drawFrame in class AttributeFigureAttributeFigure.draw(java.awt.Graphics)public void write(StorableOutput dw)
AttributeFigure
write in interface Storablewrite in class AttributeFigure
public void read(StorableInput dr)
throws java.io.IOException
AttributeFigure
read in interface Storableread in class AttributeFigurejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||