infovis.visualization.render
Class VisualShape

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
          extended by infovis.visualization.render.VisualShape
All Implemented Interfaces:
ColumnFilter, ItemRenderer, VisualColumnDescriptor, Cloneable

public class VisualShape
extends AbstractVisualColumn

Choose the shape of items depending on the value of a integer/categorical column

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

Field Summary
static String VISUAL
           
 
Constructor Summary
VisualShape(ItemRenderer child)
           
VisualShape(ItemRenderer child, int defaultShape, Shape[] shapeRepertoire)
           
VisualShape(ItemRenderer c1, ItemRenderer c2)
           
 
Method Summary
static VisualShape get(Visualization vis)
           
 Column getColumn()
           
 int getDefaultShape()
           
static Shape[] getDefaultShapeRepertoire()
           
 Shape getShapeAt(int row)
           
 Shape[] getShapeRepertoireReference()
           
 void paint(Graphics2D graphics, int row, Shape shape)
           
 void setColumn(Column column)
           
 void setDefaultShape(int defaultShape)
           
static void setDefaultShapeRepertoire(Shape[] def)
           
 void setShapeRepertoire(Shape[] shapeRepertoire)
           
 
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

VisualShape

public VisualShape(ItemRenderer child,
                   int defaultShape,
                   Shape[] shapeRepertoire)

VisualShape

public VisualShape(ItemRenderer child)

VisualShape

public VisualShape(ItemRenderer c1,
                   ItemRenderer c2)
Method Detail

get

public static VisualShape get(Visualization vis)

getColumn

public Column getColumn()

setColumn

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

getDefaultShape

public int getDefaultShape()

setDefaultShape

public void setDefaultShape(int defaultShape)

getShapeRepertoireReference

public Shape[] getShapeRepertoireReference()

setShapeRepertoire

public void setShapeRepertoire(Shape[] shapeRepertoire)

getDefaultShapeRepertoire

public static Shape[] getDefaultShapeRepertoire()

setDefaultShapeRepertoire

public static void setDefaultShapeRepertoire(Shape[] def)

getShapeAt

public Shape getShapeAt(int row)

paint

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


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