Package org.jgraph
Class JGraph.EmptySelectionModel
java.lang.Object
org.jgraph.graph.DefaultGraphSelectionModel
org.jgraph.JGraph.EmptySelectionModel
- All Implemented Interfaces:
Serializable
,Cloneable
,GraphSelectionModel
- Enclosing class:
- JGraph
EmptySelectionModel
is a GraphSelectionModel
that 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphSelectionModel
DefaultGraphSelectionModel.CellPlaceHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final JGraph.EmptySelectionModel
Unique 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
ConstructorsConstructorDescriptionAnull
implementation that constructs an EmptySelectionModel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectionCells
(Object[] cells) Anull
implementation that adds nothing.void
removeSelectionCells
(Object[] cells) Anull
implementation that removes nothing.void
setSelectionCells
(Object[] cells) Anull
implementation that selects nothing.static JGraph.EmptySelectionModel
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 Details
-
Constructor Details
-
EmptySelectionModel
public EmptySelectionModel()Anull
implementation that constructs an EmptySelectionModel.
-
-
Method Details
-
setSelectionCells
Anull
implementation that selects nothing.- Specified by:
setSelectionCells
in interfaceGraphSelectionModel
- Overrides:
setSelectionCells
in classDefaultGraphSelectionModel
- Parameters:
cells
- new selection
-
addSelectionCells
Anull
implementation that adds nothing.- Specified by:
addSelectionCells
in interfaceGraphSelectionModel
- Overrides:
addSelectionCells
in classDefaultGraphSelectionModel
- Parameters:
cells
- the cells to be added to the current selection
-
removeSelectionCells
Anull
implementation that removes nothing.- Specified by:
removeSelectionCells
in interfaceGraphSelectionModel
- Overrides:
removeSelectionCells
in classDefaultGraphSelectionModel
- Parameters:
cells
- the cells to remove from the current selection