infovis.tree.visualization
Class TreemapVisualization

java.lang.Object
  extended by infovis.utils.ChangeManager
      extended by infovis.column.AbstractColumn
          extended by infovis.column.ColumnProxy
              extended by infovis.table.TableProxy
                  extended by infovis.visualization.DefaultVisualization
                      extended by infovis.tree.visualization.TreeVisualization
                          extended by infovis.tree.visualization.TreemapVisualization
All Implemented Interfaces:
IntComparator, IntProcedure, Column, DynamicTable, Metadata, Constants, Table, Tree, RowComparator, Visualization, LabeledComponent, Orientable, Serializable, EventListener, ChangeListener, TableModelListener, SwingConstants, TableModel, TreeModel

public class TreemapVisualization
extends TreeVisualization

Visualization of a Tree using a Treemap layout.

Version:
$Revision: 1.48 $ * @infovis.factory VisualizationFactory "Treemap" infovis.Tree
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent
LabeledComponent.LabeledItem
 
Field Summary
 
Fields inherited from class infovis.tree.visualization.TreeVisualization
PROPERTY_ROOT, SORTEDCHILDREN_COLUMN, WEIGHT_COLUMN
 
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
 
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 infovis.visualization.Orientable
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2
 
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
 
Constructor Summary
TreemapVisualization(Tree tree)
          Creates a new TreemapVisualization object.
TreemapVisualization(Tree tree, Treemap treemap)
          Creates a new TreemapVisualization object.
 
Method Summary
 Layout getLayout()
          Returns the layout object managed by this visualization or null if the visualization computes the layout by itself.
 Dimension getPreferredSize()
          Returns the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.
 Treemap getTreemap()
          Returns the Treemap.
 void setLayout(Treemap treemap)
          Sets the treemap.
 
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, paintItems, removeNode, removeRow, removeTreeModelListener, reparent, reverseIterator, setPermutation, setTransformFunction, setVisibleRoot, valueForPathChanged
 
Methods inherited from class infovis.visualization.DefaultVisualization
addPropertyChangeListener, addPropertyChangeListener, computeMinMax, computeMinMaxFiltered, computeShapes, createLabelItem, dispose, findRectAt, findVisualization, firePropertyChange, firePropertyChange, firePropertyChange, fireVisualColumnDescriptorChanged, freeRectAt, getBounds, getComponent, getFilter, getFisheye, getInteractor, getItemRenderer, getItemRenderer, getItemRenderer, getOrientation, getParent, getPermutation, getRectAt, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getShapeBoundsAt, getShapes, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualization, 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 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.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
 
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

TreemapVisualization

public TreemapVisualization(Tree tree,
                            Treemap treemap)
Creates a new TreemapVisualization object.

Parameters:
tree - the Tree
treemap - the Treemap Layout algorithm.

TreemapVisualization

public TreemapVisualization(Tree tree)
Creates a new TreemapVisualization object.

Parameters:
tree - the Tree
Method Detail

getTreemap

public Treemap getTreemap()
Returns the Treemap.

Returns:
Treemap

setLayout

public void setLayout(Treemap treemap)
Sets the treemap.

Parameters:
treemap - The treemap to set

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.

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.

Specified by:
getPreferredSize in interface Visualization
Overrides:
getPreferredSize in class DefaultVisualization
Returns:
the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.