|
|||||||||
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
public abstract class AttributeFigure
A figure that can keep track of an open ended set of attributes. The attributes are stored in a dictionary implemented by FigureAttributes.
Figure
,
Handle
,
FigureAttributes
,
Serialized FormField Summary |
---|
Fields inherited from interface CH.ifa.draw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
protected |
AttributeFigure()
|
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
Draws the figure in the given graphics. |
protected void |
drawBackground(java.awt.Graphics g)
Draws the background of the figure. |
protected void |
drawFrame(java.awt.Graphics g)
Draws the frame of the figure. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named attribute or null if a a figure doesn't have an attribute. |
static java.lang.Object |
getDefaultAttribute(java.lang.String name)
Gets a the default value for a named attribute |
java.awt.Color |
getFillColor()
Gets the fill color of a figure. |
java.awt.Color |
getFrameColor()
Gets the frame color of a figure. |
void |
read(StorableInput dr)
Reads the Figure from a StorableInput. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the named attribute to the new value |
void |
write(StorableOutput dw)
Stores the Figure to a StorableOutput. |
Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
---|
addFigureChangeListener, addToContainer, basicDisplayBox, basicMoveBy, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, figures, findFigureInside, handles, 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 |
---|
protected AttributeFigure()
Method Detail |
---|
public void draw(java.awt.Graphics g)
g
- the Graphics to draw intoprotected void drawBackground(java.awt.Graphics g)
draw(java.awt.Graphics)
protected void drawFrame(java.awt.Graphics g)
draw(java.awt.Graphics)
public java.awt.Color getFillColor()
getAttribute(java.lang.String)
public java.awt.Color getFrameColor()
getAttribute(java.lang.String)
public static java.lang.Object getDefaultAttribute(java.lang.String name)
getAttribute(java.lang.String)
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface Figure
getAttribute
in class AbstractFigure
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface Figure
setAttribute
in class AbstractFigure
public void write(StorableOutput dw)
write
in interface Storable
write
in class AbstractFigure
public void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
read
in class AbstractFigure
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |