|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.figures.NullFigure
public class NullFigure
Field Summary |
---|
Fields inherited from interface org.jhotdraw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
NullFigure()
|
Method Summary | |
---|---|
void |
basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
Changes the display box of a figure. |
java.lang.Object |
clone()
Returns a Clone of this figure |
FigureEnumeration |
decompose()
Decomposes a figure into its parts. |
java.awt.Rectangle |
displayBox()
Gets the display box of a figure |
void |
draw(java.awt.Graphics g)
Draws the figure. |
FigureEnumeration |
figures()
Returns an Enumeration of the figures contained in this figure |
Figure |
findFigureInside(int x,
int y)
Returns the figure that contains the given point. |
java.lang.Object |
getAttribute(FigureAttributeConstant attributeConstant)
Returns the named attribute or null if a a figure doesn't have an attribute. |
java.lang.Object |
getAttribute(java.lang.String name)
Deprecated. use getAttribute(FigureAttributeConstant) instead |
HandleEnumeration |
handles()
Returns the handles used to manipulate the figure. |
boolean |
includes(Figure figure)
Checks whether the given figure is contained in this figure. |
void |
invalidate()
Invalidates the figure. |
boolean |
isEmpty()
Checks if the Figure should be considered as empty. |
void |
release()
Releases a figure's resources. |
void |
setAttribute(FigureAttributeConstant attributeConstant,
java.lang.Object value)
Sets the named attribute to the new value |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. use setAttribute(FigureAttributeConstant, Object) instead |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
---|
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, displayBox, displayBox, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, listener, moveBy, read, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullFigure()
Method Detail |
---|
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)
basicDisplayBox
in interface Figure
basicDisplayBox
in class AbstractFigure
origin
- the new origincorner
- the new cornerdisplayBox()
public java.awt.Rectangle displayBox()
displayBox
in interface Figure
displayBox
in class AbstractFigure
basicDisplayBox(java.awt.Point, java.awt.Point)
public void draw(java.awt.Graphics g)
g
- the Graphics to draw intopublic HandleEnumeration handles()
handles
in interface Figure
handles
in class AbstractFigure
Handle
public boolean isEmpty()
isEmpty
in interface Figure
isEmpty
in class AbstractFigure
Figure.isEmpty()
public FigureEnumeration figures()
figures
in interface Figure
figures
in class AbstractFigure
CompositeFigure
public Figure findFigureInside(int x, int y)
findFigureInside
in interface Figure
findFigureInside
in class AbstractFigure
AbstractFigure.containsPoint(int, int)
public java.lang.Object clone()
clone
in interface Figure
clone
in class AbstractFigure
Figure.clone()
public boolean includes(Figure figure)
includes
in interface Figure
includes
in class AbstractFigure
public FigureEnumeration decompose()
decompose
in interface Figure
decompose
in class AbstractFigure
public void release()
release
in interface Figure
release
in class AbstractFigure
Figure.release()
public void invalidate()
invalidate
in interface Figure
invalidate
in class AbstractFigure
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface Figure
getAttribute
in class AbstractFigure
public java.lang.Object getAttribute(FigureAttributeConstant attributeConstant)
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 setAttribute(FigureAttributeConstant attributeConstant, java.lang.Object value)
setAttribute
in interface Figure
setAttribute
in class AbstractFigure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |