CH.ifa.draw.figures
Class BorderDecorator
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.standard.DecoratorFigure
-
- CH.ifa.draw.figures.BorderDecorator
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class BorderDecorator extends DecoratorFigure
BorderDecorator decorates an arbitrary Figure with a border.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description BorderDecorator()BorderDecorator(Figure figure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.InsetsconnectionInsets()Forwards the connection insets to its contained figure..java.awt.RectangledisplayBox()Gets the displaybox including the border.voiddraw(java.awt.Graphics g)Draws a the figure and decorates it with a border.voidfigureInvalidated(FigureChangeEvent e)Invalidates the figure extended by its border.java.awt.PointgetBorderOffset()voidsetBorderOffset(java.awt.Point newBorderOffset)-
Methods inherited from class CH.ifa.draw.standard.DecoratorFigure
basicDisplayBox, canConnect, connectedTextLocator, connectorAt, connectorVisibility, containsPoint, decompose, decorate, figureChanged, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, findFigureInside, getAttribute, handles, includes, moveBy, peelDecoration, read, release, setAttribute, write
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, center, changed, clone, displayBox, displayBox, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, size, willChange
-
-
-
-
Constructor Detail
-
BorderDecorator
public BorderDecorator()
-
BorderDecorator
public BorderDecorator(Figure figure)
-
-
Method Detail
-
setBorderOffset
public void setBorderOffset(java.awt.Point newBorderOffset)
-
getBorderOffset
public java.awt.Point getBorderOffset()
-
draw
public void draw(java.awt.Graphics g)
Draws a the figure and decorates it with a border.- Specified by:
drawin interfaceFigure- Overrides:
drawin classDecoratorFigure- Parameters:
g- the Graphics to draw into
-
displayBox
public java.awt.Rectangle displayBox()
Gets the displaybox including the border.- Specified by:
displayBoxin interfaceFigure- Overrides:
displayBoxin classDecoratorFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
figureInvalidated
public void figureInvalidated(FigureChangeEvent e)
Invalidates the figure extended by its border.- Specified by:
figureInvalidatedin interfaceFigureChangeListener- Overrides:
figureInvalidatedin classDecoratorFigure- See Also:
FigureChangeListener
-
connectionInsets
public java.awt.Insets connectionInsets()
Description copied from class:DecoratorFigureForwards the connection insets to its contained figure..- Specified by:
connectionInsetsin interfaceFigure- Overrides:
connectionInsetsin classDecoratorFigure
-
-
DataMelt 3.0 © DataMelt by jWork.ORG