public class BoxSelectionEvent extends DasEvent
Constructor and Description |
---|
BoxSelectionEvent(java.lang.Object source,
DatumRange xrange,
DatumRange yrange)
create the BoxSelectionEvent with additional planes of data.
|
BoxSelectionEvent(java.lang.Object source,
DatumRange xrange,
DatumRange yrange,
java.util.HashMap planes)
create the BoxSelectionEvent with additional planes of data.
|
Modifier and Type | Method and Description |
---|---|
QDataSet |
getDataSet()
get the dataset attached to this event.
|
Datum |
getFinishX()
get the X coordinate of the mouse button release
|
Datum |
getFinishY()
get the Y coordinate of the mouse button release
|
java.lang.Object |
getPlane(java.lang.String plane)
get the data attached to the plane name.
|
java.lang.String[] |
getPlaneIds()
return the list of additional data planes attached to this event.
|
Datum |
getStartX()
get the X coordinate or the mouse button press
|
Datum |
getStartY()
get the Y coordinate or the mouse button press
|
DatumRange |
getXRange()
get the X data range of the gesture
|
DatumRange |
getYRange()
get the Y data range of the gesture
|
void |
setDataSet(QDataSet ds)
attach a dataset to this event.
|
void |
setFinish(Datum x,
Datum y)
set the end coordinates of the mouse release.
|
void |
setStart(Datum x,
Datum y)
set the coordinates of the mouse button press
|
java.lang.String |
toString() |
public BoxSelectionEvent(java.lang.Object source, DatumRange xrange, DatumRange yrange)
source
- the object creating this event, for example the BoxSelectorMouseModule.xrange
- the horizontal rangeyrange
- the vertical rangepublic BoxSelectionEvent(java.lang.Object source, DatumRange xrange, DatumRange yrange, java.util.HashMap planes)
source
- the object creating this event, for example the BoxSelectorMouseModule.xrange
- the horizontal rangeyrange
- the vertical rangeplanes
- a map from String to Object containing arbitrary metadata.public void setFinish(Datum x, Datum y)
x
- the release coordinate Xy
- the release coordinate Ypublic Datum getFinishX()
public Datum getFinishY()
public void setStart(Datum x, Datum y)
x
- the x coordinatey
- the y coordinatepublic Datum getStartX()
public Datum getStartY()
public DatumRange getXRange()
public DatumRange getYRange()
public java.lang.Object getPlane(java.lang.String plane)
plane,
- e.g. 'keyChar'public java.lang.String[] getPlaneIds()
public void setDataSet(QDataSet ds)
ds
- a dataset for this event.public QDataSet getDataSet()
public java.lang.String toString()
toString
in class java.util.EventObject