public final class HSSFColorScaleFormatting extends java.lang.Object implements ColorScaleFormatting
Modifier | Constructor and Description |
---|---|
protected |
HSSFColorScaleFormatting(CFRule12Record cfRule12Record,
HSSFSheet sheet) |
Modifier and Type | Method and Description |
---|---|
HSSFConditionalFormattingThreshold |
createThreshold()
Creates a new, empty Threshold
|
HSSFExtendedColor[] |
getColors()
Gets the list of colours that are interpolated
between.
|
int |
getNumControlPoints()
How many control points should be used to map
the colours? Normally 2 or 3
|
HSSFConditionalFormattingThreshold[] |
getThresholds()
Gets the list of thresholds
|
void |
setColors(Color[] colors)
Sets the list of colours that are interpolated
between.
|
void |
setNumControlPoints(int num)
Sets the number of control points to use to map
the colours.
|
void |
setThresholds(ConditionalFormattingThreshold[] thresholds)
Sets the of thresholds.
|
protected HSSFColorScaleFormatting(CFRule12Record cfRule12Record, HSSFSheet sheet)
public int getNumControlPoints()
ColorScaleFormatting
getNumControlPoints
in interface ColorScaleFormatting
public void setNumControlPoints(int num)
ColorScaleFormatting
After updating, you need to ensure that the
Threshold
count and Color count match
setNumControlPoints
in interface ColorScaleFormatting
public HSSFExtendedColor[] getColors()
ColorScaleFormatting
getColors
in interface ColorScaleFormatting
public void setColors(Color[] colors)
ColorScaleFormatting
ColorScaleFormatting.getNumControlPoints()
setColors
in interface ColorScaleFormatting
public HSSFConditionalFormattingThreshold[] getThresholds()
ColorScaleFormatting
getThresholds
in interface ColorScaleFormatting
public void setThresholds(ConditionalFormattingThreshold[] thresholds)
ColorScaleFormatting
ColorScaleFormatting.getNumControlPoints()
setThresholds
in interface ColorScaleFormatting
public HSSFConditionalFormattingThreshold createThreshold()
ColorScaleFormatting
createThreshold
in interface ColorScaleFormatting
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.