com.droplets.api.event
Class SelectionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.droplets.api.event.SelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionEvent
extends java.util.EventObject

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(Component source, CellRectangle rect)
          Construct an event based on rectangular selection.
 
Method Summary
 CellRectangle getRectangularSelection()
          Return the selected rectangle if the event applies to rectangular selection.
 Component getSourceComponent()
          Return the reference to the component which sent the event.
 boolean isSelectionEmpty()
          Return true if the selected area is empty.
 
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
 

Constructor Detail

SelectionEvent

public SelectionEvent(Component source,
                      CellRectangle rect)
Construct an event based on rectangular selection.
Method Detail

getRectangularSelection

public CellRectangle getRectangularSelection()
Return the selected rectangle if the event applies to rectangular selection. However, at the moment, rectangular selection is the only one supported.

isSelectionEmpty

public boolean isSelectionEmpty()
Return true if the selected area is empty.

getSourceComponent

public Component getSourceComponent()
Return the reference to the component which sent the event.


Copyright © Droplets, 2001. All Rights Reserved.