TWE 2.3-2 API

org.enhydra.jawe.components.graph
Class JaWEGraphSelectionModel

java.lang.Object
  extended byorg.jgraph.graph.DefaultGraphSelectionModel
      extended byorg.enhydra.jawe.components.graph.JaWEGraphSelectionModel
All Implemented Interfaces:
java.lang.Cloneable, org.jgraph.graph.GraphSelectionModel, java.io.Serializable

public class JaWEGraphSelectionModel
extends org.jgraph.graph.DefaultGraphSelectionModel

JaWE implementation of selection model.

See Also:
Serialized Form

Nested Class Summary
protected  class JaWEGraphSelectionModel.JaWECellPlaceHolder
           
 
Nested classes inherited from class org.jgraph.graph.DefaultGraphSelectionModel
org.jgraph.graph.DefaultGraphSelectionModel.CellPlaceHolder
 
Field Summary
 
Fields inherited from class org.jgraph.graph.DefaultGraphSelectionModel
cellStates, changeSupport, childrenSelectable, graph, listenerList, SELECTED, selection, SELECTION_MODE_PROPERTY, selectionMode, UNSELECTED
 
Fields inherited from interface org.jgraph.graph.GraphSelectionModel
MULTIPLE_GRAPH_SELECTION, SINGLE_GRAPH_SELECTION
 
Constructor Summary
JaWEGraphSelectionModel(org.jgraph.JGraph graph)
          Constructs a DefaultGraphSelectionModel for the specified graph.
 
Method Summary
 void addSelectionCells(java.lang.Object[] cells)
          Modifies original method to avoid selection of in/out of subflow.
 java.lang.Object[] getSelectables()
          Returns the cells that are currently selectable.
private  java.lang.Object[] removeForbiddenCells(java.lang.Object[] cells)
          Removes forbiden objects from selection.
 void removeSelectionCells(java.lang.Object[] cells)
          Modifies original method to avoid deselection of in/out of subflow.
 void setSelectionCells(java.lang.Object[] cells)
          Modifies original method to avoid selection of in/out of subflow.
 
Methods inherited from class org.jgraph.graph.DefaultGraphSelectionModel
addGraphSelectionListener, addPropertyChangeListener, addSelectionCell, clearSelection, clone, deselect, fireValueChanged, getListeners, getSelectedChildCount, getSelectionCell, getSelectionCells, getSelectionCount, getSelectionMode, isCellSelected, isChildrenSelectable, isChildrenSelectable, isChildrenSelected, isSelectionEmpty, notifyCellChange, removeGraphSelectionListener, removePropertyChangeListener, removeSelectionCell, select, setChildrenSelectable, setSelectedChildCount, setSelectionCell, setSelectionMode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaWEGraphSelectionModel

public JaWEGraphSelectionModel(org.jgraph.JGraph graph)
Constructs a DefaultGraphSelectionModel for the specified graph.

Method Detail

setSelectionCells

public void setSelectionCells(java.lang.Object[] cells)
Modifies original method to avoid selection of in/out of subflow.


addSelectionCells

public void addSelectionCells(java.lang.Object[] cells)
Modifies original method to avoid selection of in/out of subflow.


removeSelectionCells

public void removeSelectionCells(java.lang.Object[] cells)
Modifies original method to avoid deselection of in/out of subflow.


removeForbiddenCells

private java.lang.Object[] removeForbiddenCells(java.lang.Object[] cells)
Removes forbiden objects from selection.


getSelectables

public java.lang.Object[] getSelectables()
Returns the cells that are currently selectable.


TWE 2.3-2 API