|
JHotDraw 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AbstractCompositeFigure
org.jhotdraw.draw.GroupFigure
public class GroupFigure
A Figure that groups a collection of figures.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
AbstractCompositeFigure.EventHandler |
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
cachedBounds, cachedDrawingArea, children, eventHandler, layouter |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, listenerList |
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
LAYOUT_INSETS |
| Constructor Summary | |
|---|---|
GroupFigure()
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
canConnect()
Checks if this figure can be connected. |
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. |
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Figure |
|---|
addFigureListener, changed, findCompatibleConnector, findConnector, getActions, getConnectors, getCursor, getEndPoint, getLayer, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, requestRemove, willChange |
| Constructor Detail |
|---|
public GroupFigure()
| Method Detail |
|---|
public boolean canConnect()
AbstractFigure
canConnect in interface FigurecanConnect in class AbstractFigurepublic 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.
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||