org.apache.poi.ss.usermodel
Interface ColorScaleFormatting

All Known Implementing Classes:
HSSFColorScaleFormatting

public interface ColorScaleFormatting

High level representation for the Color Scale / Colour Scale / Color Gradient Formatting component of Conditional Formatting settings


Method Summary
 ConditionalFormattingThresholdcreateThreshold()
          Creates a new, empty Threshold
 Color[]getColors()
          Gets the list of colours that are interpolated between.
 intgetNumControlPoints()
          How many control points should be used to map the colours? Normally 2 or 3
 ConditionalFormattingThreshold[]getThresholds()
          Gets the list of thresholds
 voidsetColors(Color[] colors)
          Sets the list of colours that are interpolated between.
 voidsetNumControlPoints(int num)
          Sets the number of control points to use to map the colours.
 voidsetThresholds(ConditionalFormattingThreshold[] thresholds)
          Sets the of thresholds.
 

Method Detail

getNumControlPoints

int getNumControlPoints()
How many control points should be used to map the colours? Normally 2 or 3


setNumControlPoints

void setNumControlPoints(int num)
Sets the number of control points to use to map the colours. Should normally be 2 or 3.

After updating, you need to ensure that the Threshold count and Color count match


getColors

Color[] getColors()
Gets the list of colours that are interpolated between.


setColors

void setColors(Color[] colors)
Sets the list of colours that are interpolated between. The number must match getNumControlPoints()


getThresholds

ConditionalFormattingThreshold[] getThresholds()
Gets the list of thresholds


setThresholds

void setThresholds(ConditionalFormattingThreshold[] thresholds)
Sets the of thresholds. The number must match getNumControlPoints()


createThreshold

ConditionalFormattingThreshold createThreshold()
Creates a new, empty Threshold





NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14