infovis.visualization.render
Class VisualColor

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

public class VisualColor
extends AbstractVisualColumn

Class VisualColor

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

Field Summary
static Color defaultDefaultColor
           
static String VISUAL
           
 
Constructor Summary
VisualColor(ItemRenderer child)
           
VisualColor(ItemRenderer child, Color def)
           
VisualColor(ItemRenderer c1, ItemRenderer c2)
           
VisualColor(ItemRenderer c1, ItemRenderer c2, ItemRenderer c3)
           
VisualColor(ItemRenderer c1, ItemRenderer c2, ItemRenderer c3, ItemRenderer c4)
           
 
Method Summary
 void createColorVisualization()
           
 Column findDefaultColorColumn()
           
static VisualColor get(ItemRenderer ir)
           
static VisualColor get(Visualization vis)
           
 Color getColorAt(int row)
           
 ColorVisualization getColorVisualization()
           
 Column getColumn()
           
 Color getDefaultColor()
           
 boolean isSmooth()
          Returns the smooth.
 void paint(Graphics2D graphics, int row, Shape shape)
           
 void setColorVisualization(ColorVisualization cv)
           
 void setColumn(Column column)
           
 void setDefaultColor(Color color)
           
 void setSmooth(boolean smooth)
          Sets the smooth.
 
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

defaultDefaultColor

public static Color defaultDefaultColor
Constructor Detail

VisualColor

public VisualColor(ItemRenderer child)

VisualColor

public VisualColor(ItemRenderer c1,
                   ItemRenderer c2)

VisualColor

public VisualColor(ItemRenderer c1,
                   ItemRenderer c2,
                   ItemRenderer c3)

VisualColor

public VisualColor(ItemRenderer c1,
                   ItemRenderer c2,
                   ItemRenderer c3,
                   ItemRenderer c4)

VisualColor

public VisualColor(ItemRenderer child,
                   Color def)
Method Detail

get

public static VisualColor get(Visualization vis)

get

public static VisualColor get(ItemRenderer ir)

setColumn

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

createColorVisualization

public void createColorVisualization()

getColumn

public Column getColumn()

findDefaultColorColumn

public Column findDefaultColorColumn()

getColorAt

public Color getColorAt(int row)

paint

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

getColorVisualization

public ColorVisualization getColorVisualization()

getDefaultColor

public Color getDefaultColor()

setColorVisualization

public void setColorVisualization(ColorVisualization cv)

setDefaultColor

public void setDefaultColor(Color color)

isSmooth

public boolean isSmooth()
Returns the smooth.

Returns:
boolean

setSmooth

public void setSmooth(boolean smooth)
Sets the smooth.

Parameters:
smooth - The smooth to set


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