Together Workflow Editor 3.0-1 API

org.enhydra.jawe.components.graph
Class JaWEGraphSelectionModel

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

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/interfaces 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.

Specified by:
setSelectionCells in interface org.jgraph.graph.GraphSelectionModel
Overrides:
setSelectionCells in class org.jgraph.graph.DefaultGraphSelectionModel

addSelectionCells

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

Specified by:
addSelectionCells in interface org.jgraph.graph.GraphSelectionModel
Overrides:
addSelectionCells in class org.jgraph.graph.DefaultGraphSelectionModel

removeSelectionCells

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

Specified by:
removeSelectionCells in interface org.jgraph.graph.GraphSelectionModel
Overrides:
removeSelectionCells in class org.jgraph.graph.DefaultGraphSelectionModel

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.

Specified by:
getSelectables in interface org.jgraph.graph.GraphSelectionModel
Overrides:
getSelectables in class org.jgraph.graph.DefaultGraphSelectionModel

Together Workflow Editor 3.0-1 API