Package io.keikai.model.impl
Class ConditionalFormattingRuleImpl
java.lang.Object
io.keikai.model.impl.ConditionalFormattingRuleImpl
- All Implemented Interfaces:
SConditionalFormattingRule,Serializable
public class ConditionalFormattingRuleImpl
extends Object
implements SConditionalFormattingRule, Serializable
- Since:
- 3.8.2
- Author:
- henri
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SConditionalFormattingRule
SConditionalFormattingRule.RuleOperator, SConditionalFormattingRule.RuleTimePeriod, SConditionalFormattingRule.RuleType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(FormulaExpression fexpr) voidvoidcopyFrom(SConditionalFormattingRule src, int rowOff, int colOff) Copy state from the src rule with an row/column offset.voiddestroy()destroy this rule.Returns the color scale (used with "colorScale" type)getColorScaleFill(Double value0) Returns the data bar (used with "dataBar" type)doublegetDataBarPercent(Double value) getExtId()Returns the ext id (used when it associates with a rule under ext)Returns the applied color if matchReturns the associated formulas (used with "cellIs" type)Returns the associated formulas (used with "cellIs" type)Returns the associated formulas (used with "cellIs" type)Returns the icon set (used with "iconSet" type)intgetIconSetId(Double value) getId()Returns the id (used when it is under ext)Returns the comparison operator if neededReturns the applying priority if covered region overlappedgetRank()Returns the rank used with "top10" type; rank is the 10 in top10, 6 in top6...Get applied regions.getSheet()Returns 1st/2nd/3rd standard deviation average (used with "aboveAverage" type; aka. stdDevgetText()Returns the text for comparison (used with "containsText" type).Returns the timePeriod operator (used with "timePeriod" type)getType()Returns type of this rulebooleanReturns whether above average (used with "aboveAverage" type).booleanisBottom()Returns whether bottom value (used with "top10" type).booleanReturns whether equal average (used with "aboveAverage" type).booleanWhether the formula parsed errorbooleanReturns whether a percentage (used with "top10" type)booleanReturns whether stop if truebooleanReturns whether this ConditionalFormattingRule should be put under `<x14:conditionalFormattings><x14:conditionalFormatting>` booleanparseFormula(String formula) voidsetAboveAverage(boolean b) voidsetBottom(boolean b) voidsetColorScale(SColorScale colorScale) voidsetDataBar(SDataBar dataBar) voidsetEqualAverage(boolean b) voidsetEscapedFormulas(String formula1, String formula2, String formula3) voidSet the ext id (used when it associates with a rule under ext)voidsetExtraStyle(SExtraStyle style) voidsetFormula1(FormulaExpression formula1) voidsetFormula1(String formula1) voidsetFormula2(FormulaExpression formula2) voidsetFormula2(String formula2) voidsetFormula3(FormulaExpression formula3) voidsetFormula3(String formula3) voidsetFormulas(FormulaExpression fe1, FormulaExpression fe2, FormulaExpression fe3) voidsetFormulas(String formula1, String formula2, String formula3) voidsetIconSet(SIconSet iconSet) voidSet the id (used when it is under ext)voidvoidsetPercent(boolean b) voidsetPriority(int priority) voidsetRank(long rank) voidsetStandardDeviation(int s) voidsetStopIfTrue(boolean b) voidvoidvoidvoidsetUnderExt(boolean b) Returns whether this ConditionalFormattingRule should be put under `<x14:conditionalFormattings><x14:conditionalFormatting>` voidshiftFormulas(int rowOff, int colOff)
-
Constructor Details
-
ConditionalFormattingRuleImpl
-
-
Method Details
-
getFormatting
- Specified by:
getFormattingin interfaceSConditionalFormattingRule- Returns:
-
getSheet
- Specified by:
getSheetin interfaceSConditionalFormattingRule- Returns:
-
clearFormulaResultCache
public void clearFormulaResultCache()- Specified by:
clearFormulaResultCachein interfaceSConditionalFormattingRule
-
getType
Description copied from interface:SConditionalFormattingRuleReturns type of this rule- Specified by:
getTypein interfaceSConditionalFormattingRule
-
setType
-
getOperator
Description copied from interface:SConditionalFormattingRuleReturns the comparison operator if needed- Specified by:
getOperatorin interfaceSConditionalFormattingRule
-
setOperator
-
getPriority
Description copied from interface:SConditionalFormattingRuleReturns the applying priority if covered region overlapped- Specified by:
getPriorityin interfaceSConditionalFormattingRule
-
setPriority
public void setPriority(int priority) -
getExtraStyle
Description copied from interface:SConditionalFormattingRuleReturns the applied color if match- Specified by:
getExtraStylein interfaceSConditionalFormattingRule
-
setExtraStyle
-
isStopIfTrue
public boolean isStopIfTrue()Description copied from interface:SConditionalFormattingRuleReturns whether stop if true- Specified by:
isStopIfTruein interfaceSConditionalFormattingRule
-
setStopIfTrue
public void setStopIfTrue(boolean b) -
getTimePeriod
Description copied from interface:SConditionalFormattingRuleReturns the timePeriod operator (used with "timePeriod" type)- Specified by:
getTimePeriodin interfaceSConditionalFormattingRule
-
setTimePeriod
-
getRank
Description copied from interface:SConditionalFormattingRuleReturns the rank used with "top10" type; rank is the 10 in top10, 6 in top6...- Specified by:
getRankin interfaceSConditionalFormattingRule
-
setRank
public void setRank(long rank) -
isPercent
public boolean isPercent()Description copied from interface:SConditionalFormattingRuleReturns whether a percentage (used with "top10" type)- Specified by:
isPercentin interfaceSConditionalFormattingRule
-
setPercent
public void setPercent(boolean b) -
isBottom
public boolean isBottom()Description copied from interface:SConditionalFormattingRuleReturns whether bottom value (used with "top10" type). false means check "above 10 ..."; true means check "below 10 ...".- Specified by:
isBottomin interfaceSConditionalFormattingRule
-
setBottom
public void setBottom(boolean b) -
getColorScale
Description copied from interface:SConditionalFormattingRuleReturns the color scale (used with "colorScale" type)- Specified by:
getColorScalein interfaceSConditionalFormattingRule
-
setColorScale
-
getDataBar
Description copied from interface:SConditionalFormattingRuleReturns the data bar (used with "dataBar" type)- Specified by:
getDataBarin interfaceSConditionalFormattingRule
-
setDataBar
-
getIconSet
Description copied from interface:SConditionalFormattingRuleReturns the icon set (used with "iconSet" type)- Specified by:
getIconSetin interfaceSConditionalFormattingRule
-
setIconSet
-
getText
Description copied from interface:SConditionalFormattingRuleReturns the text for comparison (used with "containsText" type).#getFormulawill return the formula for doing the search operation.- Specified by:
getTextin interfaceSConditionalFormattingRule
-
setText
-
isAboveAverage
public boolean isAboveAverage()Description copied from interface:SConditionalFormattingRuleReturns whether above average (used with "aboveAverage" type). false means "check below average ..."; true means "check above average ..." (default true)- Specified by:
isAboveAveragein interfaceSConditionalFormattingRule
-
setAboveAverage
public void setAboveAverage(boolean b) -
isEqualAverage
public boolean isEqualAverage()Description copied from interface:SConditionalFormattingRuleReturns whether equal average (used with "aboveAverage" type).- Specified by:
isEqualAveragein interfaceSConditionalFormattingRule
-
setEqualAverage
public void setEqualAverage(boolean b) -
getStandardDeviation
Description copied from interface:SConditionalFormattingRuleReturns 1st/2nd/3rd standard deviation average (used with "aboveAverage" type; aka. stdDev- Specified by:
getStandardDeviationin interfaceSConditionalFormattingRule
-
setStandardDeviation
public void setStandardDeviation(int s) -
match
-
destroy
public void destroy()Description copied from interface:SConditionalFormattingRuledestroy this rule.- Specified by:
destroyin interfaceSConditionalFormattingRule
-
getRegions
Description copied from interface:SConditionalFormattingRuleGet applied regions.- Specified by:
getRegionsin interfaceSConditionalFormattingRule- Returns:
-
isFormulaParsingError
public boolean isFormulaParsingError()Description copied from interface:SConditionalFormattingRuleWhether the formula parsed error- Specified by:
isFormulaParsingErrorin interfaceSConditionalFormattingRule- Returns:
-
getFormula1
Description copied from interface:SConditionalFormattingRuleReturns the associated formulas (used with "cellIs" type)- Specified by:
getFormula1in interfaceSConditionalFormattingRule
-
getFormula2
Description copied from interface:SConditionalFormattingRuleReturns the associated formulas (used with "cellIs" type)- Specified by:
getFormula2in interfaceSConditionalFormattingRule
-
getFormula3
Description copied from interface:SConditionalFormattingRuleReturns the associated formulas (used with "cellIs" type)- Specified by:
getFormula3in interfaceSConditionalFormattingRule- Returns:
-
getRef
-
setFormula1
- Specified by:
setFormula1in interfaceSConditionalFormattingRule
-
setFormula2
- Specified by:
setFormula2in interfaceSConditionalFormattingRule
-
setFormula3
- Specified by:
setFormula3in interfaceSConditionalFormattingRule
-
parseFormula
-
setFormulas
- Specified by:
setFormulasin interfaceSConditionalFormattingRule
-
setEscapedFormulas
- Specified by:
setEscapedFormulasin interfaceSConditionalFormattingRule
-
copyFrom
Description copied from interface:SConditionalFormattingRuleCopy state from the src rule with an row/column offset.- Specified by:
copyFromin interfaceSConditionalFormattingRule
-
setFormulas
- Parameters:
fe1-fe2-- Since:
- 3.9.0
-
getFormulaExpression1
- Returns:
- Since:
- 3.9.0
-
getFormulaExpression2
- Returns:
- Since:
- 3.9.0
-
getFormulaExpression3
- Returns:
- Since:
- 3.9.0
-
setFormula1
- Parameters:
formula1-- Since:
- 3.9.0
-
setFormula2
- Parameters:
formula2-- Since:
- 3.9.0
-
setFormula3
- Parameters:
formula3-- Since:
- 3.9.0
-
getEscapedFormula1
- Specified by:
getEscapedFormula1in interfaceSConditionalFormattingRule- Returns:
-
getEscapedFormula2
- Specified by:
getEscapedFormula2in interfaceSConditionalFormattingRule- Returns:
-
getEscapedFormula3
- Specified by:
getEscapedFormula3in interfaceSConditionalFormattingRule- Returns:
-
getColorScaleFill
-
getDataBarPercent
-
getIconSetId
-
shiftFormulas
public void shiftFormulas(int rowOff, int colOff) - Specified by:
shiftFormulasin interfaceSConditionalFormattingRule
-
addDependency
-
getRuleInfo1
-
getRuleInfo2
-
isUnderExt
public boolean isUnderExt()Returns whether this ConditionalFormattingRule should be put under `<x14:conditionalFormattings><x14:conditionalFormatting>` - Since:
- 5.7.0
-
setUnderExt
public void setUnderExt(boolean b) Returns whether this ConditionalFormattingRule should be put under `<x14:conditionalFormattings><x14:conditionalFormatting>` - Since:
- 5.7.0
-
getId
Description copied from interface:SConditionalFormattingRuleReturns the id (used when it is under ext)- Specified by:
getIdin interfaceSConditionalFormattingRule
-
setId
Description copied from interface:SConditionalFormattingRuleSet the id (used when it is under ext)- Specified by:
setIdin interfaceSConditionalFormattingRule
-
getExtId
Description copied from interface:SConditionalFormattingRuleReturns the ext id (used when it associates with a rule under ext)- Specified by:
getExtIdin interfaceSConditionalFormattingRule
-
setExtId
Description copied from interface:SConditionalFormattingRuleSet the ext id (used when it associates with a rule under ext)- Specified by:
setExtIdin interfaceSConditionalFormattingRule
-