diva.canvas.interactor
Class SelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by diva.canvas.interactor.SelectionEvent
All Implemented Interfaces:
Serializable

public class SelectionEvent
extends EventObject

An event representing a change in the graph selection model. The event contains all the information to mirror the selection model.

Version:
$Revision: 1.5 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(Object source, Object[] added, Object[] removed, Object primary)
          Construct a new Selection event from the given source, representing the given selection additions, removals, and primary selection.
 
Method Summary
 Object getPrimarySelection()
          Return the primary selection object.
 Iterator getSelectionAdditions()
          Return an iterator over the objects added to the selection model.
 Iterator getSelectionRemovals()
          Return an iterator over the objects removed from the selection model.
 
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(Object source,
                      Object[] added,
                      Object[] removed,
                      Object primary)
Construct a new Selection event from the given source, representing the given selection additions, removals, and primary selection.

Method Detail

getSelectionAdditions

public Iterator getSelectionAdditions()
Return an iterator over the objects added to the selection model.


getSelectionRemovals

public Iterator getSelectionRemovals()
Return an iterator over the objects removed from the selection model.


getPrimarySelection

public Object getPrimarySelection()
Return the primary selection object.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.