public class EditableStyleSheet
extends org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
Constructor and Description |
---|
EditableStyleSheet() |
Modifier and Type | Method and Description |
---|---|
void |
clearEdits() |
void |
copyParentValues(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent) |
static EditableStyleSheet |
create(org.pentaho.reporting.engine.classic.core.Element... visualElements) |
static EditableStyleSheet |
create(List<org.pentaho.reporting.engine.classic.core.Element> visualElements) |
org.pentaho.reporting.engine.classic.core.style.StyleKey[] |
getDefinedPropertyNamesArray() |
Object |
getStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key,
Object defaultValue)
Returns the value of a style.
|
void |
setStyleProperty(org.pentaho.reporting.engine.classic.core.style.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, getModificationCount, getPropertyKeyList, getPropertyKeys, isLocalKey, removeListener, setBooleanStyleProperty, toArray
public void copyParentValues(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent)
public void clearEdits()
public static EditableStyleSheet create(List<org.pentaho.reporting.engine.classic.core.Element> visualElements)
public static EditableStyleSheet create(org.pentaho.reporting.engine.classic.core.Element... visualElements)
public void setStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object value)
null
).setStyleProperty
in class org.pentaho.reporting.engine.classic.core.style.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.public Object getStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object defaultValue)
null
) is returned.getStyleProperty
in interface org.pentaho.reporting.engine.classic.core.style.StyleSheet
getStyleProperty
in class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
key
- the style key.defaultValue
- the default value (null
permitted).public org.pentaho.reporting.engine.classic.core.style.StyleKey[] getDefinedPropertyNamesArray()
getDefinedPropertyNamesArray
in class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet