StyleAttributes.
During the layout pass, the cell context is passed to the Skin so the latter can add inline style(s)
to either the paragraph Node (typically TextFlow) or the text segment Node (Text).
RichTextAreaSkin#applyStyles(CellContext, StyleAttributeMap, boolean)
| Modifier and Type | Class and Description |
|---|---|
| public static enum | CellContext.
Specifies the decoration type to be applied to multiple text segments. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public < the attribute type T> void | decorateRun(StyleAttribute<T>
the attribute a, CellContext.the decoration type type,the style name styleName)Decorates the current segment with the specified attribute by coalescing adjacent runs into a single decoration pass. |
| public StyleAttributeMap | |
| public Node |
| addStyle | back to summary |
|---|---|
| public void addStyle(String fxStyle) Adds an inline style.
The inline style must be a valid CSS style string, for example
| |
| decorateRun | back to summary |
|---|---|
| public <T> void decorateRun(StyleAttribute<T> a, CellContext. Decorates the current segment with the specified attribute by coalescing adjacent runs into a single decoration pass. This method is used when the visual representation requires uninterrupted segments instead of several adjacent ones, for example in the case of wavy underline, in order to avoid breaks in the wave. This method expects that for any attribute the corresponding type and styleName are the same.
| |
| getAttributes | back to summary |
|---|---|
| public StyleAttributeMap getAttributes() Returns the current attributes.
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Returns the node being styled. This might be a TextFlow (for the paragraph cell context) or Text (for the text segment cell context).
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CellContext. | HIGHLIGHT
Text background (highlight) decoration. |
| public static final CellContext. | WAVY_UNDERLINE
Wavy underline decoration. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CellContext. | |
| public static CellContext. |
| HIGHLIGHT | back to summary |
|---|---|
| public static final CellContext. Text background (highlight) decoration. | |
| WAVY_UNDERLINE | back to summary |
|---|---|
| public static final CellContext. Wavy underline decoration. | |
| RunDecor | back to summary |
|---|---|
| private RunDecor() | |
| valueOf | back to summary |
|---|---|
| public static CellContext. | |
| values | back to summary |
|---|---|
| public static CellContext. | |