|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.event.ZPanEventHandler
ZPanEventHandler provides event handlers for basic panning of a Jazz camera with the left mouse. The interaction is that clicking and dragging the mouse translates the camera so that the point on the surface stays under the mouse.
This event handler will properly pan within internal cameras if the clicked within an internal camera.
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.
| Constructor Summary | |
ZPanEventHandler(ZNode node)
Constructs a new ZPanEventHandler. |
|
ZPanEventHandler(ZNode node,
ZCamera camera)
Constructs a new ZPanEventHandler. |
|
| Method Summary | |
boolean |
isActive()
Determines if this event handler is active. |
boolean |
isMoved()
Returns true if the most recent button press/drag/release resulted in a pan movement. |
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 or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZPanEventHandler(ZNode node)
node - The node this event handler attaches to.
public ZPanEventHandler(ZNode node,
ZCamera camera)
node - The node this event handler attaches to.camera - The camera this event handler attaches to| Method Detail |
public void setActive(boolean active)
setActive in interface ZEventHandleractive - True to make this event handler activepublic boolean isActive()
ZEventHandlerisActive in interface ZEventHandlerpublic 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 ZMouseMotionListenerpublic boolean isMoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||