infovis.visualization.render
Class StaticItemRenderer

java.lang.Object
  extended by infovis.visualization.render.StaticItemRenderer
All Implemented Interfaces:
ItemRenderer
Direct Known Subclasses:
Fill, Stroke

public abstract class StaticItemRenderer
extends Object
implements ItemRenderer

Base class for ItemRenderer used as static objects.

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

Constructor Summary
StaticItemRenderer()
           
 
Method Summary
 ItemRenderer addRenderer(ItemRenderer r)
           
 ItemRenderer compile()
           
 String getName()
          Returns the name of this pipeline object or null if it should not be seen from the outside (like a container).
 ItemRenderer getRenderer(int index)
          Returns the children of this ItemRenderer at the specified index.
 int getRendererCount()
          Returns the number of children ItemRenderer.
 Visualization getVisualization()
           
 ItemRenderer insertRenderer(int index, ItemRenderer r)
           
 void install(Graphics2D graphics)
           
 ItemRenderer instantiate(Visualization vis)
           
 boolean isPrototype()
           
 void paint(Graphics2D graphics, int row, Shape shape)
           
 ItemRenderer removeRenderer(int index)
           
 ItemRenderer setRenderer(int index, ItemRenderer r)
           
 void uninstall(Graphics2D graphics)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface infovis.visualization.ItemRenderer
pick
 

Constructor Detail

StaticItemRenderer

public StaticItemRenderer()
Method Detail

getName

public String getName()
Description copied from interface: ItemRenderer
Returns the name of this pipeline object or null if it should not be seen from the outside (like a container).

Specified by:
getName in interface ItemRenderer
Returns:
the name or null

getRenderer

public ItemRenderer getRenderer(int index)
Description copied from interface: ItemRenderer
Returns the children of this ItemRenderer at the specified index.

Specified by:
getRenderer in interface ItemRenderer
Parameters:
index - the index.
Returns:
the children of this ItemRendered at the specified index.

getRendererCount

public int getRendererCount()
Description copied from interface: ItemRenderer
Returns the number of children ItemRenderer.

Specified by:
getRendererCount in interface ItemRenderer
Returns:
the number of children ItemRenderer.

insertRenderer

public ItemRenderer insertRenderer(int index,
                                   ItemRenderer r)
Specified by:
insertRenderer in interface ItemRenderer

addRenderer

public ItemRenderer addRenderer(ItemRenderer r)
Specified by:
addRenderer in interface ItemRenderer

removeRenderer

public ItemRenderer removeRenderer(int index)
Specified by:
removeRenderer in interface ItemRenderer

setRenderer

public ItemRenderer setRenderer(int index,
                                ItemRenderer r)
Specified by:
setRenderer in interface ItemRenderer

getVisualization

public Visualization getVisualization()
Specified by:
getVisualization in interface ItemRenderer

install

public void install(Graphics2D graphics)
Specified by:
install in interface ItemRenderer

paint

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

uninstall

public void uninstall(Graphics2D graphics)
Specified by:
uninstall in interface ItemRenderer

isPrototype

public boolean isPrototype()
Specified by:
isPrototype in interface ItemRenderer

instantiate

public ItemRenderer instantiate(Visualization vis)
Specified by:
instantiate in interface ItemRenderer

compile

public ItemRenderer compile()
Specified by:
compile in interface ItemRenderer


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