org.das2.event
Class DasSelectionEvent
java.lang.Object
java.util.EventObject
org.das2.event.DasSelectionEvent
- All Implemented Interfaces:
- java.io.Serializable
public class DasSelectionEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
Nested Class Summary |
static class |
DasSelectionEvent.Type
Type-safe enumeration class for selection type contants. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DasSelectionEvent(java.lang.Object source,
DasSelectionEvent.Type selectionType,
boolean isShiftDown,
java.awt.Point dot,
java.awt.Point mark)
Creates a new instance of DasSelectionEvent |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dot
protected java.awt.Point dot
mark
protected java.awt.Point mark
isShiftDown
protected boolean isShiftDown
clearSelection
protected boolean clearSelection
selectionType
protected DasSelectionEvent.Type selectionType
DasSelectionEvent
public DasSelectionEvent(java.lang.Object source,
DasSelectionEvent.Type selectionType,
boolean isShiftDown,
java.awt.Point dot,
java.awt.Point mark)
- Creates a new instance of DasSelectionEvent
- Parameters:
source
- The source of the event.selectionType
- The type of selection.isShiftDown
- true
if the shift buttons was
down when the selection was made, false
otherwise.dot
- The point at which the selection started.mark
- The point at which the selection ended, or the point
of the selection for single selections.
getDot
public java.awt.Point getDot()
getMark
public java.awt.Point getMark()
getDotX
public int getDotX()
getDotY
public int getDotY()
getMarkX
public int getMarkX()
getMarkY
public int getMarkY()
isShiftDown
public boolean isShiftDown()
shouldClearSelection
public boolean shouldClearSelection()
clearSelection
public void clearSelection()
getSelectionType
public DasSelectionEvent.Type getSelectionType()