CH.ifa.draw.figures
Class GroupFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.standard.CompositeFigure
-
- CH.ifa.draw.figures.GroupFigure
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class GroupFigure extends CompositeFigure
A Figure that groups a collection of figures.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description GroupFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbasicDisplayBox(java.awt.Point origin, java.awt.Point corner)Sets the display box of a figure.booleancanConnect()GroupFigures cannot be connectedFigureEnumerationdecompose()Decomposes a figure into its parts.java.awt.RectangledisplayBox()Gets the display box.java.util.Vectorhandles()Gets the handles for the GroupFigure.voidsetAttribute(java.lang.String name, java.lang.Object value)Sets the attribute of all the contained figures.-
Methods inherited from class CH.ifa.draw.standard.CompositeFigure
add, addAll, bringToFront, draw, figureAt, figureChanged, figureCount, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, includes, orphan, orphanAll, read, release, remove, removeAll, removeAll, replace, sendToBack, write
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, displayBox, displayBox, getAttribute, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, size, willChange
-
-
-
-
Method Detail
-
canConnect
public boolean canConnect()
GroupFigures cannot be connected- Specified by:
canConnectin interfaceFigure- Overrides:
canConnectin classAbstractFigure
-
displayBox
public java.awt.Rectangle displayBox()
Gets the display box. The display box is defined as the union of the contained figures.- Specified by:
displayBoxin interfaceFigure- Specified by:
displayBoxin classAbstractFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)Description copied from class:AbstractFigureSets the display box of a figure. This is the method that subclassers override. Clients usually call displayBox.- Specified by:
basicDisplayBoxin interfaceFigure- Specified by:
basicDisplayBoxin classAbstractFigure- Parameters:
origin- the new origincorner- the new corner- See Also:
AbstractFigure.displayBox(java.awt.Point, java.awt.Point)
-
decompose
public FigureEnumeration decompose()
Description copied from class:AbstractFigureDecomposes a figure into its parts. It returns a Vector that contains itself.- Specified by:
decomposein interfaceFigure- Overrides:
decomposein classAbstractFigure- Returns:
- an Enumeration for a Vector with itself as the only element.
-
handles
public java.util.Vector handles()
Gets the handles for the GroupFigure.- Specified by:
handlesin interfaceFigure- Specified by:
handlesin classAbstractFigure- Returns:
- a Vector of handles
- See Also:
Handle
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)Sets the attribute of all the contained figures.- Specified by:
setAttributein interfaceFigure- Overrides:
setAttributein classAbstractFigure
-
-
DataMelt 3.0 © DataMelt by jWork.ORG