Class X14ConditionalFormattingRule
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.X14ConditionalFormattingRule
Represents a conditional formatting rule (x14:cfRule element).
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new x14 conditional formatting rule. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets whether an average rule matches above-average values.Gets whether the rule is active in the legacy part of the document.Gets whether a top/bottom rule matches bottom values.Gets the data bar definition.Gets whether an average rule includes equal-to-average values.Gets the differential format (x14:dxf element) applied when the rule matches.Gets the rule formulas (xm:f elements).Gets the icon set definition.getId()Gets the rule id (GUID) that links this rule to its main-namespace counterpart.Gets the comparison operator.Gets whether a top/bottom rule uses a percentage.Gets the rule priority.getRank()Gets the rank of a top/bottom rule.Gets the number of standard deviations of an average rule.Gets whether rule evaluation stops when this rule matches.getText()Gets the text value of a text rule.Gets the time period of a date rule.getType()Gets the rule type (e.g.voidsetAboveAverage(Boolean aboveAverage)Sets whether an average rule matches above-average values.voidsetActivePresent(Boolean activePresent)Sets whether the rule is active in the legacy part of the document.voidSets whether a top/bottom rule matches bottom values.voidsetDataBar(X14DataBar dataBar)Sets the data bar definition.voidsetEqualAverage(Boolean equalAverage)Sets whether an average rule includes equal-to-average values.voidSets the differential format (x14:dxf element) applied when the rule matches.voidsetIconSet(X14IconSet iconSet)Sets the icon set definition.voidSets the rule id (GUID) that links this rule to its main-namespace counterpart.voidsetOperator(String ruleOperator)Sets the comparison operator.voidsetPercent(Boolean percent)Sets whether a top/bottom rule uses a percentage.voidsetPriority(Integer priority)Sets the rule priority.voidSets the rank of a top/bottom rule.voidsetStandardDeviation(Integer standardDeviation)Sets the number of standard deviations of an average rule.voidsetStopIfTrue(Boolean stopIfTrue)Sets whether rule evaluation stops when this rule matches.voidSets the text value of a text rule.voidsetTimePeriod(String timePeriod)Sets the time period of a date rule.voidSets the rule type (e.g.toString()
-
Constructor Details
-
X14ConditionalFormattingRule
public X14ConditionalFormattingRule()Instantiates a new x14 conditional formatting rule.
-
-
Method Details
-
clone
-
toString
-
getType
Gets the rule type (e.g. "dataBar", "iconSet", "expression", "cellIs").- Returns:
- the rule type
-
setType
Sets the rule type (e.g. "dataBar", "iconSet", "expression", "cellIs").- Parameters:
type- the new rule type
-
getId
Gets the rule id (GUID) that links this rule to its main-namespace counterpart.- Returns:
- the rule id
-
setId
Sets the rule id (GUID) that links this rule to its main-namespace counterpart.- Parameters:
id- the new rule id
-
getPriority
Gets the rule priority.- Returns:
- the rule priority
-
setPriority
Sets the rule priority.- Parameters:
priority- the new rule priority
-
getStopIfTrue
Gets whether rule evaluation stops when this rule matches.- Returns:
- whether rule evaluation stops when this rule matches
-
setStopIfTrue
Sets whether rule evaluation stops when this rule matches.- Parameters:
stopIfTrue- the new stop if true flag
-
getAboveAverage
Gets whether an average rule matches above-average values.- Returns:
- whether an average rule matches above-average values
-
setAboveAverage
Sets whether an average rule matches above-average values.- Parameters:
aboveAverage- the new above average flag
-
getPercent
Gets whether a top/bottom rule uses a percentage.- Returns:
- whether a top/bottom rule uses a percentage
-
setPercent
Sets whether a top/bottom rule uses a percentage.- Parameters:
percent- the new percent flag
-
getBottom
Gets whether a top/bottom rule matches bottom values.- Returns:
- whether a top/bottom rule matches bottom values
-
setBottom
Sets whether a top/bottom rule matches bottom values.- Parameters:
bottom- the new bottom flag
-
getOperator
Gets the comparison operator.- Returns:
- the comparison operator
-
setOperator
Sets the comparison operator.- Parameters:
ruleOperator- the new comparison operator
-
getText
Gets the text value of a text rule.- Returns:
- the text value of a text rule
-
setText
Sets the text value of a text rule.- Parameters:
text- the new text value
-
getTimePeriod
Gets the time period of a date rule.- Returns:
- the time period of a date rule
-
setTimePeriod
Sets the time period of a date rule.- Parameters:
timePeriod- the new time period
-
getRank
Gets the rank of a top/bottom rule.- Returns:
- the rank of a top/bottom rule
-
setRank
Sets the rank of a top/bottom rule.- Parameters:
rank- the new rank
-
getStandardDeviation
Gets the number of standard deviations of an average rule.- Returns:
- the number of standard deviations
-
setStandardDeviation
Sets the number of standard deviations of an average rule.- Parameters:
standardDeviation- the new number of standard deviations
-
getEqualAverage
Gets whether an average rule includes equal-to-average values.- Returns:
- whether an average rule includes equal-to-average values
-
setEqualAverage
Sets whether an average rule includes equal-to-average values.- Parameters:
equalAverage- the new equal average flag
-
getActivePresent
Gets whether the rule is active in the legacy part of the document.- Returns:
- whether the rule is active in the legacy part of the document
-
setActivePresent
Sets whether the rule is active in the legacy part of the document.- Parameters:
activePresent- the new active present flag
-
getFormulas
Gets the rule formulas (xm:f elements).- Returns:
- the rule formulas
-
getDataBar
Gets the data bar definition.- Returns:
- the data bar definition
-
setDataBar
Sets the data bar definition.- Parameters:
dataBar- the new data bar definition
-
getIconSet
Gets the icon set definition.- Returns:
- the icon set definition
-
setIconSet
Sets the icon set definition.- Parameters:
iconSet- the new icon set definition
-
getFormat
Gets the differential format (x14:dxf element) applied when the rule matches.- Returns:
- the differential format
-
setFormat
Sets the differential format (x14:dxf element) applied when the rule matches.- Parameters:
format- the new differential format
-