public class ElementDefaultStyleSheet extends ElementStyleSheet
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_PAINT
The default paint.
|
static Stroke |
DEFAULT_STROKE |
Modifier | Constructor and Description |
---|---|
protected |
ElementDefaultStyleSheet()
Creates a new style sheet.
|
Modifier and Type | Method and Description |
---|---|
ElementStyleSheet |
getCopy()
Clones the style-sheet.
|
static ElementDefaultStyleSheet |
getDefaultStyle()
Returns the default element style sheet.
|
protected boolean |
isLocked()
Gets the locked state of this stylesheet.
|
protected void |
setLocked(boolean locked)
Defines the locked-state for this stylesheet.
|
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, setChangeTrackerHash, setModificationCount, toArray
getBooleanStyleProperty, getBooleanStyleProperty, getDoubleStyleProperty, getId, getIntStyleProperty, getStyleProperty, setId
public static final Color DEFAULT_PAINT
public static final Stroke DEFAULT_STROKE
protected ElementDefaultStyleSheet()
protected boolean isLocked()
protected void setLocked(boolean locked)
locked
- true, if the stylesheet is locked and read-only, false otherwise.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()
Copyright © 2017 Hitachi Vantara. All rights reserved.