public class ElementDefaultStyleSheet extends ElementStyleSheet
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_PAINT
The default paint.
|
static Stroke |
DEFAULT_STROKE |
Modifier and Type | Method and Description |
---|---|
ElementStyleSheet |
getCopy()
Clones the style-sheet.
|
static ElementDefaultStyleSheet |
getDefaultStyle()
Returns the default element style sheet.
|
void |
setStyleProperty(StyleKey key,
Object value)
Sets a style property (or removes the style if the value is
null ). |
addAll, addDefault, addInherited, addInherited, addListener, clear, clone, copyFrom, derive, getChangeTracker, getChangeTrackerHash, getDefinedPropertyNamesArray, getModificationCount, getPropertyKeyList, getPropertyKeys, getStyleProperty, isLocalKey, removeListener, setBooleanStyleProperty, toArray
getBooleanStyleProperty, getBooleanStyleProperty, getDoubleStyleProperty, getId, getIntStyleProperty, getStyleProperty
public static final Color DEFAULT_PAINT
public static final Stroke DEFAULT_STROKE
public static ElementDefaultStyleSheet getDefaultStyle()
public void setStyleProperty(StyleKey key, Object value)
null
).setStyleProperty
in class ElementStyleSheet
key
- the style key (null
not permitted).value
- the value.NullPointerException
- if the given key is null.ClassCastException
- if the value cannot be assigned with the given key.UnsupportedOperationException
- as this style sheet is read only.public ElementStyleSheet getCopy()