All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.DecoratorFigure
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.standard.DecoratorFigure
- public abstract class DecoratorFigure
- extends AbstractFigure
- implements FigureChangeListener
DecoratorFigure can be used to decorate other figures with
decorations like borders. Decorator forwards all the
methods to their contained figure. Subclasses can selectively
override these methods to extend and filter their behavior.
Design Patterns
Decorator
DecoratorFigure is a decorator.
- See Also:
- Figure
-
fComponent
- The decorated figure.
-
DecoratorFigure()
-
-
DecoratorFigure(Figure)
- Constructs a DecoratorFigure and decorates the passed in figure.
-
basicDisplayBox(Point, Point)
- Forwards basicDisplayBox to its contained figure.
-
basicMoveBy(int, int)
- Forwards basicMoveBy to its contained figure.
-
canConnect()
- Forwards the canConnect to its contained figure..
-
connectedTextLocator(Figure)
- Returns the locator used to located connected text.
-
connectionInsets()
- Forwards the connection insets to its contained figure..
-
connectorAt(int, int)
- Returns the Connector for the given location.
-
connectorVisibility(boolean)
- Forwards the connector visibility request to its component.
-
containsPoint(int, int)
- Forwards containsPoint to its contained figure.
-
decompose()
- Forwards decompose to its contained figure.
-
decorate(Figure)
- Decorates the given figure.
-
displayBox()
- Forwards displayBox to its contained figure.
-
draw(Graphics)
- Forwards draw to its contained figure.
-
figureChanged(FigureChangeEvent)
-
-
figureInvalidated(FigureChangeEvent)
- Propagates invalidate up the container chain.
-
figureRemoved(FigureChangeEvent)
-
-
figureRequestRemove(FigureChangeEvent)
- Propagates the removeFromDrawing request up to the container.
-
figureRequestUpdate(FigureChangeEvent)
- Propagates figureRequestUpdate up the container chain.
-
figures()
- Forwards figures to its contained figure.
-
findFigureInside(int, int)
- Forwards findFigureInside to its contained figure.
-
getAttribute(String)
- Forwards getAttribute to its contained figure.
-
handles()
- Forwards handles to its contained figure.
-
includes(Figure)
- Forwards includes to its contained figure.
-
moveBy(int, int)
- Forwards moveBy to its contained figure.
-
peelDecoration()
- Removes the decoration from the contained figure.
-
read(StorableInput)
- Reads itself and the contained figure from the StorableInput.
-
release()
- Releases itself and the contained figure.
-
setAttribute(String, Object)
- Forwards setAttribute to its contained figure.
-
write(StorableOutput)
- Writes itself and the contained figure to the StorableOutput.
fComponent
protected Figure fComponent
- The decorated figure.
DecoratorFigure
public DecoratorFigure()
DecoratorFigure
public DecoratorFigure(Figure figure)
- Constructs a DecoratorFigure and decorates the passed in figure.
connectionInsets
public Insets connectionInsets()
- Forwards the connection insets to its contained figure..
- Overrides:
- connectionInsets in class AbstractFigure
canConnect
public boolean canConnect()
- Forwards the canConnect to its contained figure..
- Overrides:
- canConnect in class AbstractFigure
containsPoint
public boolean containsPoint(int x,
int y)
- Forwards containsPoint to its contained figure.
- Overrides:
- containsPoint in class AbstractFigure
decorate
public void decorate(Figure figure)
- Decorates the given figure.
peelDecoration
public Figure peelDecoration()
- Removes the decoration from the contained figure.
displayBox
public Rectangle displayBox()
- Forwards displayBox to its contained figure.
- Overrides:
- displayBox in class AbstractFigure
basicDisplayBox
public void basicDisplayBox(Point origin,
Point corner)
- Forwards basicDisplayBox to its contained figure.
- Overrides:
- basicDisplayBox in class AbstractFigure
draw
public void draw(Graphics g)
- Forwards draw to its contained figure.
- Overrides:
- draw in class AbstractFigure
findFigureInside
public Figure findFigureInside(int x,
int y)
- Forwards findFigureInside to its contained figure.
- Overrides:
- findFigureInside in class AbstractFigure
handles
public Vector handles()
- Forwards handles to its contained figure.
- Overrides:
- handles in class AbstractFigure
includes
public boolean includes(Figure figure)
- Forwards includes to its contained figure.
- Overrides:
- includes in class AbstractFigure
moveBy
public void moveBy(int x,
int y)
- Forwards moveBy to its contained figure.
- Overrides:
- moveBy in class AbstractFigure
basicMoveBy
protected void basicMoveBy(int x,
int y)
- Forwards basicMoveBy to its contained figure.
- Overrides:
- basicMoveBy in class AbstractFigure
release
public void release()
- Releases itself and the contained figure.
- Overrides:
- release in class AbstractFigure
figureInvalidated
public void figureInvalidated(FigureChangeEvent e)
- Propagates invalidate up the container chain.
- See Also:
- FigureChangeListener
figureChanged
public void figureChanged(FigureChangeEvent e)
figureRemoved
public void figureRemoved(FigureChangeEvent e)
figureRequestUpdate
public void figureRequestUpdate(FigureChangeEvent e)
- Propagates figureRequestUpdate up the container chain.
- See Also:
- FigureChangeListener
figureRequestRemove
public void figureRequestRemove(FigureChangeEvent e)
- Propagates the removeFromDrawing request up to the container.
- See Also:
- FigureChangeListener
figures
public FigureEnumeration figures()
- Forwards figures to its contained figure.
- Overrides:
- figures in class AbstractFigure
decompose
public FigureEnumeration decompose()
- Forwards decompose to its contained figure.
- Overrides:
- decompose in class AbstractFigure
setAttribute
public void setAttribute(String name,
Object value)
- Forwards setAttribute to its contained figure.
- Overrides:
- setAttribute in class AbstractFigure
getAttribute
public Object getAttribute(String name)
- Forwards getAttribute to its contained figure.
- Overrides:
- getAttribute in class AbstractFigure
connectedTextLocator
public Locator connectedTextLocator(Figure text)
- Returns the locator used to located connected text.
- Overrides:
- connectedTextLocator in class AbstractFigure
connectorAt
public Connector connectorAt(int x,
int y)
- Returns the Connector for the given location.
- Overrides:
- connectorAt in class AbstractFigure
connectorVisibility
public void connectorVisibility(boolean isVisible)
- Forwards the connector visibility request to its component.
- Overrides:
- connectorVisibility in class AbstractFigure
write
public void write(StorableOutput dw)
- Writes itself and the contained figure to the StorableOutput.
- Overrides:
- write in class AbstractFigure
read
public void read(StorableInput dr) throws IOException
- Reads itself and the contained figure from the StorableInput.
- Overrides:
- read in class AbstractFigure
All Packages Class Hierarchy This Package Previous Next Index