public class Styles
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Styles.Property
A style property definition.
|
static class |
Styles.Rule
A style rule with property definitions.
|
| Modifier and Type | Field and Description |
|---|---|
static short |
FILL
Style property type for fill.
|
static short |
FILL_OPACITY
Style property type for fill opacity.
|
static short |
FONT_FAMILY
Style property type for font family.
|
static short |
FONT_SIZE
Style property type for font size.
|
static short |
FONT_STYLE
Style property type for font style.
|
static short |
FONT_WEIGHT
Style property type for font weight.
|
static short |
OPACITY
Style property type for opacity.
|
static short |
STROKE
Style property type for stroke.
|
static short |
STROKE_DASHARRAY
Style property type for stroke dash array.
|
static short |
STROKE_WIDTH
Style property type for stroke width.
|
static short |
TEXT_DECORATION
Style property type for text decoration.
|
static short |
TRANSFORM
Style property type for transform.
|
| Constructor and Description |
|---|
Styles()
Create an empty styles collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(Styles.Rule rule)
Add a style rule.
|
Styles.Rule |
getRule(java.lang.String styleClass)
Return the rule for a style class.
|
boolean |
hasRule(java.lang.String styleClass)
Return true if a rule exists for the style class.
|
public static final short FILL
public static final short STROKE
public static final short STROKE_WIDTH
public static final short STROKE_DASHARRAY
public static final short FONT_SIZE
public static final short FONT_WEIGHT
public static final short FONT_STYLE
public static final short FONT_FAMILY
public static final short TEXT_DECORATION
public static final short OPACITY
public static final short FILL_OPACITY
public static final short TRANSFORM
public void addRule(Styles.Rule rule)
rule - the rule to addpublic boolean hasRule(java.lang.String styleClass)
styleClass - the style classpublic Styles.Rule getRule(java.lang.String styleClass)
styleClass - the style classCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence