|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.ZInvisibleGroup
ZInvisibleGroup is a group node that completely hides its descendents. It does not render anything, nor does it pick or find any children. In addition, an invisible group always has empty bounds. An invisible group can be inserted into a scenegraph when a portion of the tree needs to be temporarily hidden.
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.
Field Summary |
Fields inherited from class edu.umd.cs.jazz.ZGroup |
children, childrenFindable_DEFAULT, childrenPickable_DEFAULT, childrenVolatileBoundsCache, hasOneChild_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZNode |
editorFactory, findable_DEFAULT, parent, pickable_DEFAULT, savable_DEFAULT, selectable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds, inTransaction, invalidBounds, invalidVolatileBounds, listenerList, volatileBounds, volatileBounds_DEFAULT |
Constructor Summary | |
ZInvisibleGroup()
Constructs a new empty invisible group node. |
|
ZInvisibleGroup(ZNode child)
Constructs a new invisible group node with the specified node as a child of the new group. |
Method Summary | |
protected void |
computeBounds()
An invisible group always has empty bounds. |
protected int |
findNodes(ZFindFilter filter,
java.util.ArrayList nodes)
In invisible node never is found, nor are any of its children. |
boolean |
pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
An invisible node never gets picked, nor does it pick any of its children. |
void |
render(ZRenderContext renderContext)
An invisible node does not get rendered at all, nor do any of its children. |
void |
repaint()
Because repaints are irrelevant - they are not passed up the scenegraph |
void |
repaint(ZBounds bounds)
Because repaints are irrelevant - they are not passed up the scenegraph |
static void |
setVisible(ZNode node,
boolean visible)
Make the sub-tree rooted at the specified node invisible or visible. |
Methods inherited from class edu.umd.cs.jazz.ZNode |
addNodeListener, editor, getGlobalBounds, getGlobalToLocalTransform, getLocalToGlobalTransform, getParent, getRoot, globalToLocal, globalToLocal, globalToLocal, hasNodeListener, isAncestorOf, isDescendentOf, isFindable, isPickable, isSavable, isSelectable, localToGlobal, localToGlobal, localToGlobal, lower, lowerTo, percolateEventUpSceneGraph, raise, raiseTo, remove, reparent, replaceWith, setEditorFactory, setFindable, setParent, setPickable, setSavable, setSelectable, setVolatileBounds, updateBounds, updateVolatility, writeReplace |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.umd.cs.jazz.io.ZSerializable |
setState, writeObject, writeObjectRecurse |
Constructor Detail |
public ZInvisibleGroup()
public ZInvisibleGroup(ZNode child)
child
- Child of the new group node.Method Detail |
public static void setVisible(ZNode node, boolean visible)
node
- the node to make invisiblepublic void render(ZRenderContext renderContext)
render
in class ZGroup
renderContext
- The graphics context to use for rendering.public void repaint()
repaint
in class ZNode
ZSceneGraphObject.reshape()
public void repaint(ZBounds bounds)
repaint
in class ZNode
bounds
- The bounds to repaintprotected void computeBounds()
computeBounds
in class ZGroup
public boolean pick(java.awt.geom.Rectangle2D rect, ZSceneGraphPath path)
pick
in class ZGroup
rect
- Coordinates of pick rectangle in local coordinatespath
- The path through the scenegraph to the picked node. Modified by this call.
ZDrawingSurface.pick(int, int)
protected int findNodes(ZFindFilter filter, java.util.ArrayList nodes)
findNodes
in class ZGroup
filter
- The filter that decides whether or not to include individual nodes in the find listnodes
- the accumulation list (results will be place here).
ZNode.isFindable()
,
ZFindFilter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |