Package org.apache.poi.xssf.usermodel
Class XSSFConditionalFormattingThreshold
- java.lang.Object
 - 
- org.apache.poi.xssf.usermodel.XSSFConditionalFormattingThreshold
 
 
- 
- All Implemented Interfaces:
 ConditionalFormattingThreshold
public class XSSFConditionalFormattingThreshold extends java.lang.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 java.lang.StringgetFormula()Formula to use to calculate the threshold, ornullif no formulaConditionalFormattingThreshold.RangeTypegetRangeType()Get the Range Type usedjava.lang.DoublegetValue()Gets the value used for the threshold, ornullif there isn't one.voidsetFormula(java.lang.String formula)Sets the formula used to calculate the threshold, or unsets it ifnullis given.voidsetRangeType(ConditionalFormattingThreshold.RangeType type)Changes the Range Type usedvoidsetValue(java.lang.Double value)Sets the value used for the threshold. 
 - 
 
- 
- 
Method Detail
- 
getRangeType
public ConditionalFormattingThreshold.RangeType getRangeType()
Description copied from interface:ConditionalFormattingThresholdGet the Range Type used- Specified by:
 getRangeTypein interfaceConditionalFormattingThreshold
 
- 
setRangeType
public void setRangeType(ConditionalFormattingThreshold.RangeType type)
Description copied from interface:ConditionalFormattingThresholdChanges 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:
 setRangeTypein interfaceConditionalFormattingThreshold
 
- 
getFormula
public java.lang.String getFormula()
Description copied from interface:ConditionalFormattingThresholdFormula to use to calculate the threshold, ornullif no formula- Specified by:
 getFormulain interfaceConditionalFormattingThreshold
 
- 
setFormula
public void setFormula(java.lang.String formula)
Description copied from interface:ConditionalFormattingThresholdSets the formula used to calculate the threshold, or unsets it ifnullis given.- Specified by:
 setFormulain interfaceConditionalFormattingThreshold
 
- 
getValue
public java.lang.Double getValue()
Description copied from interface:ConditionalFormattingThresholdGets the value used for the threshold, ornullif there isn't one.- Specified by:
 getValuein interfaceConditionalFormattingThreshold
 
- 
setValue
public void setValue(java.lang.Double value)
Description copied from interface:ConditionalFormattingThresholdSets the value used for the threshold.If the type is
ConditionalFormattingThreshold.RangeType.PERCENTorConditionalFormattingThreshold.RangeType.PERCENTILEit must be between 0 and 100.If the type is
ConditionalFormattingThreshold.RangeType.MINorConditionalFormattingThreshold.RangeType.MAXorConditionalFormattingThreshold.RangeType.FORMULAit shouldn't be set.Use
nullto unset- Specified by:
 setValuein interfaceConditionalFormattingThreshold
 
 - 
 
 -