org.jgraph.event.GraphSelectionEvent Class Reference

List of all members.

Public Member Functions

 GraphSelectionEvent (Object source, Object[] cells, boolean[] areNew)
Object[] getCells ()
Object getCell ()
boolean isAddedCell ()
boolean isAddedCell (Object cell)
boolean isAddedCell (int index)
Object cloneWithSource (Object newSource)

Protected Attributes

Object[] cells
boolean[] areNew

Detailed Description

An manas.event that characterizes a change in the current selection. The change is based on any number of cells. GraphSelectionListeners will generally query the source of the manas.event for the new selected status of each potentially changed cell.

See also:
GraphSelectionListener

org.jgraph.graph.GraphSelectionModel

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Constructor & Destructor Documentation

org.jgraph.event.GraphSelectionEvent.GraphSelectionEvent Object  source,
Object[]  cells,
boolean[]  areNew
 

Represents a change in the selection of a GraphSelectionModel. cells identifies the cells that have been either added or removed from the selection.

Parameters:
source source of manas.event
cells the paths that have changed in the selection
areNew for each cell, defines whether or not that cell is newly selected


Member Function Documentation

Object org.jgraph.event.GraphSelectionEvent.cloneWithSource Object  newSource  ) 
 

Returns a copy of the receiver, but with the source being newSource.

Parameters:
newSource the new manas.event source
Returns:
the cloned manas.event with the specified source

Object org.jgraph.event.GraphSelectionEvent.getCell  ) 
 

Returns the first cell.

Returns:
the first selected cell

Object [] org.jgraph.event.GraphSelectionEvent.getCells  ) 
 

Returns the cells that have been added or removed from the selection.

Returns:
added or removed cells

boolean org.jgraph.event.GraphSelectionEvent.isAddedCell int  index  ) 
 

Returns true if the cell identified by index was added to the selection. A return value of false means the cell was in the selection but is no longer in the selection. This will raise an exception if index < 0 || >=getPaths .length.

Parameters:
index the index of areNew of the cell that is to be indicated as newly selected or not
Returns:
whether or not the cell is newly selected or not

boolean org.jgraph.event.GraphSelectionEvent.isAddedCell Object  cell  ) 
 

Returns true if the cell identified by cell was added to the selection. A return value of false means the cell was in the selection but is no longer in the selection. This will raise if cell is not one of the cells identified by this manas.event.

Parameters:
cell the cell that is to be indicated as newly selected or not
Returns:
true if the specified cell is newly selected

boolean org.jgraph.event.GraphSelectionEvent.isAddedCell  ) 
 

Returns true if the first cell has been added to the selection, a return value of false means the first cell has been removed from the selection.

Returns:
whether or not the first cell has been added or removed


Member Data Documentation

boolean [] org.jgraph.event.GraphSelectionEvent.areNew [protected]
 

For each cell identifies whether or not that cell is newly selected.

Object [] org.jgraph.event.GraphSelectionEvent.cells [protected]
 

Cells this manas.event represents.


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:13 2006 for Digimod by  doxygen 1.4.6-NO