public abstract class AbstractStyleSheet extends Object implements StyleSheet, Cloneable
Modifier and Type | Method and Description |
---|---|
StyleSheet |
clone() |
StyleSheet |
derive(boolean preserveId) |
boolean |
getBooleanStyleProperty(StyleKey key)
Returns a boolean style (defaults to false if the style is not found).
|
boolean |
getBooleanStyleProperty(StyleKey key,
boolean defaultValue)
Returns a boolean style.
|
long |
getChangeTrackerHash() |
double |
getDoubleStyleProperty(StyleKey key,
double def)
Returns an double style.
|
InstanceID |
getId()
Returns the ID of the stylesheet.
|
int |
getIntStyleProperty(StyleKey key,
int def)
Returns an integer style.
|
long |
getModificationCount() |
Object |
getStyleProperty(StyleKey key)
Returns the value of a style.
|
boolean |
isLocalKey(StyleKey key) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChangeTracker, getStyleProperty, toArray
public Object getStyleProperty(StyleKey key)
null
is returned.getStyleProperty
in interface StyleSheet
key
- the style key.public boolean getBooleanStyleProperty(StyleKey key)
getBooleanStyleProperty
in interface StyleSheet
key
- the style key.true
or false
.public boolean getBooleanStyleProperty(StyleKey key, boolean defaultValue)
getBooleanStyleProperty
in interface StyleSheet
key
- the style key.defaultValue
- the default value.public int getIntStyleProperty(StyleKey key, int def)
getIntStyleProperty
in interface StyleSheet
key
- the style key.def
- the default value.public double getDoubleStyleProperty(StyleKey key, double def)
getDoubleStyleProperty
in interface StyleSheet
key
- the style key.def
- the default value.public InstanceID getId()
getId
in interface StyleSheet
public boolean isLocalKey(StyleKey key)
isLocalKey
in interface StyleSheet
public StyleSheet derive(boolean preserveId)
public StyleSheet clone()
public long getModificationCount()
getModificationCount
in interface StyleSheet
public long getChangeTrackerHash()
getChangeTrackerHash
in interface StyleSheet