org.das2.event.BoxSelectionEvent

This is the range analog to the DataPointSelectionEvent. The DataPointSelectionEvent is a point, and this is a box. Note that it's acceptable to have null xrange and yrange, so that the same code can support a variety of applications. It's left to the programmer to see that these are used consistently.


getFinishX

getFinishX( ) → Datum

get the X coordinate of the mouse button release

Returns:

the release coordinate X

search for examples view on GitHub view source


getFinishY

getFinishY( ) → Datum

get the Y coordinate of the mouse button release

Returns:

the release coordinate Y

search for examples view on GitHub view source


getStartX

getStartX( ) → Datum

get the X coordinate or the mouse button press

Returns:

the X coordinate or the mouse button press

search for examples view on GitHub view source


getStartY

getStartY( ) → Datum

get the Y coordinate or the mouse button press

Returns:

the Y coordinate or the mouse button press

search for examples view on GitHub view source


getXRange

getXRange( ) → DatumRange

get the X data range of the gesture

Returns:

the X data range of the gesture

search for examples view on GitHub view source


getYRange

getYRange( ) → DatumRange

get the Y data range of the gesture

Returns:

the Y data range of the gesture

search for examples view on GitHub view source


setFinish

setFinish( Datum x, Datum y ) → void

set the end coordinates of the mouse release.

Parameters

x - the release coordinate X
y - the release coordinate Y

Returns:

void (returns nothing)

search for examples view on GitHub view source


setStart

setStart( Datum x, Datum y ) → void

set the coordinates of the mouse button press

Parameters

x - the x coordinate
y - the y coordinate

Returns:

void (returns nothing)

search for examples view on GitHub view source