org.das2.event.ZoomPanMouseModule

Provide navigation similar to Google Maps, where drag events result a pan on the axes, and mouse wheel events are zoom in and zoom out. This is typically attached to the middle mouse button.

ZoomPanMouseModule( org.das2.graph.DasCanvasComponent parent, org.das2.graph.DasAxis horizontalAxis, org.das2.graph.DasAxis verticalAxis )

Creates a new instance of ZoomPanMouseModule


mouseDragged

mouseDragged( java.awt.event.MouseEvent e ) → void

Parameters

e - a MouseEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


mousePressed

mousePressed( java.awt.event.MouseEvent e ) → void

Parameters

e - a MouseEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


mouseReleased

mouseReleased( java.awt.event.MouseEvent e ) → void

Parameters

e - a MouseEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


mouseWheelMoved

mouseWheelMoved( java.awt.event.MouseWheelEvent e ) → void

mouse wheel events zoom or pan rapidly. With a physical wheel, I (jbf) found that I get 17ms per click, and this is managable. With a touchpad on a mac, these events come much faster, like 10ms per click, which can disorient the operator. So we limit the speed to 20ms per click, for now by dropping rapid clicks.

Parameters

e - a MouseWheelEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]