infovis.visualization.render
Class AbstractVisualColumn

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
All Implemented Interfaces:
ColumnFilter, ItemRenderer, VisualColumnDescriptor, Cloneable
Direct Known Subclasses:
SortPseudoVisualColumn, VisualAlpha, VisualArea, VisualArrowHead, VisualColor, VisualFilter, VisualFisheye, VisualImage, VisualLabel, VisualSelection, VisualShape, VisualSize, VisualVisualization

public abstract class AbstractVisualColumn
extends AbstractItemRenderer
implements VisualColumnDescriptor, ColumnFilter

Abstract class for item renderers that are also Visual Column Descriptors.

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

Constructor Summary
AbstractVisualColumn(String name)
           
 
Method Summary
static Color contrastColor(Graphics2D graphics)
           
 Color contrastColor(Graphics2D graphics, int row)
           
 boolean filter(Column column)
          Returns true if the Column should be filtered out.
 ColumnFilter getFilter()
           
 void invalidate()
           
 boolean isInvalidate()
           
 void setColumn(Column column)
           
 void setFilter(ColumnFilter filter)
           
 void setInvalidate(boolean b)
           
 
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, paint, 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
getColumn, getName
 

Constructor Detail

AbstractVisualColumn

public AbstractVisualColumn(String name)
Method Detail

setColumn

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

getFilter

public ColumnFilter getFilter()
Specified by:
getFilter in interface VisualColumnDescriptor

setFilter

public void setFilter(ColumnFilter filter)
Specified by:
setFilter in interface VisualColumnDescriptor

filter

public boolean filter(Column column)
Description copied from interface: ColumnFilter
Returns true if the Column should be filtered out.

Specified by:
filter in interface ColumnFilter
Parameters:
column - the column
Returns:
true if the Column should be filtered out.

isInvalidate

public boolean isInvalidate()
Specified by:
isInvalidate in interface VisualColumnDescriptor

setInvalidate

public void setInvalidate(boolean b)
Specified by:
setInvalidate in interface VisualColumnDescriptor

invalidate

public void invalidate()

contrastColor

public Color contrastColor(Graphics2D graphics,
                           int row)

contrastColor

public static Color contrastColor(Graphics2D graphics)


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