Inheritance diagram for org.jgraph.graph.GraphSelectionModel:
Public Member Functions | |
void | setSelectionMode (int mode) |
void | setChildrenSelectable (boolean flag) |
boolean | isChildrenSelectable () |
int | getSelectionMode () |
void | setSelectionCell (Object cell) |
void | setSelectionCells (Object[] cells) |
void | addSelectionCell (Object cell) |
void | addSelectionCells (Object[] cells) |
void | removeSelectionCell (Object cell) |
void | removeSelectionCells (Object[] cells) |
Object[] | getSelectables () |
Object | getSelectionCell () |
Object[] | getSelectionCells () |
int | getSelectionCount () |
boolean | isCellSelected (Object cell) |
boolean | isChildrenSelected (Object cell) |
boolean | isSelectionEmpty () |
void | clearSelection () |
void | addPropertyChangeListener (PropertyChangeListener listener) |
void | removePropertyChangeListener (PropertyChangeListener listener) |
void | addGraphSelectionListener (GraphSelectionListener x) |
void | removeGraphSelectionListener (GraphSelectionListener x) |
Static Public Attributes | |
static final int | SINGLE_GRAPH_SELECTION = 1 |
static final int | MULTIPLE_GRAPH_SELECTION = 4 |
A GraphSelectionModel can be configured to allow only one cell (SINGLE_GRAPH_SELECTION
) or a number of cells (MULTIPLE_GRAPH_SELECTION
).
|
Adds x to the list of listeners that are notified each time the set of selected Objects changes.
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties. A PropertyChangeEvent will get fired when the selection mode changes.
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Adds cell to the current selection. If cell is not currently in the selection the GraphSelectionListeners are notified. This has no effect if
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Adds cells to the current selection. If any of the cells are not currently in the selection the GraphSelectionListeners are notified. This has no effect if
Implemented in org.jgraph.graph.DefaultGraphSelectionModel, and org.jgraph.JGraph.EmptySelectionModel. |
|
Empties the current selection. If this represents a change in the current selection, the selection listeners are notified. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns the cells that are currently selectable. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns the first cell in the selection. How first is defined is up to implementors. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns the cells in the selection. This will return null (or an empty array) if nothing is currently selected. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns the number of cells that are selected. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns the current selection mode, either Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns true if the cell, Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns true if the selection model allows the selection of children. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns true if the cell, Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Returns true if the selection is currently empty. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Removes x from the list of listeners that are notified each time the set of selected Objects changes.
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Removes cell from the selection. If cell is in the selection the GraphSelectionListeners are notified. This has no effect if
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Removes cells from the selection. If any of the cells in
Implemented in org.jgraph.graph.DefaultGraphSelectionModel, and org.jgraph.JGraph.EmptySelectionModel. |
|
Sets if the selection model allows the selection of children. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Sets the selection to cell. If this represents a change, then the GraphSelectionListeners are notified. If
Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Sets the selection to cells. If this represents a change, then the GraphSelectionListeners are notified. If
Implemented in org.jgraph.graph.DefaultGraphSelectionModel, and org.jgraph.JGraph.EmptySelectionModel. |
|
Sets the selection model, which must be either SINGLE_GRAPH_SELECTION or MULTIPLE_GRAPH_SELECTION. This may change the selection if the current selection is not valid for the new mode. Implemented in org.jgraph.graph.DefaultGraphSelectionModel. |
|
Selection can contain any number of items. |
|
Selection can only contain one cell at a time. |