|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet
org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
org.pentaho.reporting.engine.classic.core.style.ElementDefaultStyleSheet
public class ElementDefaultStyleSheet
The default element style sheet. This style sheet defines default attribute values for all elements.
The default valignment was modified to top.
Field Summary | |
---|---|
static Color |
DEFAULT_PAINT
The default paint. |
static Stroke |
DEFAULT_STROKE
|
Fields inherited from class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet |
---|
ALIGNMENT, BOLD, DYNAMIC_HEIGHT, EMBEDDED_FONT, EXCEL_DATA_FORMAT_STRING, EXCEL_WRAP_TEXT, FONT, FONTENCODING, FONTSIZE, HREF_TARGET, HREF_WINDOW, ITALIC, KEEP_ASPECT_RATIO, LINEHEIGHT, MAXIMUMSIZE, MINIMUMSIZE, PAINT, PREFERREDSIZE, RESERVED_LITERAL, SCALE, STRIKETHROUGH, STROKE, TRIM_TEXT_CONTENT, UNDERLINED, VALIGNMENT, VISIBLE |
Method Summary | |
---|---|
ElementStyleSheet |
getCopy()
Clones the style-sheet. |
static ElementDefaultStyleSheet |
getDefaultStyle()
Returns the default element style sheet. |
boolean |
isGlobalDefault()
Returns true, if this stylesheet is one of the global default stylesheets. |
void |
setStyleProperty(StyleKey key,
Object value)
Sets a style property (or removes the style if the value is null ). |
Methods inherited from class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet |
---|
addListener, addParent, addParent, clone, derive, getCascadeStyleSheet, getChangeTracker, getDefinedPropertyNames, getDefinedPropertyNamesArray, getFontDefinitionProperty, getGlobalDefaultStyleSheet, getName, getParents, getPropertyKeys, getStyleProperty, isAllowCaching, isLocalKey, removeListener, removeParent, setAllowCaching, setBooleanStyleProperty, setCascadeStyleSheet, setFontDefinitionProperty, setGlobalDefaultStyleSheet, styleChanged, styleRemoved, toArray |
Methods inherited from class org.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet |
---|
getBooleanStyleProperty, getBooleanStyleProperty, getDoubleStyleProperty, getId, getIntStyleProperty, getStyleProperty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Color DEFAULT_PAINT
public static final Stroke DEFAULT_STROKE
Method Detail |
---|
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()
getCopy
in class ElementStyleSheet
public boolean isGlobalDefault()
isGlobalDefault
in class ElementStyleSheet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |