com.spire.xls
Class ColorScale

java.lang.Object
  extended by com.spire.xls.ColorScale

public class ColorScale
extends java.lang.Object

The color scale condition in the conditional format


Constructor Summary
ColorScale(IColorScale colorScale)
           
 
Method Summary
 void addCriteria(ColorConditionValue item)
           
 void addCriteria(ConditionValueType type, java.lang.Object value, java.awt.Color color)
           
 java.util.ArrayList<ColorConditionValue> getCriteria()
          Indicates the type, value, and the color of threshold criteria used in the color scale conditional format.
 java.awt.Color getMaxColor()
          Get the max value object's corresponding color.
 IConditionValue getMaxValue()
          Get this ColorScale's max value object.
 java.awt.Color getMidColor()
          Get the mid value object's corresponding color.
 IConditionValue getMidValue()
          Get this color scale's mid value object.
 java.awt.Color getMinColor()
          Get min value object's corresponding color.
 IConditionValue getMinValue()
          Get this color scale's min value object.
 void setConditionCount(int count)
          Sets number of objects in the collection.
 void setMaxColor(java.awt.Color maxColor)
          Set the max value object's corresponding color.
 void setMidColor(java.awt.Color midColor)
          Set the mid value object's corresponding color.
 void setMinColor(java.awt.Color minColor)
          Set the min value object's corresponding color.
 

Constructor Detail

ColorScale

public ColorScale(IColorScale colorScale)
Method Detail

getCriteria

public java.util.ArrayList<ColorConditionValue> getCriteria()
Indicates the type, value, and the color of threshold criteria used in the color scale conditional format.


getMaxColor

public java.awt.Color getMaxColor()
Get the max value object's corresponding color.


setMaxColor

public void setMaxColor(java.awt.Color maxColor)
Set the max value object's corresponding color.


getMidColor

public java.awt.Color getMidColor()
Get the mid value object's corresponding color.


setMidColor

public void setMidColor(java.awt.Color midColor)
Set the mid value object's corresponding color.


getMinColor

public java.awt.Color getMinColor()
Get min value object's corresponding color.


setMinColor

public void setMinColor(java.awt.Color minColor)
Set the min value object's corresponding color.


getMaxValue

public IConditionValue getMaxValue()
Get this ColorScale's max value object.


getMidValue

public IConditionValue getMidValue()
Get this color scale's mid value object.


getMinValue

public IConditionValue getMinValue()
Get this color scale's min value object.


addCriteria

public void addCriteria(ColorConditionValue item)

addCriteria

public void addCriteria(ConditionValueType type,
                        java.lang.Object value,
                        java.awt.Color color)

setConditionCount

public void setConditionCount(int count)
Sets number of objects in the collection.

Parameters:
count -