Style Intelligence v12.0

inetsoft.graph.aesthetic
Class GradientColorFrame

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
                  extended by inetsoft.graph.aesthetic.GradientColorFrame
All Implemented Interfaces:
Serializable, Cloneable

public class GradientColorFrame
extends RGBCubeColorFrame

This is a color frame that creates gradient colors between the two given colors.

See Also:
Serialized Form

Constructor Summary
GradientColorFrame()
          Create a color frame.
GradientColorFrame(String field)
          Create a color frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 Color getColor(double ratio)
          Get the color.
 Color getFromColor()
          Get the from color value.
 Color getToColor()
          Get the end color value.
 void setFromColor(Color from)
          Set the from color value.
 void setToColor(Color to)
          Set the end color value.
 
Methods inherited from class inetsoft.graph.aesthetic.RGBCubeColorFrame
clone, getMaxRatio, getMinRatio
 
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

GradientColorFrame

public GradientColorFrame()
Create a color frame. The field needs to be set by calling setField.


GradientColorFrame

public GradientColorFrame(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.

Overrides:
getColor in class RGBCubeColorFrame
Parameters:
ratio - the value between 0 and 1, and is the position of the value in a linear scale.

getToColor

public Color getToColor()
Get the end color value.


setToColor

public void setToColor(Color to)
Set the end color value.


getFromColor

public Color getFromColor()
Get the from color value.


setFromColor

public void setFromColor(Color from)
Set the from color value.


equals

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

Overrides:
equals in class RGBCubeColorFrame

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