org.das2.event.BoxSelectorMouseModule

General purpose mouse module for getting data point selections. The client provides the DragRenderer, generally a vertical line, horizontal line or a crosshair. Three properties control when BoxSelectionEvents are to be fired:

This is intended to be used as a base class for other slicers which need a range to be selected in X, Y, or both.


addBoxSelectionListener

addBoxSelectionListener( org.das2.event.BoxSelectionListener listener ) → void

Registers BoxSelectionListener to receive events.

Parameters

listener - The listener to register.

Returns:

void (returns nothing)

search for examples view on GitHub view source


removeBoxSelectionListener

removeBoxSelectionListener( org.das2.event.BoxSelectionListener listener ) → void

Removes BoxSelectionListener from the list of listeners.

Parameters

listener - The listener to remove.

Returns:

void (returns nothing)

search for examples view on GitHub view source


setTweakable

setTweakable( boolean b ) → void

allow the last selection to be tweaked. It's the client's responsibility to draw the current selection.

Parameters

b -

Returns:

void (returns nothing)

search for examples view on GitHub view source