Style Intelligence v12.0

inetsoft.graph.aesthetic
Class HSLColorFrame

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
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BrightnessColorFrame, SaturationColorFrame

public abstract class HSLColorFrame
extends LinearColorFrame

This class defines a color frame for continuous numeric values. This is the base class for color frames that using the HSL scale.

See Also:
Serialized Form

Field Summary
protected  double brightness
           
protected  Color color
           
protected  double hue
           
protected  double saturation
           
 
Constructor Summary
HSLColorFrame()
           
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 Color getColor()
          Get the base color value of the color frame.
protected  int[] hslToRGB(double h, double s, double l)
          Convert hue, saturation, lightness to RGB values.
protected  void init()
          Initialize a color frame that contains HSL values.
 void setColor(Color color)
          Set the base color value to the color frame.
 
Methods inherited from class inetsoft.graph.aesthetic.LinearColorFrame
getColor, 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
 

Field Detail

color

protected Color color

hue

protected double hue

saturation

protected double saturation

brightness

protected double brightness
Constructor Detail

HSLColorFrame

public HSLColorFrame()
Method Detail

getColor

public Color getColor()
Get the base color value of the color frame.


setColor

public void setColor(Color color)
Set the base color value to the color frame.


init

protected void init()
Initialize a color frame that contains HSL values.


hslToRGB

protected int[] hslToRGB(double h,
                         double s,
                         double l)
Convert hue, saturation, lightness to RGB values.

Parameters:
h - the value of hue.
s - the value of saturation.
l - the value of lightness.

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class ColorFrame

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