Style Intelligence v12.0

inetsoft.graph.aesthetic
Class LinearColorFrame

java.lang.Object
  extended by inetsoft.graph.aesthetic.VisualFrame
      extended by inetsoft.graph.aesthetic.ColorFrame
          extended by inetsoft.graph.aesthetic.LinearColorFrame
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
HSLColorFrame, RGBCubeColorFrame

public abstract class LinearColorFrame
extends ColorFrame

This class defines a color frame for numeric values.

See Also:
Serialized Form

Constructor Summary
LinearColorFrame()
           
 
Method Summary
 Color getColor(DataSet data, String col, int row)
          Get the color for the specified cell.
abstract  Color getColor(double ratio)
          Get a color at the relative scale.
 Color getColor(Object val)
          Get a color for the specified value.
 
Methods inherited from class inetsoft.graph.aesthetic.ColorFrame
equals, getBrightness, isGrayscale, process, setBrightness, setGrayscale
 
Methods inherited from class inetsoft.graph.aesthetic.VisualFrame
clone, createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, getTitle, getValues, hashCode, init, isValid, isVisible, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinearColorFrame

public LinearColorFrame()
Method Detail

getColor

public abstract Color getColor(double ratio)
Get a color at the relative scale.

Parameters:
ratio - a value from 0 to 1.

getColor

public Color getColor(Object val)
Get a color for the specified value.

Specified by:
getColor in class ColorFrame

getColor

public Color getColor(DataSet data,
                      String col,
                      int row)
Get the color for the specified cell.

Specified by:
getColor in class ColorFrame
Parameters:
data - the specified dataset.
col - the name of the specified column.
row - the specified row index.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.