org.das2.event.DataPointSelectorMouseModule

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 DataPointSelectionEvents are to be fired: dragEvents as the mouse is dragged, keyEvents when a key is pressed. (The key is the "keyChar" plane of the event) releaseEvents when the mouse is released. (false by default)

DataPointSelectorMouseModule( org.das2.graph.DasPlot parent, org.das2.dataset.DataSetConsumer consumer, org.das2.event.DragRenderer dragRenderer, String label )


addDataPointSelectionListener

addDataPointSelectionListener( org.das2.event.DataPointSelectionListener listener ) → void

Registers DataPointSelectionListener to receive events.

Parameters

listener - The listener to register.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isDragEvents

isDragEvents( ) → boolean

Getter for property dragEvents.

Returns:

Value of property dragEvents.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isKeyEvents

isKeyEvents( ) → boolean

Getter for property keyEvents.

Returns:

Value of property keyEvents.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isReleaseEvents

isReleaseEvents( ) → boolean

Getter for property releaseEvents.

Returns:

Value of property releaseEvents.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


keyPressed

keyPressed( java.awt.event.KeyEvent e ) → void

Parameters

e - a KeyEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


mousePointSelected

mousePointSelected( org.das2.event.MousePointSelectionEvent e ) → void

Parameters

e - a MousePointSelectionEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


mouseReleased

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

Parameters

e - a MouseEvent

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


removeDataPointSelectionListener

removeDataPointSelectionListener( org.das2.event.DataPointSelectionListener listener ) → void

Removes DataPointSelectionListener from the list of listeners.

Parameters

listener - The listener to remove.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setDragEvents

setDragEvents( boolean dragEvents ) → void

Setter for property dragEvents.

Parameters

dragEvents - New value of property dragEvents.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setKeyEvents

setKeyEvents( boolean keyEvents ) → void

Setter for property keyEvents.

Parameters

keyEvents - New value of property keyEvents.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setReleaseEvents

setReleaseEvents( boolean releaseEvents ) → void

Setter for property releaseEvents.

Parameters

releaseEvents - New value of property releaseEvents.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]