public static class JGraph.EmptySelectionModel extends DefaultGraphSelectionModel
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.
DefaultGraphSelectionModel.CellPlaceHolder
Modifier and Type | Field and Description |
---|---|
protected static JGraph.EmptySelectionModel |
sharedInstance
Unique shared instance.
|
cellStates, changeSupport, childrenSelectable, graph, listenerList, SELECTED, selection, SELECTION_MODE_PROPERTY, selectionMode, UNSELECTED
MULTIPLE_GRAPH_SELECTION, SINGLE_GRAPH_SELECTION
Constructor and Description |
---|
EmptySelectionModel()
A
null implementation that constructs an
EmptySelectionModel. |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionCells(java.lang.Object[] cells)
A
null implementation that adds nothing. |
void |
removeSelectionCells(java.lang.Object[] cells)
A
null implementation that removes nothing. |
void |
setSelectionCells(java.lang.Object[] cells)
A
null implementation that selects nothing. |
static JGraph.EmptySelectionModel |
sharedInstance()
Returns a shared instance of an empty selection model.
|
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
protected static final JGraph.EmptySelectionModel sharedInstance
public EmptySelectionModel()
null
implementation that constructs an
EmptySelectionModel.public static JGraph.EmptySelectionModel sharedInstance()
public void setSelectionCells(java.lang.Object[] cells)
null
implementation that selects nothing.setSelectionCells
in interface GraphSelectionModel
setSelectionCells
in class DefaultGraphSelectionModel
cells
- new selectionpublic void addSelectionCells(java.lang.Object[] cells)
null
implementation that adds nothing.addSelectionCells
in interface GraphSelectionModel
addSelectionCells
in class DefaultGraphSelectionModel
cells
- the cells to be added to the current selectionpublic void removeSelectionCells(java.lang.Object[] cells)
null
implementation that removes nothing.removeSelectionCells
in interface GraphSelectionModel
removeSelectionCells
in class DefaultGraphSelectionModel
cells
- the cells to remove from the current selectionCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.