public class DasSelectionEvent
extends java.util.EventObject
Modifier and Type | Class and Description |
---|---|
static class |
DasSelectionEvent.Type
Type-safe enumeration class for selection type constants.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
clearSelection |
protected java.awt.Point |
dot |
protected boolean |
isShiftDown |
protected java.awt.Point |
mark |
protected DasSelectionEvent.Type |
selectionType |
Constructor and Description |
---|
DasSelectionEvent(java.lang.Object source,
DasSelectionEvent.Type selectionType,
boolean isShiftDown,
java.awt.Point dot,
java.awt.Point mark)
Creates a new instance of DasSelectionEvent
|
Modifier and Type | Method and Description |
---|---|
void |
clearSelection() |
java.awt.Point |
getDot() |
int |
getDotX() |
int |
getDotY() |
java.awt.Point |
getMark() |
int |
getMarkX() |
int |
getMarkY() |
DasSelectionEvent.Type |
getSelectionType() |
boolean |
isShiftDown() |
boolean |
shouldClearSelection() |
protected java.awt.Point dot
protected java.awt.Point mark
protected boolean isShiftDown
protected boolean clearSelection
protected transient DasSelectionEvent.Type selectionType
public DasSelectionEvent(java.lang.Object source, DasSelectionEvent.Type selectionType, boolean isShiftDown, java.awt.Point dot, java.awt.Point mark)
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.public java.awt.Point getDot()
public java.awt.Point getMark()
public int getDotX()
public int getDotY()
public int getMarkX()
public int getMarkY()
public boolean isShiftDown()
public boolean shouldClearSelection()
public void clearSelection()
public DasSelectionEvent.Type getSelectionType()