public class GroupFigure extends AbstractCompositeFigure
Figure
which groups a collection of figures.AbstractCompositeFigure.EventHandler
cachedBounds, cachedDrawingArea, children, eventHandler, layouter
changingDepth, listenerList
propertySupport
LAYOUT_INSETS
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY
Constructor and Description |
---|
GroupFigure()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Point2D.Double |
chop(java.awt.geom.Point2D.Double from)
This is a default implementation that chops the point at the rectangle
returned by getBounds() of the figure.
|
boolean |
isTransformable()
Returns true if all children of the group are transformable.
|
add, add, addAll, addAll, addCompositeFigureListener, addNotify, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, basicRemoveAllChildren, basicRemoveChild, bringToFront, changed, clone, contains, contains, createEventHandler, createHandles, draw, findChild, findChildIndex, findFigureInside, fireFigureAdded, fireFigureRemoved, get, getAttributes, getAttributesRestoreData, getBounds, getChild, getChildCount, getChildren, getChildrenFrontToBack, getDecomposition, getDrawingArea, getLayouter, getPreferredSize, getTransformRestoreData, indexOf, invalidate, layout, read, remove, removeAll, removeAllChildren, removeChild, removeCompositeFigureListener, removeNotify, restoreAttributesTo, restoreTransformTo, sendToBack, set, setBounds, setLayouter, transform, validate, willChange, write
addFigureListener, findCompatibleConnector, findConnector, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getConnectors, getCursor, getDrawing, getEndPoint, getFontRenderContext, getLayer, getLock, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isChanging, isConnectable, isRemovable, isSelectable, isVisible, remap, removeFigureListener, requestRemove, setBounds, setConnectable, setRemovable, setSelectable, setTransformable, setVisible, toString
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFigureListener, addPropertyChangeListener, findCompatibleConnector, findConnector, getActions, getConnectors, getCursor, getEndPoint, getLayer, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isVisible, remap, removeFigureListener, removePropertyChangeListener, requestRemove
public java.awt.geom.Point2D.Double chop(java.awt.geom.Point2D.Double from)
Figures which have a non-rectangular shape need to override this method.
FIXME Invoke chop on each child and return the closest point.
public boolean isTransformable()
isTransformable
in interface Figure
isTransformable
in class AbstractFigure
Figure.transform(java.awt.geom.AffineTransform)