Package ro.sync.ecss.css.functions
Interface LabelCSSConstants
-
@API(type=EXTENDABLE, src=PUBLIC) public interface LabelCSSConstants
Processed arguments of the oxy_label function.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BACKGROUND_COLOR_PROPERTY
A background color for the label.static java.lang.String
BASE_SYSTEM_ID
Base system id to be used to resolve imports fromSTYLES_PROPERTY
.static java.lang.String
COLOR_PROPERTY
A foreground color for the text.static java.lang.String
STYLES_PROPERTY
Possibility to specify CSS rules for this label.static java.lang.String
TEXT_ALIGN_PROPERTY
The alignment of the label.static java.lang.String
TEXT_PROPERTY
The text that will be displayed as a label.static java.lang.String
WIDTH_PROPERTY
The width of the label.
-
-
-
Field Detail
-
TEXT_PROPERTY
static final java.lang.String TEXT_PROPERTY
The text that will be displayed as a label. A string value.- See Also:
- Constant Field Values
-
WIDTH_PROPERTY
static final java.lang.String WIDTH_PROPERTY
The width of the label. AnRelativeLength
.Note: In case you don't have the possibility to build a
RelativeLength
then you can use theSTYLES_PROPERTY
to give the width as a string:* { width:100px; }
- See Also:
- Constant Field Values
-
TEXT_ALIGN_PROPERTY
static final java.lang.String TEXT_ALIGN_PROPERTY
The alignment of the label. A string value: left, right or center.- See Also:
- Constant Field Values
-
COLOR_PROPERTY
static final java.lang.String COLOR_PROPERTY
A foreground color for the text. AColor
.- See Also:
- Constant Field Values
-
BACKGROUND_COLOR_PROPERTY
static final java.lang.String BACKGROUND_COLOR_PROPERTY
A background color for the label. AColor
.- See Also:
- Constant Field Values
-
STYLES_PROPERTY
static final java.lang.String STYLES_PROPERTY
Possibility to specify CSS rules for this label.
Example:
The selectors are ignored, all rules are considered to match.* { text-align:right; color:red; }
You can also specify as CSS something like:
The following properties are handled:@import 'label_styles.css';
Relative imports will be resolved relative toBASE_SYSTEM_ID
. This approach is useful to easily reuse the same styles for more oxy_labels.- font-weight, font-size, font-style, font
- text-align, text-decoration
- width
- color, background-color
- See Also:
- Constant Field Values
-
BASE_SYSTEM_ID
static final java.lang.String BASE_SYSTEM_ID
Base system id to be used to resolve imports fromSTYLES_PROPERTY
. This normally is the system ID of the CSS file in which the oxy_label was encountered.- See Also:
- Constant Field Values
-
-