org.jgraph

Class JGraph.EmptySelectionModel

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.

Field Summary
protected static JGraph.EmptySelectionModelsharedInstance
Unique shared instance.
Constructor Summary
EmptySelectionModel()
A null implementation that constructs an EmptySelectionModel.
Method Summary
voidaddSelectionCells(Object[] cells)
A null implementation that adds nothing.
voidremoveSelectionCells(Object[] cells)
A null implementation that removes nothing.
voidsetSelectionCells(Object[] cells)
A null implementation that selects nothing.
static JGraph.EmptySelectionModelsharedInstance()
Returns a shared instance of an empty selection model.

Field Detail

sharedInstance

protected static final JGraph.EmptySelectionModel sharedInstance
Unique shared instance.

Constructor Detail

EmptySelectionModel

public EmptySelectionModel()
A null implementation that constructs an EmptySelectionModel.

Method Detail

addSelectionCells

public void addSelectionCells(Object[] cells)
A null implementation that adds nothing.

removeSelectionCells

public void removeSelectionCells(Object[] cells)
A null implementation that removes nothing.

setSelectionCells

public void setSelectionCells(Object[] cells)
A null implementation that selects nothing.

sharedInstance

public static JGraph.EmptySelectionModel sharedInstance()
Returns a shared instance of an empty selection model.
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.