|
Jazz API Documentation | |||||||||
| 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.ZSelectionGroup
ZSelectionGroup is a visual group node that provides functionality for specifying selection. Inserting a selection group in the scenegraph will visually select its subtree. It has utility methods for selecting and unselecting nodes, and for determining the selected nodes in a sub-tree. It manages a visual component that actually represents the selection, and shows a selected node by surrounding its children with a 1 pixel wide line. This class could be extended to replace the visual component if an application wants to define a different visual look.
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 | |
static java.awt.Color |
penColor_DEFAULT
|
| Fields inherited from class edu.umd.cs.jazz.ZVisualGroup |
visualComponentPickable_DEFAULT |
| Fields inherited from class edu.umd.cs.jazz.ZGroup |
childrenFindable_DEFAULT,
childrenPickable_DEFAULT,
hasOneChild_DEFAULT |
| Fields inherited from class edu.umd.cs.jazz.ZNode |
findable_DEFAULT,
listenerList,
pickable_DEFAULT,
savable_DEFAULT |
| Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds,
volatileBounds,
volatileBounds_DEFAULT |
| Constructor Summary | |
ZSelectionGroup()
Constructs a new ZSelectionGroup. |
|
ZSelectionGroup(ZNode child)
Constructs a new select group node with the specified node as a child of the new group. |
|
| Method Summary | |
protected ZVisualComponent |
createSelectComponent()
Internal method to create the visual component that represents the selection. |
java.awt.Color |
getPenColor()
Get the pen color that is used to render the selection. |
static java.util.ArrayList |
getSelectedNodes(ZCamera camera)
Return a list of the selected nodes in the portion of the scenegraph visible from the specified camera. |
static java.util.ArrayList |
getSelectedNodes(ZNode node)
Return a list of the selected nodes in the subtree rooted at the specified node (including the root if it is selected). |
static boolean |
isSelected(ZNode node)
Determine if the specified node is selected. |
static ZSelectionGroup |
select(ZNode node)
Select the specified node. |
void |
setPenColor(java.awt.Color color)
Set the pen color that is used to render the selection. |
static void |
unselect(ZNode node)
Unselect the specified node. |
static void |
unselectAll(ZCamera camera)
Unselect all currently selected nodes in the portion of the scenegraph visible from the specified camera. |
static void |
unselectAll(ZNode node)
Unselect all currently selected nodes in the subtree rooted at the specified node (including the root if it is selected). |
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.ZGroup |
addChild,
addChildImpl,
addGroupListener,
dump,
extract,
findNodes,
fireGroupEvent,
getChild,
getChildren,
getChildrenFindable,
getChildrenIterator,
getChildrenPickable,
getChildrenReference,
getNumChildren,
getVolatileBounds,
hasOneChild,
indexOf,
insertAbove,
iterator,
lower,
lowerTo,
raise,
raiseTo,
removeAllChildren,
removeChild,
removeChild,
removeChild,
removeChildImpl,
removeGroupListener,
removeNodeListener,
setChildrenFindable,
setChildrenPickable,
setHasOneChild,
trimToSize,
updateHasNodeListener |
| Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
clone,
getBounds,
getBoundsReference,
reshape,
setBounds,
setVolatileBounds |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.awt.Color penColor_DEFAULT
| Constructor Detail |
public ZSelectionGroup()
public ZSelectionGroup(ZNode child)
child - Child of the new group node.| Method Detail |
public static java.util.ArrayList getSelectedNodes(ZNode node)
ZSceneGraphEditor for
more information.node - The subtree to check for selectionpublic static java.util.ArrayList getSelectedNodes(ZCamera camera)
ZSceneGraphEditor for
more information.camera - The camera to look through for selected nodes.public static ZSelectionGroup select(ZNode node)
ZSceneGraphEditor.node - the node to selectpublic static void unselect(ZNode node)
ZNode.node - the node to unselectpublic static void unselectAll(ZNode node)
ZNode.node - The subtree to check for selectionpublic static void unselectAll(ZCamera camera)
ZNode.camera - The camera to look through for selected nodes.public static boolean isSelected(ZNode node)
public java.awt.Color getPenColor()
public void setPenColor(java.awt.Color color)
color - the pen color, or null if none.protected ZVisualComponent createSelectComponent()
public void writeObject(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
public void writeObjectRecurse(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||