infovis.tree.visualization
Class NodeLinkTreeVisualization
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.visualization.DefaultVisualization
infovis.tree.visualization.TreeVisualization
infovis.tree.visualization.NodeLinkTreeVisualization
- All Implemented Interfaces:
- IntComparator, IntProcedure, Column, DynamicTable, Metadata, Constants, Table, Tree, RowComparator, Visualization, LabeledComponent, NodeAccessor, Orientable, Serializable, EventListener, ChangeListener, TableModelListener, SwingConstants, TableModel, TreeModel
public class NodeLinkTreeVisualization
- extends TreeVisualization
- implements NodeAccessor
Node Link Diagram Visualization of Trees.
- Version:
- $Revision$
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
- InfoVis factory arguments:
- VisualizationFactory "Tree Node Link" infovis.Tree
Fields inherited from interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Fields inherited from interface infovis.Visualization |
PROPERTY_INTERACTOR, PROPERTY_ITEM_RENDERER, PROPERTY_LAYOUT, PROPERTY_ORIENTATION, PROPERTY_PARENT, PROPERTY_PERMUTATION, PROPERTY_RULERS, VC_DESCRIPTOR_PROPERTY_PREFIX, VISUAL_ALPHA, VISUAL_COLOR, VISUAL_FILTER, VISUAL_HOVER, VISUAL_LABEL, VISUAL_SELECTION, VISUAL_SHAPE, VISUAL_SIZE |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Methods inherited from class infovis.tree.visualization.TreeVisualization |
addNode, addRow, addTreeModelListener, apply, childrenIterator, getChild, getChild, getChildCount, getChildCount, getDepth, getFirstChild, getIndexOfChild, getNodeCount, getParent, getRoot, getTransformFunction, getTree, getVisibleRoot, getWeightColumn, isAncestor, isLeaf, isLeaf, nextNode, removeNode, removeRow, removeTreeModelListener, reparent, reverseIterator, setPermutation, setTransformFunction, setVisibleRoot, valueForPathChanged |
Methods inherited from class infovis.visualization.DefaultVisualization |
addPropertyChangeListener, addPropertyChangeListener, computeMinMax, computeMinMaxFiltered, computeShapes, createLabelItem, findRectAt, findVisualization, firePropertyChange, firePropertyChange, firePropertyChange, fireVisualColumnDescriptorChanged, freeRectAt, getBounds, getComponent, getFilter, getFisheye, getInteractor, getItemRenderer, getItemRenderer, getItemRenderer, getOrientation, getParent, getPermutation, getPreferredSize, getRectAt, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getShapeBoundsAt, getShapes, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualizationBounds, invalidate, invalidate, isFiltered, isInvalidateColumn, isInvalidated, iterator, paint, paintItem, paintVisualizations, pickAll, pickAll, pickItem, pickTop, pickTop, print, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, setFisheye, setInteractor, setItemRenderer, setOrientation, setParent, setShapeAt, setVisualColumn, stateChanged, tableChanged, validateShapes |
Methods inherited from class infovis.table.TableProxy |
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, setColumnAt, setValueAt |
Methods inherited from class infovis.column.ColumnProxy |
addValue, addValueOrNull, capacity, compare, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
Methods inherited from interface infovis.Table |
addColumn, clear, getColumn, getColumnAt, getColumnCount, getLastRow, getRowCount, getTable, indexOf, indexOf, isRowValid, removeColumn, 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 |
NodeLinkTreeVisualization
public NodeLinkTreeVisualization(Tree tree)
- Constructor for NodeLinkTreeVisualization.
- Parameters:
tree
- the Tree
NodeLinkTreeVisualization
public NodeLinkTreeVisualization(Tree tree,
ItemRenderer ir)
- Constructor for NodeLinkTreeVisualization.
- Parameters:
tree
- the Tree
ir
- The ItemRenderer
or null
getStartNode
public int getStartNode(int link)
-
- Specified by:
getStartNode
in interface NodeAccessor
getEndNode
public int getEndNode(int link)
-
- Specified by:
getEndNode
in interface NodeAccessor
getLayout
public Layout getLayout()
- Returns the layout object managed by this visualization or
null if the visualization computes the layout by itself.
- Overrides:
getLayout
in class DefaultVisualization
- Returns:
- the layout object managed by this visualization or null.
setLayout
public void setLayout(NodeLinkTreeLayout layout)
- Ssts the Layout of the visualization.
- Parameters:
layout
- the layout.
paintItems
public void paintItems(Graphics2D graphics,
Rectangle2D bounds)
- Method for filtering and painting the items.
- Overrides:
paintItems
in class TreeVisualization
- Parameters:
graphics
- the graphics.bounds
- the bounding box of the visualization.
dispose
public void dispose()
- Releases all the resources used by the visualization.
- Specified by:
dispose
in interface Visualization
- Overrides:
dispose
in class DefaultVisualization
getVisualization
public Visualization getVisualization(int index)
- Returns a dependent Visualization used by this Visualization in its stack.
- Specified by:
getVisualization
in interface Visualization
- Overrides:
getVisualization
in class DefaultVisualization
- Parameters:
index
- the index of the dependent visualization
- Returns:
- a dependent Visualization used by this Visualization in its stack
or NIL if none exist at this index.
getLinkVisualization
public LinkVisualization getLinkVisualization()
- Returns the LinkVisualization of this NodeLinkTreevisualization.
- Returns:
- the LinkVisualization of this NodeLinkTreevisualization.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.