org.das2.event.MouseModule

A MouseModule is a pluggable unit that promotes simple mouse events into human events or actions that are useful for science analysis. Each component has a mouseInputAdapter that manages a set of mouseModules, one is active at any given time. The DasMouseInputAdapter will delegate mouse events, key events, and mouse wheel events to the active mouse module. This base class will be extended by instances of MouseModule, overriding methods they wish to handle.


getCursor

getCursor( ) → Cursor

return a cursor that indicates the selected module. Note this is currently not used.

Returns:

a cursor that indicates the selected module.

search for examples view on GitHub view source


getDragRenderer

getDragRenderer( ) → DragRenderer

return the current drag renderer.

Returns:

the current drag renderer.

search for examples view on GitHub view source


mouseClicked

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

Returns:

void (returns nothing)

search for examples view on GitHub view source


position

position( org.das2.graph.DasDevicePosition ddp, int pos, int threshold ) → Pos

indicate if the position (pixels) is near the ends of the DasRow or DasColumn. Note that the max of a row is its bottom.

Parameters

ddp - the row or column
pos - the position to describe.
threshold - pixel distance to the boundary, 20 is often used.

Returns:

enumeration of the position, for example Pos.beyondMin.

search for examples view on GitHub view source


setDirections

setDirections( String directions ) → void

set the human-readable directions string, so clients like Autoplot can display them.

Parameters

directions - human-readable directions.

Returns:

void (returns nothing)

search for examples view on GitHub view source


setDragRenderer

setDragRenderer( org.das2.event.DragRenderer d ) → void

set the drag renderer. (Made public when the digitizer had different modes.)

Parameters

d - set the drag renderer.

Returns:

void (returns nothing)

search for examples view on GitHub view source