@API(type=EXTENDABLE,
src=PUBLIC)
public interface LabelCSSConstants
Modifier and Type | Field and 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 from
STYLES_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.
|
static final java.lang.String TEXT_PROPERTY
static final java.lang.String WIDTH_PROPERTY
RelativeLength
.
Note: In case you don't have the possibility to build a RelativeLength
then you can use the STYLES_PROPERTY
to give the width as a string:
* {
width:100px;
}
static final java.lang.String TEXT_ALIGN_PROPERTY
static final java.lang.String COLOR_PROPERTY
Color
.static final java.lang.String BACKGROUND_COLOR_PROPERTY
Color
.static final java.lang.String STYLES_PROPERTY
Possibility to specify CSS rules for this label.
Example:
* {
text-align:right;
color:red;
}
You can also specify as CSS something like:
@import 'label_styles.css';
Relative imports will be resolved relative to BASE_SYSTEM_ID
.
This approach is useful to easily reuse the same styles for more
oxy_labels.
static final java.lang.String BASE_SYSTEM_ID
STYLES_PROPERTY
.
This normally is the system ID of the CSS file in which the oxy_label was
encountered.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.