|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeFigure
A CompositeFigure is composed of several child Figures. A CompositeFigure can be laid out using a Layouter.
Field Summary | |
---|---|
static AttributeKey<Insets2D.Double> |
LAYOUT_INSETS
The value of this attribute is a Insets2D.Double object. |
Method Summary | |
---|---|
void |
add(Figure child)
Adds a child to the figure. |
void |
add(int index,
Figure child)
Adds a child to the figure at the specified index. |
void |
basicAdd(Figure child)
Adds a child to the figure without firing events. |
void |
basicAdd(int index,
Figure child)
Adds a child to the figure at the specified index without firing events. |
boolean |
basicRemove(Figure child)
Removes the specified child without firing events. |
void |
basicRemoveAllChildren()
Removes all children from the composite figure without firing events. |
Figure |
basicRemoveChild(int index)
Removes the child at the specified index without firing events. |
Figure |
getChild(int index)
Returns the child figure at the specified index. |
int |
getChildCount()
Returns the number of children. |
java.util.List<Figure> |
getChildren()
Returns an unchangeable list view on the children. |
Layouter |
getLayouter()
Get a Layouter object which encapsulated a layout algorithm for this figure. |
void |
layout()
A layout algorithm is used to define how the child components should be laid out in relation to each other. |
boolean |
remove(Figure child)
Removes the specified child. |
void |
removeAllChildren()
Removes all children from the composite figure. |
Figure |
removeChild(int index)
Removes the child at the specified index. |
void |
setLayouter(Layouter newValue)
Set a Layouter object which encapsulated a layout algorithm for this figure. |
Methods inherited from interface org.jhotdraw.draw.Figure |
---|
addFigureListener, addNotify, canConnect, changed, clone, contains, createHandles, draw, findCompatibleConnector, findConnector, findFigureInside, getActions, getAttribute, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getEndPoint, getLayer, getPreferredSize, getStartPoint, getTool, getToolTipText, getTransformRestoreData, handleDrop, handleMouseClick, includes, invalidate, isInteractive, isVisible, remap, removeFigureListener, removeNotify, requestRemove, restoreAttributesTo, restoreTransformTo, setAttribute, setBounds, setVisible, transform, willChange |
Methods inherited from interface org.jhotdraw.xml.DOMStorable |
---|
read, write |
Field Detail |
---|
static final AttributeKey<Insets2D.Double> LAYOUT_INSETS
Method Detail |
---|
void add(Figure child)
void add(int index, Figure child)
void basicAdd(Figure child)
void basicAdd(int index, Figure child)
boolean remove(Figure child)
Figure removeChild(int index)
void removeAllChildren()
boolean basicRemove(Figure child)
Figure basicRemoveChild(int index)
void basicRemoveAllChildren()
java.util.List<Figure> getChildren()
int getChildCount()
Figure getChild(int index)
Layouter getLayouter()
void layout()
void setLayouter(Layouter newValue)
newValue
- encapsulation of a layout algorithm.
|
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 |