|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.standard.DecoratorFigure
org.jhotdraw.figures.BorderDecorator
BorderDecorator decorates an arbitrary Figure with a border.
Field Summary |
Fields inherited from interface org.jhotdraw.framework.Figure |
POPUP_MENU |
Constructor Summary | |
BorderDecorator()
|
|
BorderDecorator(Figure figure)
|
Method Summary | |
java.awt.Insets |
connectionInsets()
Forwards the connection insets to its contained figure.. |
java.awt.Rectangle |
displayBox()
Gets the displaybox including the border. |
void |
draw(java.awt.Graphics g)
Draws a the figure and decorates it with a border. |
void |
figureInvalidated(FigureChangeEvent e)
Invalidates the figure extended by its border. |
java.awt.Point |
getBorderOffset()
|
protected void |
initialize()
Performs additional initialization code before the figure is decorated Subclasses may override this method. |
void |
setBorderOffset(java.awt.Point newBorderOffset)
|
Methods inherited from class org.jhotdraw.standard.DecoratorFigure |
addDependendFigure, basicDisplayBox, basicMoveBy, canConnect, connectedTextLocator, connectorAt, connectorVisibility, containsPoint, decompose, decorate, figureChanged, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, findFigureInside, getAttribute, getAttribute, getDecoratedFigure, getDependendFigures, getTextHolder, handles, includes, moveBy, peelDecoration, read, release, removeDependendFigure, setAttribute, setAttribute, setDecoratedFigure, write |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
addFigureChangeListener, addToContainer, center, changed, clone, displayBox, displayBox, getZValue, invalidate, invalidateRectangle, isEmpty, listener, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BorderDecorator()
public BorderDecorator(Figure figure)
Method Detail |
protected void initialize()
initialize
in class DecoratorFigure
public void setBorderOffset(java.awt.Point newBorderOffset)
public java.awt.Point getBorderOffset()
public void draw(java.awt.Graphics g)
draw
in interface Figure
draw
in class DecoratorFigure
public java.awt.Rectangle displayBox()
displayBox
in interface Figure
displayBox
in class DecoratorFigure
public void figureInvalidated(FigureChangeEvent e)
figureInvalidated
in interface FigureChangeListener
figureInvalidated
in class DecoratorFigure
FigureChangeListener
public java.awt.Insets connectionInsets()
DecoratorFigure
connectionInsets
in interface Figure
connectionInsets
in class DecoratorFigure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |