|
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 group node that represents the selection of a node. It shows it is selected by surrounding its children with a 1 pixel wide line. It provides utility methods of selecting, unselected nodes, and for determining the selected nodes in a sub-tree.
| 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,
objRefTable,
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 | |
java.lang.Object |
clone()
Duplicates the current node by using the copy constructor. |
protected ZVisualComponent |
createSelectComponent()
Internal method to create the visual component that represents the selection. |
void |
duplicateObject(ZSelectionGroup refNode)
Copies all object information from the reference object into the current object. |
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,
addGroupListener,
dump,
duplicateObject,
fireGroupEvent,
getChild,
getChildren,
getChildrenFindable,
getChildrenIterator,
getChildrenPickable,
getNumChildren,
hasOneChild,
indexOf,
insertAbove,
lower,
lowerTo,
raise,
raiseTo,
remove,
removeChild,
removeGroupListener,
setChildrenFindable,
setChildrenPickable,
setHasOneChild,
trimToSize |
| Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
duplicateObject,
getBounds,
getVolatileBounds,
reshape,
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 void duplicateObject(ZSelectionGroup refNode)
refNode - The reference node to copypublic java.lang.Object clone()
ZNode.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)public static java.util.ArrayList getSelectedNodes(ZNode node)
node - The subtree to check for selectionpublic static java.util.ArrayList getSelectedNodes(ZCamera camera)
camera - The camera to look through for selected nodes.public static ZSelectionGroup select(ZNode node)
node - the node to selectpublic static void unselect(ZNode node)
node - the node to unselectpublic static void unselectAll(ZNode node)
node - The subtree to check for selectionpublic static void unselectAll(ZCamera camera)
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 | |||||||||