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, UNSELECTEDMULTIPLE_GRAPH_SELECTION, SINGLE_GRAPH_SELECTION| Constructor and Description |
|---|
JGraph.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, setSelectionModeprotected static final JGraph.EmptySelectionModel sharedInstance
public JGraph.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 GraphSelectionModelsetSelectionCells in class DefaultGraphSelectionModelcells - new selectionpublic void addSelectionCells(java.lang.Object[] cells)
null implementation that adds nothing.addSelectionCells in interface GraphSelectionModeladdSelectionCells in class DefaultGraphSelectionModelcells - the cells to be added to the current selectionpublic void removeSelectionCells(java.lang.Object[] cells)
null implementation that removes nothing.removeSelectionCells in interface GraphSelectionModelremoveSelectionCells in class DefaultGraphSelectionModelcells - the cells to remove from the current selectionCopyright (C) 2001-2008 Gaudenz Alder. All rights reserved.