Style Intelligence v12.0

inetsoft.graph.aesthetic
Class StaticColorFrame

java.lang.Object
  extended by inetsoft.graph.aesthetic.VisualFrame
      extended by inetsoft.graph.aesthetic.ColorFrame
          extended by inetsoft.graph.aesthetic.StaticColorFrame
All Implemented Interfaces:
Serializable, Cloneable

public class StaticColorFrame
extends ColorFrame

A color frame with a static color. If a column is bound to this frame, and the value of the column is a number, or color, the value is used as the color for the row instead of the static color.

See Also:
Serialized Form

Constructor Summary
StaticColorFrame()
          Default constructor.
StaticColorFrame(Color color)
          Create a static color frame with the specified color.
StaticColorFrame(String field)
          Create a color frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 Color getColor()
          Get the static color value of the static color frame.
 Color getColor(DataSet data, String col, int row)
          Get the color for the specified cell.
 Color getColor(Object val)
          Get the color for the specified value.
 Color getNegativeColor()
          Get the color for negative values.
 String getTitle()
          Get the title to show on the legend.
 Object[] getValues()
          Get the values mapped by this frame.
 boolean isVisible()
          Static frame never shows legend.
 void setColor(Color color)
          Set the static color value of the static color frame.
 void setNegativeColor(Color negcolor)
          Set the color for negative values.
 
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, hashCode, init, isValid, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticColorFrame

public StaticColorFrame()
Default constructor.


StaticColorFrame

public StaticColorFrame(Color color)
Create a static color frame with the specified color.


StaticColorFrame

public StaticColorFrame(String field)
Create a color frame. The specified column should contain color or number as RGB value to be used as color for each row.

Parameters:
field - field to get value to map to color.
Method Detail

getColor

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


setColor

public void setColor(Color color)
Set the static color value of the static color frame.


getNegativeColor

public Color getNegativeColor()
Get the color for negative values.


setNegativeColor

public void setNegativeColor(Color negcolor)
Set the color for negative values. If this color is not set, the regular color is used for all values.


equals

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

Overrides:
equals in class ColorFrame

getValues

public Object[] getValues()
Get the values mapped by this frame.

Overrides:
getValues in class VisualFrame

getTitle

public String getTitle()
Get the title to show on the legend.

Overrides:
getTitle in class VisualFrame

isVisible

public boolean isVisible()
Static frame never shows legend.

Overrides:
isVisible in class VisualFrame
Returns:
false

getColor

public Color getColor(DataSet data,
                      String col,
                      int row)
Get the color for the specified cell.

Specified by:
getColor in class ColorFrame
Parameters:
data - the specified dataset.
col - the specified column name.
row - the specified row index.

getColor

public Color getColor(Object val)
Get the color for the specified value.

Specified by:
getColor in class ColorFrame

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