infovis.tree.visualization.treemap
Class TreemapVisualLabel

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
          extended by infovis.visualization.render.VisualLabel
              extended by infovis.visualization.render.DefaultVisualLabel
                  extended by infovis.tree.visualization.treemap.TreemapVisualLabel
All Implemented Interfaces:
ColumnFilter, ItemRenderer, Orientable, VisualColumnDescriptor, Cloneable, SwingConstants

public class TreemapVisualLabel
extends DefaultVisualLabel

VisualLabel for treemaps.

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete

Field Summary
 
Fields inherited from class infovis.visualization.render.DefaultVisualLabel
DEFAULT_LABEL_COLUMN_NAMES
 
Fields inherited from class infovis.visualization.render.VisualLabel
VISUAL
 
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
TreemapVisualLabel()
          Constructor.
TreemapVisualLabel(Color def)
          Constructor with default color.
 
Method Summary
 void install(Graphics2D graphics)
          
 void paint(Graphics2D graphics, int row, Shape s)
          
 
Methods inherited from class infovis.visualization.render.DefaultVisualLabel
findDefaultLabelColumn, findDefaultLabelColumn, getHeight, getJustification, getLabelClipper, getOrientation, getWidth, isClipped, isOutlined, isShowingLabel, setClipped, setJustification, setLabelClipper, setOrientation, setOutlined, setShowingLabel
 
Methods inherited from class infovis.visualization.render.VisualLabel
get, get, getColumn, getDefaultColor, getFont, getLabelAt, getLabelAt, setColumn, setDefaultColor, setFont
 
Methods inherited from class infovis.visualization.render.AbstractVisualColumn
contrastColor, contrastColor, filter, getFilter, invalidate, isInvalidate, setFilter, setInvalidate
 
Methods inherited from class infovis.visualization.render.AbstractItemRenderer
addRenderer, compile, compileGroup, findNamed, findNamed, getName, getRenderer, getRendererCount, getVisualization, indexOf, insertAfterNamed, insertBeforeNamed, insertRenderer, instantiate, invalidate, isPrototype, pick, removeNamed, removeRenderer, repaint, replaceNamed, replaceNamed, setRenderer, uninstall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface infovis.visualization.VisualColumnDescriptor
getName
 

Constructor Detail

TreemapVisualLabel

public TreemapVisualLabel()
Constructor.


TreemapVisualLabel

public TreemapVisualLabel(Color def)
Constructor with default color.

Parameters:
def - the default color.
Method Detail

install

public void install(Graphics2D graphics)

Specified by:
install in interface ItemRenderer
Overrides:
install in class AbstractItemRenderer

paint

public void paint(Graphics2D graphics,
                  int row,
                  Shape s)

Specified by:
paint in interface ItemRenderer
Overrides:
paint in class DefaultVisualLabel


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