|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.umd.cs.jazz.event.ZFilteredEventHandler
|
+--edu.umd.cs.jazz.event.ZDragSequenceEventHandler
|
+--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.
| Nested Class Summary |
| Nested classes inherited from class edu.umd.cs.jazz.event.ZFilteredEventHandler |
ZFilteredEventHandler.ZFilteredEventDispatcher |
| Field Summary | |
static int |
DEFAULT_MIN_PAN_START_DISTANCE
The default distance that the mouse needs to be dragged for a panning action to start. |
| Fields inherited from class edu.umd.cs.jazz.event.ZFilteredEventHandler |
fFilteredEventDispatcher, fMouseFilter |
| Constructor Summary | |
ZPanEventHandler(ZSceneGraphObject aFilteredMouseEventSource)
Constructs a new ZPanEventHandler. |
|
ZPanEventHandler(ZSceneGraphObject aEventSource,
ZCamera aIgnoredCamera)
Deprecated. As of Jazz version 1.2, use ZPanEventHandler(ZSceneGraphObject aEventSource) instead. |
|
| Method Summary | |
protected void |
dragInScreenCoords(ZMouseEvent e,
java.awt.geom.Dimension2D aScreenDelta)
When the dragging action occurs invoke pan. |
ZMouseFilter |
getMouseFilter()
Return the event filter. |
boolean |
isMoved()
Deprecated. As of Jazz version 1.2, use ZDragSequenceEventHandler.isDragging() instead. |
void |
pan(ZMouseEvent e,
java.awt.geom.Dimension2D aScreenDelta)
Pan the interaction camera. |
| Methods inherited from class edu.umd.cs.jazz.event.ZDragSequenceEventHandler |
drag, endDrag, filteredMouseDragged, filteredMousePressed, filteredMouseReleased, getCurrentScreenDelta, getCurrentScreenPoint, getDragStartScreenPoint, getMinDragStartDistance, getMousePressedScreenPoint, getPreviousScreenPoint, isDragging, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDrag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int DEFAULT_MIN_PAN_START_DISTANCE
setMinDragStartDistance.
| Constructor Detail |
public ZPanEventHandler(ZSceneGraphObject aFilteredMouseEventSource)
aFilteredMouseEventSource - the source for filtered ZMouseEvents and ZMouseMotionEvents.
See the ZFilteredEventHandler class comment to customize this behavior.
public ZPanEventHandler(ZSceneGraphObject aEventSource,
ZCamera aIgnoredCamera)
ZPanEventHandler(ZSceneGraphObject aEventSource) instead.
| Method Detail |
public ZMouseFilter getMouseFilter()
getMouseFilter in class ZFilteredEventHandler
protected void dragInScreenCoords(ZMouseEvent e,
java.awt.geom.Dimension2D aScreenDelta)
pan.
dragInScreenCoords in class ZDragSequenceEventHandlere - the event causing the drag.aScreenDelta - the change in mouse position between the current and last mouse events.
public void pan(ZMouseEvent e,
java.awt.geom.Dimension2D aScreenDelta)
e - the event causing the pan.aScreenDelta - the change in mouse position between the current and last mouse events.public boolean isMoved()
ZDragSequenceEventHandler.isDragging() instead.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||