Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jgraph
Class JGraph.EmptySelectionModel

    java.lang.Object
      |
      +--org.jgraph.graph.DefaultGraphSelectionModel
            |
            +--org.jgraph.JGraph.EmptySelectionModel

All Implemented Interfaces:
  Cloneable, GraphSelectionModel, Serializable

Enclosing class:
  JGraph

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.

See Also:
  Serialized Form

Nested Class Summary

Nested classes inherited from class org.jgraph.graph.DefaultGraphSelectionModel
`DefaultGraphSelectionModel.CellPlaceHolder`

Field Summary
`protected static JGraph.EmptySelectionModel` | `sharedInstance` 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
`JGraph.EmptySelectionModel()` A `null` implementation that constructs an EmptySelectionModel.

Method Summary
`void` | `addSelectionCells(Object[] cells)` A `null` implementation that adds nothing.
`void` | `removeSelectionCells(Object[] cells)` A `null` implementation that removes nothing.
`void` | `setSelectionCells(Object[] cells)` A `null` implementation that selects nothing.
`static JGraph.EmptySelectionModel` | `sharedInstance()` 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`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### sharedInstance

    protected static final JGraph.EmptySelectionModel sharedInstance

  Unique shared instance.

Constructor Detail

### JGraph.EmptySelectionModel

    public JGraph.EmptySelectionModel()

  A `null` implementation that constructs an EmptySelectionModel.

Method Detail

### sharedInstance

    public static JGraph.EmptySelectionModel sharedInstance()

  Returns a shared instance of an empty selection model.

### setSelectionCells

    public void setSelectionCells(Object[] cells)

  A `null` implementation that selects nothing.

  Specified by:
    `setSelectionCells` in interface `GraphSelectionModel`
  Overrides:
    `setSelectionCells` in class `DefaultGraphSelectionModel`

### addSelectionCells

    public void addSelectionCells(Object[] cells)

  A `null` implementation that adds nothing.

  Specified by:
    `addSelectionCells` in interface `GraphSelectionModel`
  Overrides:
    `addSelectionCells` in class `DefaultGraphSelectionModel`

### removeSelectionCells

    public void removeSelectionCells(Object[] cells)

  A `null` implementation that removes nothing.

  Specified by:
    `removeSelectionCells` in interface `GraphSelectionModel`
  Overrides:
    `removeSelectionCells` in class `DefaultGraphSelectionModel`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) 2003-2004 Gaudenz Alder. All rights reserved.