infovis.visualization.render
Class VisualSize

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
          extended by infovis.visualization.render.VisualSize
All Implemented Interfaces:
ColumnFilter, ItemRenderer, VisualColumnDescriptor, Cloneable
Direct Known Subclasses:
VisualStrokeSize

public class VisualSize
extends AbstractVisualColumn

Class VisualSize

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

Field Summary
static double defaultDefaultSize
           
static double defaultMaxSize
           
static double defaultMinSize
           
static String VISUAL
           
 
Constructor Summary
VisualSize()
           
VisualSize(ItemRenderer child)
           
VisualSize(ItemRenderer child, double def, double min, double max)
           
 
Method Summary
static VisualSize get(Visualization vis)
           
 Column getColumn()
           
 double getDefaultSize()
          Returns the defaultSize.
 double getHeightAt(int row)
           
 double getMaxSize()
          Returns the maxSize.
 double getMinSize()
          Returns the minSize.
 double getSizeAt(int row)
          Returns the size associated with the specified row.
 NumberColumn getSizeColumn()
           
 double getWidthAt(int row)
           
 boolean isRescaling()
           
 void setColumn(Column column)
           
 void setDefaultSize(double defaultSize)
          Sets the defaultSize.
 void setMaxSize(double maxSize)
          Sets the maxSize.
 void setMinSize(double minSize)
          Sets the minSize.
 void setRectSizeAt(int row, Rectangle2D.Float rect)
           
 void setRescaling(boolean rescaling)
           
 
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, 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
getName
 

Field Detail

VISUAL

public static final String VISUAL
See Also:
Constant Field Values

defaultMinSize

public static double defaultMinSize

defaultMaxSize

public static double defaultMaxSize

defaultDefaultSize

public static double defaultDefaultSize
Constructor Detail

VisualSize

public VisualSize(ItemRenderer child)

VisualSize

public VisualSize(ItemRenderer child,
                  double def,
                  double min,
                  double max)

VisualSize

public VisualSize()
Method Detail

get

public static VisualSize get(Visualization vis)

getColumn

public Column getColumn()

isRescaling

public boolean isRescaling()

setRescaling

public void setRescaling(boolean rescaling)

getSizeColumn

public NumberColumn getSizeColumn()

setColumn

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

getSizeAt

public double getSizeAt(int row)
Returns the size associated with the specified row.

Parameters:
row - the row.
Returns:
the size associated with the specified row.

getWidthAt

public double getWidthAt(int row)

getHeightAt

public double getHeightAt(int row)

setRectSizeAt

public void setRectSizeAt(int row,
                          Rectangle2D.Float rect)

getMaxSize

public double getMaxSize()
Returns the maxSize.

Returns:
double

getMinSize

public double getMinSize()
Returns the minSize.

Returns:
double

getDefaultSize

public double getDefaultSize()
Returns the defaultSize.

Returns:
double

setMaxSize

public void setMaxSize(double maxSize)
Sets the maxSize.

Parameters:
maxSize - The maxSize to set

setMinSize

public void setMinSize(double minSize)
Sets the minSize.

Parameters:
minSize - The minSize to set

setDefaultSize

public void setDefaultSize(double defaultSize)
Sets the defaultSize.

Parameters:
defaultSize - The defaultSize to set


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