infovis.visualization.render
Class VisualSelection

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

public class VisualSelection
extends AbstractVisualColumn

Class VisualSelection

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

Field Summary
static Color CONTRAST
           
static float[] DASH1
           
static BasicStroke DASHED1
           
static BasicStroke DASHED2
           
static Color defaultSelectedColor
          The color of selected items
static String VISUAL
           
 
Constructor Summary
VisualSelection(ItemRenderer child)
           
VisualSelection(ItemRenderer child, Color selectedColor, Color unselectedColor)
           
 
Method Summary
static VisualSelection get(Visualization vis)
           
 Color getColorAt(int row)
           
 Column getColumn()
           
 Color getSelectedColor()
          Returns the selectedColor.
 BooleanColumn getSelection()
           
 Color getUnselectedColor()
          Returns the unselectedColor.
 void paint(Graphics2D graphics, int row, Shape shape)
           
 void setColumn(Column column)
           
 void setSelectedColor(Color selectedColor)
          Sets the selectedColor.
 void setUnselectedColor(Color unselectedColor)
          Sets the unselectedColor.
 
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

CONTRAST

public static final Color CONTRAST

DASH1

public static final float[] DASH1

DASHED1

public static final BasicStroke DASHED1

DASHED2

public static final BasicStroke DASHED2

defaultSelectedColor

public static Color defaultSelectedColor
The color of selected items

Constructor Detail

VisualSelection

public VisualSelection(ItemRenderer child)

VisualSelection

public VisualSelection(ItemRenderer child,
                       Color selectedColor,
                       Color unselectedColor)
Method Detail

get

public static VisualSelection get(Visualization vis)

getColumn

public Column getColumn()

getSelection

public BooleanColumn getSelection()

setColumn

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

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

getSelectedColor

public Color getSelectedColor()
Returns the selectedColor.

Returns:
Color

setSelectedColor

public void setSelectedColor(Color selectedColor)
Sets the selectedColor.

Parameters:
selectedColor - The selectedColor to set

getUnselectedColor

public Color getUnselectedColor()
Returns the unselectedColor.

Returns:
Color

setUnselectedColor

public void setUnselectedColor(Color unselectedColor)
Sets the unselectedColor.

Parameters:
unselectedColor - The unselectedColor to set


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