public final class BuiltInStyles
extends java.lang.Object
BuiltInStyles
class contains constants and statics
with the styles that are built in and available for all document
renderers to build on top of.Modifier and Type | Field and Description |
---|---|
BaseStyle |
additionStyle
The base addition style.
|
BaseStyle |
attributeNameStyle
The base attribute name style.
|
BaseStyle |
attributeValueStyle
The base attribute value style.
|
BaseStyle |
braceStyle
The base brace style.
|
static java.lang.String |
BUILTIN_ADDITION_STYLE
Name of base attribute addition text style.
|
static java.lang.String |
BUILTIN_ATTRIBUTE_NAME_STYLE
Name of base attribute name text style.
|
static java.lang.String |
BUILTIN_ATTRIBUTE_VALUE_STYLE
Name of base attribute value text style.
|
static java.lang.String |
BUILTIN_BRACE_STYLE
Name of the base brace text style.
|
static java.lang.String |
BUILTIN_COMMENT_STYLE
Name of base comment text style.
|
static java.lang.String |
BUILTIN_ELEMENT_STYLE
Name of base element name text style.
|
static java.lang.String |
BUILTIN_HEADER_STYLE
Name of base attribute header text style.
|
static java.lang.String |
BUILTIN_IDENTIFIER_STYLE
Name of base identifier text style.
|
static java.lang.String |
BUILTIN_KEYWORD_STYLE
Name of base keyword text style.
|
static java.lang.String |
BUILTIN_LF_STYLE
Name of the base Look&Feel style.
|
static java.lang.String |
BUILTIN_MARKUP_STYLE
Name of base markup symbol text style.
|
static java.lang.String |
BUILTIN_NUMBER_STYLE
Name of base number text style.
|
static java.lang.String |
BUILTIN_OPERATOR_STYLE
Name of the base operator text style.
|
static java.lang.String |
BUILTIN_PLAIN_STYLE
Name of the plain text style.
|
static java.lang.String |
BUILTIN_REMOVAL_STYLE
Name of base attribute removal text style.
|
static java.lang.String |
BUILTIN_STRING_STYLE
Name of base string text style.
|
BaseStyle |
commentStyle
The base comment style.
|
BaseStyle |
elementStyle
The base element name style.
|
BaseStyle |
headerStyle
The base header style.
|
BaseStyle |
identifierStyle
The base identifier style.
|
BaseStyle |
keywordStyle
The base keyword style.
|
BaseStyle |
lfStyle
The base look and feel style.
|
BaseStyle |
markupStyle
The base markup symbol style.
|
BaseStyle |
numberStyle
The base number style.
|
BaseStyle |
operatorStyle
The base operator style.
|
BaseStyle |
plainStyle
The base plain text style.
|
BaseStyle |
removalStyle
The base removal style.
|
BaseStyle |
stringStyle
The base string style.
|
static java.lang.String[] |
STYLE_NAMES
The name of all the styles defined here.
|
Constructor and Description |
---|
BuiltInStyles(StyleRegistry styleRegistry)
Creates a
BuiltInStyles instance based on the styles
in the given style registry. |
Modifier and Type | Method and Description |
---|---|
void |
reloadStyles(StyleRegistry styleRegistry)
Reloads the built in styles from the provided style registry.
|
public static final java.lang.String BUILTIN_LF_STYLE
public static final java.lang.String BUILTIN_PLAIN_STYLE
public static final java.lang.String BUILTIN_COMMENT_STYLE
public static final java.lang.String BUILTIN_KEYWORD_STYLE
public static final java.lang.String BUILTIN_STRING_STYLE
public static final java.lang.String BUILTIN_NUMBER_STYLE
public static final java.lang.String BUILTIN_IDENTIFIER_STYLE
public static final java.lang.String BUILTIN_BRACE_STYLE
public static final java.lang.String BUILTIN_OPERATOR_STYLE
public static final java.lang.String BUILTIN_MARKUP_STYLE
public static final java.lang.String BUILTIN_ELEMENT_STYLE
public static final java.lang.String BUILTIN_ATTRIBUTE_NAME_STYLE
public static final java.lang.String BUILTIN_ATTRIBUTE_VALUE_STYLE
public static final java.lang.String BUILTIN_HEADER_STYLE
public static final java.lang.String BUILTIN_ADDITION_STYLE
public static final java.lang.String BUILTIN_REMOVAL_STYLE
public static final java.lang.String[] STYLE_NAMES
public BaseStyle lfStyle
public BaseStyle plainStyle
public BaseStyle commentStyle
public BaseStyle keywordStyle
public BaseStyle stringStyle
public BaseStyle numberStyle
public BaseStyle identifierStyle
public BaseStyle braceStyle
public BaseStyle operatorStyle
public BaseStyle markupStyle
public BaseStyle elementStyle
public BaseStyle attributeNameStyle
public BaseStyle attributeValueStyle
public BaseStyle headerStyle
public BaseStyle additionStyle
public BaseStyle removalStyle
public BuiltInStyles(StyleRegistry styleRegistry)
BuiltInStyles
instance based on the styles
in the given style registry.styleRegistry
- the style registry to pre-initialize this Styles
instance withpublic void reloadStyles(StyleRegistry styleRegistry)
styleRegistry
- the style registry to reload our styles from