Package org.jgraph
Class JGraph.EmptySelectionModel
- java.lang.Object
-
- org.jgraph.graph.DefaultGraphSelectionModel
-
- org.jgraph.JGraph.EmptySelectionModel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,GraphSelectionModel
- Enclosing class:
- JGraph
public static class JGraph.EmptySelectionModel extends DefaultGraphSelectionModel
EmptySelectionModelis aGraphSelectionModelthat does not allow anything to be selected.Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphSelectionModel
DefaultGraphSelectionModel.CellPlaceHolder
-
-
Field Summary
Fields Modifier and Type Field Description protected static JGraph.EmptySelectionModelsharedInstanceUnique shared instance.-
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
Constructors Constructor Description EmptySelectionModel()Anullimplementation that constructs an EmptySelectionModel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSelectionCells(java.lang.Object[] cells)Anullimplementation that adds nothing.voidremoveSelectionCells(java.lang.Object[] cells)Anullimplementation that removes nothing.voidsetSelectionCells(java.lang.Object[] cells)Anullimplementation that selects nothing.static JGraph.EmptySelectionModelsharedInstance()Returns a shared instance of an empty selection model.-
Methods inherited from class org.jgraph.graph.DefaultGraphSelectionModel
addGraphSelectionListener, addPropertyChangeListener, addSelectionCell, clearSelection, clone, deselect, fireValueChanged, getListeners, getSelectables, getSelectedChildCount, getSelectionCell, getSelectionCells, getSelectionCount, getSelectionMode, isCellSelected, isChildrenSelectable, isChildrenSelectable, isChildrenSelected, isSelectionEmpty, notifyCellChange, removeGraphSelectionListener, removePropertyChangeListener, removeSelectionCell, select, setChildrenSelectable, setSelectedChildCount, setSelectionCell, setSelectionMode
-
-
-
-
Field Detail
-
sharedInstance
protected static final JGraph.EmptySelectionModel sharedInstance
Unique shared instance.
-
-
Method Detail
-
sharedInstance
public static JGraph.EmptySelectionModel sharedInstance()
Returns a shared instance of an empty selection model.
-
setSelectionCells
public void setSelectionCells(java.lang.Object[] cells)
Anullimplementation that selects nothing.- Specified by:
setSelectionCellsin interfaceGraphSelectionModel- Overrides:
setSelectionCellsin classDefaultGraphSelectionModel- Parameters:
cells- new selection
-
addSelectionCells
public void addSelectionCells(java.lang.Object[] cells)
Anullimplementation that adds nothing.- Specified by:
addSelectionCellsin interfaceGraphSelectionModel- Overrides:
addSelectionCellsin classDefaultGraphSelectionModel- Parameters:
cells- the cells to be added to the current selection
-
removeSelectionCells
public void removeSelectionCells(java.lang.Object[] cells)
Anullimplementation that removes nothing.- Specified by:
removeSelectionCellsin interfaceGraphSelectionModel- Overrides:
removeSelectionCellsin classDefaultGraphSelectionModel- Parameters:
cells- the cells to remove from the current selection
-
-