|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
org.openbp.cockpit.modeler.figures.generic.BasicFigure
public abstract class BasicFigure
Extended figure.
| Field Summary | |
|---|---|
static java.lang.String |
DECO_FILLCOLOR
Decoration key for the fill color (used with Color objects) |
static java.lang.String |
DECO_OVERLAY
Decoration key for overlay figures (used with Figure objects) |
| Fields inherited from interface CH.ifa.draw.framework.Figure |
|---|
POPUP_MENU |
| Constructor Summary | |
|---|---|
BasicFigure()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a clone of this object. |
protected java.lang.Object |
decorateValue(java.lang.String key,
java.lang.Object value)
Determines the decoration for this figure using the given key. |
void |
draw(java.awt.Graphics g)
Draws the figure in the given graphics. |
protected void |
drawFigure(java.awt.Graphics g)
Draws the figure. |
java.lang.Object |
getDecorationOwner()
Returns the decoration owner. |
java.awt.Color |
getDefaultFillColor()
Gets the default fill color. |
java.awt.Color |
getFillColor()
Gets the fill color. |
CH.ifa.draw.framework.Figure |
getParent()
Gets the parent figure of this figure. |
void |
setFillColor(java.awt.Color fillColor)
Sets the fill color. |
void |
setParent(CH.ifa.draw.framework.Figure parent)
Sets the parent figure of this figure. |
| Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
|---|
addFigureChangeListener, addToContainer, basicDisplayBox, basicMoveBy, canConnect, center, changed, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, read, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface CH.ifa.draw.framework.Figure |
|---|
addFigureChangeListener, addToContainer, basicDisplayBox, canConnect, center, changed, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange |
| Methods inherited from interface CH.ifa.draw.util.Storable |
|---|
read, write |
| Field Detail |
|---|
public static final java.lang.String DECO_FILLCOLOR
public static final java.lang.String DECO_OVERLAY
| Constructor Detail |
|---|
public BasicFigure()
| Method Detail |
|---|
public java.lang.Object clone()
clone in interface CH.ifa.draw.framework.Figureclone in class CH.ifa.draw.standard.AbstractFigure
protected java.lang.Object decorateValue(java.lang.String key,
java.lang.Object value)
getDecorationOwner() method to determine the owner of the figure.
key - Decoration keyvalue - Value used for the decoration
public java.lang.Object getDecorationOwner()
public void draw(java.awt.Graphics g)
drawFigure(java.awt.Graphics).
draw in interface CH.ifa.draw.framework.Figuredraw in class CH.ifa.draw.standard.AbstractFigureg - Graphics to draw toAbstractFigure.draw(Graphics g)protected void drawFigure(java.awt.Graphics g)
g - Graphics to draw topublic CH.ifa.draw.framework.Figure getParent()
ChildFigure
getParent in interface ChildFigureChildFigure.getParent()public void setParent(CH.ifa.draw.framework.Figure parent)
ChildFigure
setParent in interface ChildFigureparent - The parent or null if the figure does not have a parentChildFigure.setParent(Figure)public java.awt.Color getFillColor()
getFillColor in interface Colorizablepublic void setFillColor(java.awt.Color fillColor)
setFillColor in interface ColorizablefillColor - Fill color or null for no fill colorpublic java.awt.Color getDefaultFillColor()
getDefaultFillColor in interface Colorizable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||