inetsoft.graph.aesthetic
Class SaturationColorFrame
java.lang.Object
inetsoft.graph.aesthetic.VisualFrame
inetsoft.graph.aesthetic.ColorFrame
inetsoft.graph.aesthetic.LinearColorFrame
inetsoft.graph.aesthetic.HSLColorFrame
inetsoft.graph.aesthetic.SaturationColorFrame
- All Implemented Interfaces:
- Serializable, Cloneable
public class SaturationColorFrame
- extends HSLColorFrame
This class defines a continuous color frame that returns colors varying on
the Saturation of the color.
- 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 |
SaturationColorFrame
public SaturationColorFrame()
- Create a color frame. The field needs to be set by calling setField.
SaturationColorFrame
public SaturationColorFrame(String field)
- Create a color frame.
- Parameters:
field - field to get value to map to color.
getColor
public Color getColor(double ratio)
- Get the color.
- Specified by:
getColor in class LinearColorFrame
- Parameters:
ratio - the value between 0 and 1,
and is the position of the value in a linear scale.