DisplayTextFormatterSupport
Overview
DisplayTextFormatterSupport is a class in Aspose.Cells FOSS for Java.
Internal utility class for selecting and formatting display text sections.
Methods
| Signature | Description |
|---|---|
parseSections(formatCode: String) → List<DisplayFormatSectionInfo> | Parses format code into a list of section info objects. |
splitSections(formatCode: String) → List<String> | Splits sections. |
tryParseSectionCondition(section: String, conditionOperator: String[], conditionValue: double[]) → boolean | Attempts to process parse section condition. |
tryParseConditionToken(token: String, conditionOperator: String[], conditionValue: double[]) → boolean | Attempts to process parse condition token. |
evaluateCondition(conditionOperator: String, numericValue: double, conditionValue: double) → boolean | Evaluates condition. |
shouldUseAbsoluteValue(section: String, numericValue: double) → boolean | Processes should use absolute value. |
sanitizeNumericSection(section: String) → String | Sanitizes numeric section. |
stripDirectiveBrackets(section: String, preserveElapsedTokens: boolean) → String | Strips directive brackets. |
containsNumericPlaceholder(pattern: String) → boolean | Checks whether the content contains numeric placeholder. |
expandSectionPattern(pattern: String, valueText: String, replaceTextPlaceholder: boolean) → String | Expands section pattern. |
isNumericValue(value: Object) → boolean | Indicates whether numeric value. |
convertToDouble(value: Object) → double | Converts to double. |
getAbsoluteNumericValue(value: Object) → Object | Processes get absolute numeric value. |
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double) → DisplayFormatSectionInfo | Selects the appropriate numeric section based on the value. |
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double, useAbsoluteValue: boolean[]) → DisplayFormatSectionInfo | Selects the appropriate numeric section and reports whether formatting should use the absolute value. |
selectTextSection(sections: List<DisplayFormatSectionInfo>) → DisplayFormatSectionInfo | Selects the text section from the format sections. |
selectDateTimeSection(sections: List<DisplayFormatSectionInfo>) → DisplayFormatSectionInfo | Selects the date/time section from the format sections. |