infovis.visualization.render
Class AbstractItemRenderer

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
All Implemented Interfaces:
ItemRenderer, Cloneable
Direct Known Subclasses:
AbstractVisualColumn, GroupItemRenderer, NoVisual, VisualClipBounds, VisualStatistics

public abstract class AbstractItemRenderer
extends Object
implements ItemRenderer, Cloneable

Class AbstractItemRenderer

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

Constructor Summary
AbstractItemRenderer(String name)
           
 
Method Summary
 ItemRenderer addRenderer(ItemRenderer r)
           
 ItemRenderer compile()
           
 ItemRenderer compileGroup()
           
static ItemRenderer findNamed(String name, ItemRenderer ir)
           
static ItemRenderer findNamed(String name, Visualization vis)
           
 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()
           
 int indexOf(ItemRenderer r)
           
static boolean insertAfterNamed(String name, ItemRenderer nir, ItemRenderer ir)
           
static boolean insertBeforeNamed(String name, ItemRenderer nir, ItemRenderer ir)
           
 ItemRenderer insertRenderer(int index, ItemRenderer r)
           
 void install(Graphics2D graphics)
           
 ItemRenderer instantiate(Visualization vis)
           
 void invalidate(Column c)
           
 boolean isPrototype()
           
 void paint(Graphics2D graphics, int row, Shape shape)
           
 boolean pick(Rectangle2D hitBox, int row, Shape shape)
           
static boolean removeNamed(String name, ItemRenderer ir)
           
 ItemRenderer removeRenderer(int index)
           
 void repaint()
           
static boolean replaceNamed(ItemRenderer named, ItemRenderer ir)
           
static boolean replaceNamed(String name, ItemRenderer nir, ItemRenderer ir)
           
 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
 

Constructor Detail

AbstractItemRenderer

public AbstractItemRenderer(String name)
Method Detail

findNamed

public static ItemRenderer findNamed(String name,
                                     ItemRenderer ir)

findNamed

public static ItemRenderer findNamed(String name,
                                     Visualization vis)

replaceNamed

public static boolean replaceNamed(ItemRenderer named,
                                   ItemRenderer ir)

replaceNamed

public static boolean replaceNamed(String name,
                                   ItemRenderer nir,
                                   ItemRenderer ir)

insertBeforeNamed

public static boolean insertBeforeNamed(String name,
                                        ItemRenderer nir,
                                        ItemRenderer ir)

insertAfterNamed

public static boolean insertAfterNamed(String name,
                                       ItemRenderer nir,
                                       ItemRenderer ir)

removeNamed

public static boolean removeNamed(String name,
                                  ItemRenderer ir)

instantiate

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

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

getVisualization

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

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.

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.

indexOf

public int indexOf(ItemRenderer r)

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

setRenderer

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

removeRenderer

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

compile

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

compileGroup

public ItemRenderer compileGroup()

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

pick

public boolean pick(Rectangle2D hitBox,
                    int row,
                    Shape shape)
Specified by:
pick in interface ItemRenderer

isPrototype

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

invalidate

public void invalidate(Column c)

repaint

public void repaint()


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