Package org.apache.poi.hssf.usermodel
Class HSSFConditionalFormattingThreshold
- java.lang.Object
-
- org.apache.poi.hssf.usermodel.HSSFConditionalFormattingThreshold
-
- All Implemented Interfaces:
ConditionalFormattingThreshold
public final class HSSFConditionalFormattingThreshold extends Object implements ConditionalFormattingThreshold
High level representation for Icon / Multi-State / Databar / Colour Scale change thresholds
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.ss.usermodel.ConditionalFormattingThreshold
ConditionalFormattingThreshold.RangeType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFormula()
Formula to use to calculate the threshold, ornull
if no formulaConditionalFormattingThreshold.RangeType
getRangeType()
Get the Range Type usedDouble
getValue()
Gets the value used for the threshold, ornull
if there isn't one.void
setFormula(String formula)
Sets the formula used to calculate the threshold, or unsets it ifnull
is given.void
setRangeType(ConditionalFormattingThreshold.RangeType type)
Changes the Range Type usedvoid
setValue(Double value)
Sets the value used for the threshold.
-
-
-
Method Detail
-
getRangeType
public ConditionalFormattingThreshold.RangeType getRangeType()
Description copied from interface:ConditionalFormattingThreshold
Get the Range Type used- Specified by:
getRangeType
in interfaceConditionalFormattingThreshold
-
setRangeType
public void setRangeType(ConditionalFormattingThreshold.RangeType type)
Description copied from interface:ConditionalFormattingThreshold
Changes the Range Type usedIf you change the range type, you need to ensure that the Formula and Value parameters are compatible with it before saving
- Specified by:
setRangeType
in interfaceConditionalFormattingThreshold
-
getFormula
public String getFormula()
Description copied from interface:ConditionalFormattingThreshold
Formula to use to calculate the threshold, ornull
if no formula- Specified by:
getFormula
in interfaceConditionalFormattingThreshold
-
setFormula
public void setFormula(String formula)
Description copied from interface:ConditionalFormattingThreshold
Sets the formula used to calculate the threshold, or unsets it ifnull
is given.- Specified by:
setFormula
in interfaceConditionalFormattingThreshold
-
getValue
public Double getValue()
Description copied from interface:ConditionalFormattingThreshold
Gets the value used for the threshold, ornull
if there isn't one.- Specified by:
getValue
in interfaceConditionalFormattingThreshold
-
setValue
public void setValue(Double value)
Description copied from interface:ConditionalFormattingThreshold
Sets the value used for the threshold.If the type is
ConditionalFormattingThreshold.RangeType.PERCENT
orConditionalFormattingThreshold.RangeType.PERCENTILE
it must be between 0 and 100.If the type is
ConditionalFormattingThreshold.RangeType.MIN
orConditionalFormattingThreshold.RangeType.MAX
orConditionalFormattingThreshold.RangeType.FORMULA
it shouldn't be set.Use
null
to unset- Specified by:
setValue
in interfaceConditionalFormattingThreshold
-
-