|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.ZSceneGraphObject | +--edu.umd.cs.jazz.ZNode | +--edu.umd.cs.jazz.ZGroup | +--edu.umd.cs.jazz.ZVisualGroup | +--edu.umd.cs.jazz.ZLayoutGroup
ZLayoutGroup is a visual group that wraps a layout manager that can position the node's children. The layout manager may also include a visual component that aids the layout. For instance, the tree layout manager adds links connecting the tree nodes.
ZSceneGraphEditor
provides a convenience mechanism to locate, create
and manage nodes of this type.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
Fields inherited from class edu.umd.cs.jazz.ZVisualGroup |
visualComponentPickable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZGroup |
children, childrenFindable_DEFAULT, childrenPickable_DEFAULT, hasOneChild_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZNode |
findable_DEFAULT, pickable_DEFAULT, savable_DEFAULT, selectable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds, listenerList, volatileBounds, volatileBounds_DEFAULT |
Constructor Summary | |
ZLayoutGroup()
Constructs a new empty layout group node. |
|
ZLayoutGroup(ZNode child)
Constructs a new layout group node with the specified node as a child of the new group. |
|
ZLayoutGroup(ZNode child,
ZGroup layoutChild)
Constructs a new layout group node with the specified node as a child of the new group. |
Method Summary | |
void |
computeBounds()
Trap computeBounds requests as it indicates that our layout is out of date, and needs to be revalidated. |
void |
doLayout()
Causes the children of the specified layout node to be laid out. |
protected void |
doLayoutInternal(ZNode node)
Internal method to recursively search children to look for layout nodes, and apply the layout if found. |
protected java.lang.Object |
duplicateObject()
Returns a clone of this object. |
ZGroup |
getLayoutChild()
Returns the current layout child for this node. |
ZLayoutManager |
getLayoutManager()
Returns the current layout manager for this node. |
void |
invalidate()
Specify that this layout group is out of date, and needs to be revalidated. |
void |
setLayoutChild(ZGroup child)
Specifies the layout child for this node. |
void |
setLayoutManager(ZLayoutManager manager)
Specifies the layout manager for this node. |
void |
setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
Set some state of this object as it gets read back in. |
protected void |
updateObjectReferences(ZObjectReferenceTable objRefTable)
Called to update internal object references after a clone operation by ZSceneGraphObject.clone() . |
void |
validate()
Force an immediate validation of this layout node (if it was invalidated). |
void |
writeObject(ZObjectOutputStream out)
Write out all of this object's state. |
void |
writeObjectRecurse(ZObjectOutputStream out)
Specify which objects this object references in order to write out the scenegraph properly |
Methods inherited from class edu.umd.cs.jazz.ZNode |
addClientProperty, addNodeListener, editor, getClientProperty, getGlobalBounds, getGlobalToLocalTransform, getLocalToGlobalTransform, getParent, getRoot, globalToLocal, globalToLocal, hasNodeListener, isAncestorOf, isDescendentOf, isFindable, isPickable, isSavable, isSelectable, localToGlobal, localToGlobal, lower, lowerTo, percolateEventUpSceneGraph, putClientProperty, raise, raiseTo, remove, repaint, repaint, repaint, reparent, replaceWith, setEditorFactory, setFindable, setParent, setPickable, setSavable, setSelectable, updateBounds, writeReplace |
Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
addMouseListener, addMouseMotionListener, clone, fireEvent, fireMouseEvent, getBounds, getBoundsReference, getListenerList, hasLisenerOfType, hasMouseListener, processMouseEvent, removeEventListener, removeMouseListener, removeMouseMotionListener, reshape, setBounds, setVolatileBounds |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZLayoutGroup()
public ZLayoutGroup(ZNode child)
child
- Child of the new group node.setLayoutChild(edu.umd.cs.jazz.ZGroup)
public ZLayoutGroup(ZNode child, ZGroup layoutChild)
child
- Child of the new group node.Method Detail |
protected java.lang.Object duplicateObject()
duplicateObject
in class ZVisualGroup
ZSceneGraphObject.duplicateObject()
protected void updateObjectReferences(ZObjectReferenceTable objRefTable)
ZSceneGraphObject.clone()
.updateObjectReferences
in class ZNode
ZSceneGraphObject.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)
public void setLayoutManager(ZLayoutManager manager)
manager
- The new layout manager.public final ZLayoutManager getLayoutManager()
public void setLayoutChild(ZGroup child)
child
- The new layout child.public final ZGroup getLayoutChild()
public void invalidate()
public void validate()
public void computeBounds()
computeBounds
in class ZVisualGroup
public void doLayout()
getLayoutManager()
,
setLayoutChild(edu.umd.cs.jazz.ZGroup)
protected void doLayoutInternal(ZNode node)
node
- The node to check for layoutpublic void writeObject(ZObjectOutputStream out) throws java.io.IOException
writeObject
in interface ZSerializable
writeObject
in class ZVisualGroup
out
- The stream that this object writes intopublic void writeObjectRecurse(ZObjectOutputStream out) throws java.io.IOException
writeObjectRecurse
in interface ZSerializable
writeObjectRecurse
in class ZVisualGroup
out
- The stream that this object writes intopublic void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
setState
in interface ZSerializable
setState
in class ZVisualGroup
fieldType
- The fully qualified type of the fieldfieldName
- The name of the fieldfieldValue
- The value of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |