Inheritance diagram for org.jgraph.graph.DefaultGraphSelectionModel:
Public Member Functions | |
DefaultGraphSelectionModel (JGraph graph) | |
void | setSelectionMode (int mode) |
int | getSelectionMode () |
void | setChildrenSelectable (boolean flag) |
boolean | isChildrenSelectable () |
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 | addGraphSelectionListener (GraphSelectionListener x) |
void | removeGraphSelectionListener (GraphSelectionListener x) |
EventListener[] | getListeners (Class listenerType) |
synchronized void | addPropertyChangeListener (PropertyChangeListener listener) |
synchronized void | removePropertyChangeListener (PropertyChangeListener listener) |
Object | clone () throws CloneNotSupportedException |
Static Public Attributes | |
static final String | SELECTION_MODE_PROPERTY = "selectionMode" |
static final int | SELECTED = -1 |
static final Integer | UNSELECTED = new Integer(0) |
Protected Member Functions | |
boolean | isChildrenSelectable (Object cell) |
int | getSelectedChildCount (Object cell) |
void | setSelectedChildCount (Object cell, int count) |
boolean | select (List list, Object cell) |
boolean | deselect (Object cell) |
void | fireValueChanged (GraphSelectionEvent e) |
void | notifyCellChange (Vector changedCells) |
Protected Attributes | |
JGraph | graph |
SwingPropertyChangeSupport | changeSupport |
EventListenerList | listenerList = new EventListenerList() |
int | selectionMode |
boolean | childrenSelectable = true |
Map | cellStates = new Hashtable() |
List | selection = new ArrayList() |
Classes | |
class | CellPlaceHolder |
|
Constructs a DefaultGraphSelectionModel for the specified graph. |
|
Adds x to the list of listeners that are notified each time the set of selected TreePaths changes.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties. A PropertyChangeEvent will get fired when the selection mode changes.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Adds the specified cell to the current selection
Implements org.jgraph.graph.GraphSelectionModel. |
|
Adds cells to the current selection.
Implements org.jgraph.graph.GraphSelectionModel. Reimplemented in org.jgraph.JGraph.EmptySelectionModel. |
|
Empties the current selection. If this represents a change in the current selection, the selection listeners are notified. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns a clone of this object with the same selection. This method does not duplicate selection listeners and property listeners.
|
|
Deselects a single cell and updates all datastructures. No listeners are notified. |
|
Notifies all listeners that are registered for tree selection events on this object.
|
|
Returns an array of all the listeners of the given type that were added to this model.
|
|
Returns the cells that are currently selectable. The array is ordered so that the top-most cell appears first. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns the number of selected childs for |
|
Returns the first cell in the selection. This is useful if there if only one item currently selected. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns the cells in the selection. This will return null (or an empty array) if nothing is currently selected. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns the number of paths that are selected. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns the selection mode, one of Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns true if the cell, Implements org.jgraph.graph.GraphSelectionModel. |
|
Hook for subclassers for fine-grained control over stepping-into cells. This implementation returns |
|
Returns true if the selection model allows the selection of children. Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns true if the cell, Implements org.jgraph.graph.GraphSelectionModel. |
|
Returns true if the selection is currently empty. Implements org.jgraph.graph.GraphSelectionModel. |
|
Notifies listeners of a change in path. |
|
Removes x from the list of listeners that are notified each time the set of selected TreePaths changes.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Removes the specified cell from the selection.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Removes the specified cells from the selection.
Implements org.jgraph.graph.GraphSelectionModel. Reimplemented in org.jgraph.JGraph.EmptySelectionModel. |
|
Selects a single cell and updates all datastructures. No listeners are notified. Override this method to control individual cell selection. |
|
Sets if the selection model allows the selection of children. Implements org.jgraph.graph.GraphSelectionModel. |
|
Sets the number of selected childs for |
|
Selects the specified cell.
Implements org.jgraph.graph.GraphSelectionModel. |
|
Sets the selection to
Implements org.jgraph.graph.GraphSelectionModel. Reimplemented in org.jgraph.JGraph.EmptySelectionModel. |
|
Sets the selection mode, which must be one of SINGLE_TREE_SELECTION, Implements org.jgraph.graph.GraphSelectionModel. |
|
Maps the cells to their selection state. |
|
Used to message registered listeners. |
|
Boolean that indicates if the model allows stepping-into groups. |
|
Reference to the parent graph. Used to find parents and childs. |
|
Event listener list. |
|
Value that represents selected state in cellStates. |
|
List that contains the selected items. |
|
Property name for selectionMode. |
|
Mode for the selection, will be either SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION. |
|
Object value that represents the unselected state in cellStates. |