Style Intelligence v12.0

inetsoft.graph.aesthetic
Class RGBCubeColorFrame

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.RGBCubeColorFrame
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BipolarColorFrame, CircularColorFrame, GradientColorFrame, HeatColorFrame, RainbowColorFrame

public class RGBCubeColorFrame
extends LinearColorFrame

This class defines a color frame for continuous numeric values. This is the base class for color frames that using the RGB cube. The color cube is described on p285 Winkinson.

See Also:
Serialized Form

Constructor Summary
RGBCubeColorFrame()
          Constructor.
RGBCubeColorFrame(double[][] colors)
          Create a color frame that contains RGB ranges (path through RGB cube).
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another object.
 Color getColor(double ratio)
          Get a color at the relative scale.
protected  double getMaxRatio()
          Get the maximum ratio to use in the color path.
protected  double getMinRatio()
          Get the minimum ratio to use in the color path.
 
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
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

RGBCubeColorFrame

public RGBCubeColorFrame()
Constructor.


RGBCubeColorFrame

public RGBCubeColorFrame(double[][] colors)
Create a color frame that contains RGB ranges (path through RGB cube).

Parameters:
colors - the colors on the path to form the color space.
Method Detail

getColor

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

Specified by:
getColor in class LinearColorFrame
Parameters:
ratio - a value from 0 to 1.

equals

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

Overrides:
equals in class ColorFrame

getMinRatio

protected double getMinRatio()
Get the minimum ratio to use in the color path.


getMaxRatio

protected double getMaxRatio()
Get the maximum ratio to use in the color path.


clone

public Object clone()
Create a copy of this object.

Overrides:
clone in class VisualFrame

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