org.das2.event
Class DasSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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.
 
Field Summary
protected  boolean clearSelection
           
protected  java.awt.Point dot
           
protected  boolean isShiftDown
           
protected  java.awt.Point mark
           
protected  DasSelectionEvent.Type selectionType
           
 
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
 
Method Summary
 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()
           
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

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()