|
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.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.
| Constructor Summary | |
ZPanEventHandler(ZNode node)
Constructs a new ZPanEventHandler. |
|
| Method Summary | |
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.| Method Detail |
public void setActive(boolean active)
active - True to make this event handler activepublic void mousePressed(ZMouseEvent e)
e - The event.public void mouseDragged(ZMouseEvent e)
e - The event.public void mouseReleased(ZMouseEvent e)
e - The event.public void mouseEntered(ZMouseEvent e)
public void mouseExited(ZMouseEvent e)
public void mouseClicked(ZMouseEvent e)
public void mouseMoved(ZMouseEvent e)
public boolean isMoved()
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||