|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.ZSelectionManager
ZSelectionManager
allows for registration of
ZGroupListener instances with addGroupListener()
.
Registered ZGroupListener
instances will be notified when
items are added or removed from the current selection for a given camera.
Note that this class should not be instantiated.
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.
ZSelectionModifyHandler
,
ZSelectionDeleteHandler
,
ZSelectionMoveHandler
,
ZSelectionScaleHandler
Method Summary | |
static void |
addGroupListener(ZGroupListener l)
Add a ZGroupListener, registered for group selection events on all cameras |
static void |
addGroupListener(ZGroupListener l,
ZCamera camera)
Add a ZGroupListener, registered for group selection events on the given camera |
protected static void |
fireGroupEvent(int id,
ZGroup group,
ZNode child)
Notifies all listeners that have registered interest for notification on this event type. |
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 void |
removeGroupListener(ZGroupListener l)
Remove a ZGroupListener, registered for group selection events on all cameras |
static void |
removeGroupListener(ZGroupListener l,
ZCamera camera)
|
static ZSelectionGroup |
select(ZNode node)
Select the specified node. |
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void addGroupListener(ZGroupListener l)
l
- The listener to addpublic static void removeGroupListener(ZGroupListener l)
l
- The listener to removepublic static void addGroupListener(ZGroupListener l, ZCamera camera)
l
- The listener to addcamera
- The camera on which to listen for selection eventspublic static void removeGroupListener(ZGroupListener l, ZCamera camera)
protected static void fireGroupEvent(int id, ZGroup group, ZNode child)
id
- The event id (NODE_ADDED, NODE_REMOVED)child
- The child being added or removed from this nodeEventListenerList
public static java.util.ArrayList getSelectedNodes(ZNode node)
ZSceneGraphEditor
for more information.
You can also obtain all the selected nodes for a given camera,
(for example, ZCanvas.getCamera()
)
using getSelectedNodes(ZCamera)
node
- The subtree to check for selectionpublic static java.util.ArrayList getSelectedNodes(ZCamera camera)
getSelectedNodes(ZNode)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |