public class XSSFColorScaleFormatting extends java.lang.Object implements ColorScaleFormatting
Modifier and Type | Method and Description |
---|---|
XSSFColor |
createColor() |
XSSFConditionalFormattingThreshold |
createThreshold()
Creates a new, empty Threshold
(创建一个新的空阈值)
|
XSSFColor[] |
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
(应该使用多少个控制点来映射颜色?通常为 2 或 3)
|
XSSFConditionalFormattingThreshold[] |
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.
(设置阈值。)
|
public int getNumControlPoints()
ColorScaleFormatting
getNumControlPoints
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 getNumControlPoints)
public void setNumControlPoints(int num)
ColorScaleFormatting
After updating, you need to ensure that the Threshold
count and Color count match
setNumControlPoints
in interface
ColorScaleFormatting
(ColorScaleFormatting 接口中的 setNumControlPoints)
public XSSFColor[] getColors()
ColorScaleFormatting
getColors
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 getColors)
public void setColors(Color[] colors)
ColorScaleFormatting
ColorScaleFormatting.getNumControlPoints()
(设置在其间插值的颜色列表。数字必须匹配 ColorScaleFormatting.getNumControlPoints())
setColors
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 setColors)
public XSSFConditionalFormattingThreshold[] getThresholds()
ColorScaleFormatting
getThresholds
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 getThresholds)
public void setThresholds(ConditionalFormattingThreshold[] thresholds)
ColorScaleFormatting
ColorScaleFormatting.getNumControlPoints()
(设置阈值。数字必须匹配 ColorScaleFormatting.getNumControlPoints())
setThresholds
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 setThresholds)
public XSSFColor createColor()
public XSSFConditionalFormattingThreshold createThreshold()
ColorScaleFormatting
createThreshold
in interface
ColorScaleFormatting
(接口 ColorScaleFormatting 中的 createThreshold)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.