infovis.visualization.render
Class VisualLabel

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
          extended by infovis.visualization.render.VisualLabel
All Implemented Interfaces:
ColumnFilter, ItemRenderer, VisualColumnDescriptor, Cloneable
Direct Known Subclasses:
DefaultVisualLabel

public class VisualLabel
extends AbstractVisualColumn


Field Summary
static String VISUAL
           
 
Constructor Summary
VisualLabel()
           
VisualLabel(ItemRenderer child)
           
VisualLabel(ItemRenderer child, Color defaultColor)
           
VisualLabel(String name)
           
 
Method Summary
static VisualLabel get(ItemRenderer ir)
           
static VisualLabel get(Visualization vis)
           
 Column getColumn()
           
 Color getDefaultColor()
           
 Font getFont()
          Returns the defaultFont.
 double getHeight(String label)
           
 String getLabelAt(int row)
          Returns the label associated with the specified row.
static String getLabelAt(Visualization vis, int row)
           
 double getWidth(String label)
           
 void paint(Graphics2D graphics, int row, Shape s)
           
 void setColumn(Column column)
           
 void setDefaultColor(Color defaultColor)
           
 void setFont(Font defaultFont)
          Sets the defaultFont.
 
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, install, 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
 

Field Detail

VISUAL

public static final String VISUAL
See Also:
Constant Field Values
Constructor Detail

VisualLabel

public VisualLabel(ItemRenderer child,
                   Color defaultColor)

VisualLabel

public VisualLabel(ItemRenderer child)

VisualLabel

public VisualLabel()

VisualLabel

public VisualLabel(String name)
Method Detail

get

public static VisualLabel get(Visualization vis)

get

public static VisualLabel get(ItemRenderer ir)

getLabelAt

public static String getLabelAt(Visualization vis,
                                int row)

getColumn

public Column getColumn()

setColumn

public void setColumn(Column column)
Specified by:
setColumn in interface VisualColumnDescriptor
Overrides:
setColumn in class AbstractVisualColumn

getFont

public Font getFont()
Returns the defaultFont.

Returns:
Font

setFont

public void setFont(Font defaultFont)
Sets the defaultFont.

Parameters:
defaultFont - The defaultFont to set

getLabelAt

public String getLabelAt(int row)
Returns the label associated with the specified row.

Parameters:
row - the row.
Returns:
the label associated with the specified row.

getWidth

public double getWidth(String label)

getHeight

public double getHeight(String label)

getDefaultColor

public Color getDefaultColor()

setDefaultColor

public void setDefaultColor(Color defaultColor)

paint

public void paint(Graphics2D graphics,
                  int row,
                  Shape s)
Specified by:
paint in interface ItemRenderer
Overrides:
paint in class AbstractItemRenderer


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