org.das2.event.BoxZoomMouseModule
Provide a box zoom where drag to draw a box that will be the new range, and mouse wheel events
are zoom in and zoom out. This is typically attached to the left mouse button.
Creates a new instance of BoxZoomMouseModule
isAutoUpdate
isAutoUpdate( ) → boolean
Getter for property autoUpdate.
Returns:
Value of property autoUpdate.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isConstrainProportions
isConstrainProportions( ) → boolean
Getter for property constrainProportions.
Returns:
Value of property constrainProportions.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
mouseRangeSelected
mouseRangeSelected( org.das2.event.MouseDragEvent e0 ) → void
Parameters
e0 - a MouseDragEvent
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]
setAutoUpdate
setAutoUpdate( boolean autoUpdate ) → void
Setter for property autoUpdate.
Parameters
autoUpdate - New value of property autoUpdate.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setConstrainProportions
setConstrainProportions( boolean constrainProportions ) → void
Setter for property constrainProportions.
Parameters
constrainProportions - New value of property constrainProportions.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]