Style Intelligence v12.0

inetsoft.graph.aesthetic
Class SaturationColorFrame

java.lang.Object
  extended by inetsoft.graph.aesthetic.VisualFrame
      extended by inetsoft.graph.aesthetic.ColorFrame
          extended by inetsoft.graph.aesthetic.LinearColorFrame
              extended by inetsoft.graph.aesthetic.HSLColorFrame
                  extended by 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

Field Summary
 
Fields inherited from class inetsoft.graph.aesthetic.HSLColorFrame
brightness, color, hue, saturation
 
Constructor Summary
SaturationColorFrame()
          Create a color frame.
SaturationColorFrame(String field)
          Create a color frame.
 
Method Summary
 Color getColor(double ratio)
          Get the color.
 
Methods inherited from class inetsoft.graph.aesthetic.HSLColorFrame
equals, getColor, hslToRGB, init, setColor
 
Methods inherited from class inetsoft.graph.aesthetic.LinearColorFrame
getColor, getColor
 
Methods inherited from class inetsoft.graph.aesthetic.ColorFrame
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

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.
Method Detail

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.

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