|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgraph.graph.DefaultGraphSelectionModel
cz.cmc.tcgui.TCGraphSelectionModel
Title: Class TCGraphSelectionModel
Description: Cell selection model specific for the traffic control configurator
Copyright: Copyright (c) 2003
Company: CMC Computers
| Nested Class Summary | |
static class |
TCGraphSelectionModel.TCHierarchyComparator
Comparator comparing order of one (always the same) of in-depth searches of selected objects' class hierarchy |
protected class |
TCGraphSelectionModel.TCHierarchyHeapEntry
Structure containing reference to the first cell of a partial selection object type and cell count of such type |
| Nested classes inherited from class org.jgraph.graph.DefaultGraphSelectionModel |
org.jgraph.graph.DefaultGraphSelectionModel.CellPlaceHolder |
| Field Summary | |
protected Vector |
cellHeap
|
protected TreeMap |
cellMap
Map where the selected objects are structurally stored |
| Fields inherited from class org.jgraph.graph.DefaultGraphSelectionModel |
cellStates, graph, changeSupport, childrenSelectable, listenerList, SELECTED, selection, SELECTION_MODE_PROPERTY, selectionMode, UNSELECTED |
| Fields inherited from interface org.jgraph.graph.GraphSelectionModel |
MULTIPLE_GRAPH_SELECTION, SINGLE_GRAPH_SELECTION |
| Constructor Summary | |
TCGraphSelectionModel(org.jgraph.JGraph graph)
Creates a new TCGraphSelectionModel |
|
| Method Summary | |
void |
addSelectionCell(Object cell)
Overriden to update categorized list. |
void |
addSelectionCells(Object[] cells)
Overriden to update categorized list. |
protected void |
addTCCell(Object cell)
Adds a cell into TCGraphSelectionModel |
protected void |
addTCCells(Object[] cells)
Add cells into the TCGraphSelectionModel |
void |
clearSelection()
Overriden to update categorized list. |
protected void |
clearTCSelection()
Clears categorized list in TCGraphSelectionModel |
Iterator |
hierarchyIterator(Class c)
Gets Hierarchy iterator for hierarchy based on supplied class |
int |
hierarchySize(Class c)
Gets hierarchy size (number of cells at) |
boolean |
isChildrenSelectable()
Overriden to gain fine-grained control over stepping-into cells. |
protected boolean |
isChildrenSelectable(Object cell)
Overriden to gain fine-grained control over stepping-into cells. |
void |
removeSelectionCell(Object cell)
Overriden to update categorized list. |
void |
removeSelectionCells(Object[] cells)
Overriden to update categorized list. |
protected boolean |
removeTCCell(Object cell)
Removes a cell into TCGraphSelectionModel |
protected boolean |
removeTCCell(Object cell,
int idx)
Removes a cell from TCGraphSelectionModel |
protected void |
removeTCCells(Object[] cells)
Removes cells from the TCGraphSelectionModel |
void |
setSelectionCell(Object cell)
Overriden to update categorized list. |
void |
setSelectionCells(Object[] cells)
Overriden to update categorized list. |
void |
setSelectionMode(int mode)
Overriden to update categorized list. |
| Methods inherited from class org.jgraph.graph.DefaultGraphSelectionModel |
addCellStateKeysToChange, addGraphSelectionListener, addPropertyChangeListener, clone, deselect, fireValueChanged, getListeners, getSelectables, getSelectedChildCount, getSelectionCell, getSelectionCells, getSelectionCount, getSelectionMode, isCellSelected, isChildrenSelected, isSelectionEmpty, notifyCellChange, removeGraphSelectionListener, removePropertyChangeListener, select, setChildrenSelectable, setSelectedChildCount |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected TreeMap cellMap
protected Vector cellHeap
| Constructor Detail |
public TCGraphSelectionModel(org.jgraph.JGraph graph)
graph - the graph to be selection model created for| Method Detail |
public Iterator hierarchyIterator(Class c)
c - hierarchy class to return iterator for
public int hierarchySize(Class c)
c - hierarchy class to get cell count for
public void addSelectionCell(Object cell)
DefaultGraphSelectionModel.addSelectionCellpublic void addSelectionCells(Object[] cells)
DefaultGraphSelectionModel.addSelectionCellspublic void clearSelection()
DefaultGraphSelectionModel.clearSelectionpublic void removeSelectionCell(Object cell)
DefaultGraphSelectionModel.removeSelectionCellpublic void removeSelectionCells(Object[] cells)
DefaultGraphSelectionModel.removeSelectionCellspublic void setSelectionCell(Object cell)
DefaultGraphSelectionModel.setSelectionCellpublic void setSelectionCells(Object[] cells)
DefaultGraphSelectionModel.setSelectionCellspublic void setSelectionMode(int mode)
DefaultGraphSelectionModel.setSelectionCellspublic boolean isChildrenSelectable()
protected boolean isChildrenSelectable(Object cell)
protected void addTCCell(Object cell)
cell - cell to addprotected void addTCCells(Object[] cells)
cells - cells to addprotected boolean removeTCCell(Object cell)
cell - cell to remove
protected boolean removeTCCell(Object cell,
int idx)
cell - cell to removeidx - index of the cell at the heapprotected void removeTCCells(Object[] cells)
cells - cells to removeprotected void clearTCSelection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||