inetsoft.graph.aesthetic
Class LinearColorFrame
java.lang.Object
inetsoft.graph.aesthetic.VisualFrame
inetsoft.graph.aesthetic.ColorFrame
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
| 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 |
LinearColorFrame
public LinearColorFrame()
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.