|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.event.ZSelectionMoveHandler
ZSelectionMoveHandler is a selection handler for use with
ZSelectionManager. ZSelectionMoveHandler allows the user to
translate the current selection in two ways:
It should be noted that this event handler may not have the desired effect if the event handler is globally active and internal cameras are used. This cannot be fixed in a general purpose way for two reasons: the possibility of multiple representations and the possibility of multiple cameras viewing the same nodes. First, an internal camera is a normal visual component and as such can appear in multiple places in a jazz scenegraph. Consequently, if items in an internal camera are selected and the internal camera appears in multiple places, moving these items becomes arbitrary (ie. for which representation do they move appropriately). Second, if two distinct cameras are viewing the same set of selected nodes it is again an arbitrary decision as for which camera the nodes are moved appropriately. As a result, in the case when the event handler is globally active and internal or multiple cameras appear, the nodes are moved first according to the most recently interacted camera or, if none has been interacted, according to the top camera (of the ZCanvas).
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.
ZSelectionManager,
ZCompositeSelectionHandler,
ZSelectionModifyHandler,
ZSelectionDeleteHandler,
ZSelectionScaleHandler, Serialized Form| Constructor Summary | |
ZSelectionMoveHandler(ZNode node,
ZCamera camera,
ZCanvas canvas)
Construct a new ZSelectionMoveHandler. |
|
ZSelectionMoveHandler(ZNode node,
ZCanvas canvas)
Construct a new ZSelectionMoveHandler. |
|
| Method Summary | |
boolean |
isActive()
Determines if this event handler is active. |
void |
keyPressed(java.awt.event.KeyEvent e)
Key press event handler |
void |
keyReleased(java.awt.event.KeyEvent e)
Key release event handler |
void |
keyTyped(java.awt.event.KeyEvent e)
Key typed event handler |
void |
mouseClicked(ZMouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(ZMouseEvent e)
Mouse drag event handler |
void |
mouseEntered(ZMouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(ZMouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(ZMouseEvent e)
Invoked when the mouse button has been moved on a node (with no buttons no down). |
void |
mousePressed(ZMouseEvent e)
Mouse press event handler |
void |
mouseReleased(ZMouseEvent e)
Mouse release event handler |
void |
setActive(boolean active)
Specifies whether this event handler is active |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZSelectionMoveHandler(ZNode node,
ZCanvas canvas)
node - The node to which this event handler attachescanvas - The canvas to which this event handler attaches
public ZSelectionMoveHandler(ZNode node,
ZCamera camera,
ZCanvas canvas)
node - The node to which this event handler attachescamera - The camera to which this event handler attachescanvas - The canvas to which this event handler attaches| Method Detail |
public void setActive(boolean active)
setActive in interface ZEventHandleractive - True to make this event handler activepublic boolean isActive()
isActive in interface ZEventHandlerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - The event.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenere - The event.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenere - The event.public void mousePressed(ZMouseEvent e)
mousePressed in interface ZMouseListenere - The event.public void mouseDragged(ZMouseEvent e)
mouseDragged in interface ZMouseMotionListenere - The event.public void mouseReleased(ZMouseEvent e)
mouseReleased in interface ZMouseListenere - The event.public void mouseEntered(ZMouseEvent e)
mouseEntered in interface ZMouseListenerpublic void mouseExited(ZMouseEvent e)
mouseExited in interface ZMouseListenerpublic void mouseClicked(ZMouseEvent e)
mouseClicked in interface ZMouseListenerpublic void mouseMoved(ZMouseEvent e)
mouseMoved in interface ZMouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||