|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.table.DynamicTableProxy
infovis.tree.TreeProxy
public class TreeProxy
| Field Summary |
|---|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.Tree |
|---|
ROOT, TREE_METADATA |
| Fields inherited from interface infovis.Table |
|---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
TreeProxy(Tree tree)
|
|
| Method Summary | |
|---|---|
int |
addNode(int par)
Adds a node to the tree. |
void |
addTreeModelListener(TreeModelListener l)
|
RowIterator |
childrenIterator(int node)
Returns the iterator over the children of a node. |
int |
getChild(int node,
int index)
Returns the nth child of a node. |
Object |
getChild(Object parent,
int index)
|
int |
getChildCount(int node)
Returns the number of children of a node. |
int |
getChildCount(Object parent)
|
int |
getDepth(int node)
Returns the depth of a node using either a depth column if it has been computed or the computeDepth method. |
int |
getIndexOfChild(Object parent,
Object child)
|
int |
getNodeCount()
Returns the number of proper nodes in the Tree. |
int |
getParent(int node)
Returns the parent of a node. |
Object |
getRoot()
|
Tree |
getTree()
|
boolean |
isAncestor(int node,
int par)
Returns true if the first node has the second node as ancestor. |
boolean |
isLeaf(int node)
Returns true if the node is a leaf_node. |
boolean |
isLeaf(Object node)
|
int |
nextNode()
Returns the next node to be returned by addNode. |
boolean |
removeNode(int node)
Removes a node from the tree. |
void |
removeTreeModelListener(TreeModelListener l)
|
void |
reparent(int node,
int newparent)
Change the parent of a specified node, changing the structure. |
void |
valueForPathChanged(TreePath path,
Object newValue)
|
| Methods inherited from class infovis.table.DynamicTableProxy |
|---|
addRow, getDynamicTable, removeRow |
| Methods inherited from class infovis.table.TableProxy |
|---|
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getRowCount, getTable, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, reverseIterator, setColumnAt, setValueAt, tableChanged |
| Methods inherited from class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, compare, dispose, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size, stateChanged |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.DynamicTable |
|---|
addRow, removeRow |
| Methods inherited from interface infovis.Table |
|---|
addColumn, clear, getColumn, getColumnAt, getColumnCount, getLastRow, getRowCount, getTable, indexOf, indexOf, isRowValid, removeColumn, reverseIterator, setColumnAt |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from interface infovis.Metadata |
|---|
getClientProperty, getMetadata |
| Methods inherited from interface cern.colt.function.IntComparator |
|---|
compare, equals |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnName, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
|---|
public TreeProxy(Tree tree)
| Method Detail |
|---|
public Tree getTree()
public int addNode(int par)
Tree
addNode in interface Treepar - the parent of the node.
public RowIterator childrenIterator(int node)
Tree
childrenIterator in interface Treenode - the node
public int getChild(int node,
int index)
Tree
getChild in interface Treenode - the nodeindex - the index if the requested child
public int getChildCount(int node)
Treenode.
getChildCount in interface Treenode - the node.
node.public int getDepth(int node)
Tree
getDepth in interface Treenode - the node.
public int getParent(int node)
Tree
getParent in interface Treenode - the node
public boolean isAncestor(int node,
int par)
Tree
isAncestor in interface Treenode - the node.par - the tested ancestor.
public boolean isLeaf(int node)
Tree
isLeaf in interface Treenode - the node
public int nextNode()
Tree
nextNode in interface Tree
public void reparent(int node,
int newparent)
Tree
reparent in interface Treenode - the node.newparent - the new parent.public boolean removeNode(int node)
Tree
removeNode in interface Treenode - the node to remove
public int getNodeCount()
Tree
getNodeCount in interface Treepublic void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModel
public Object getChild(Object parent,
int index)
getChild in interface TreeModelpublic int getChildCount(Object parent)
getChildCount in interface TreeModel
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelpublic Object getRoot()
getRoot in interface TreeModelpublic boolean isLeaf(Object node)
isLeaf in interface TreeModelpublic void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModel
public void valueForPathChanged(TreePath path,
Object newValue)
valueForPathChanged in interface TreeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||