|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.style.ElementStyleSheet
com.jrefinery.report.targets.style.BandStyleSheet
com.jrefinery.report.targets.style.BandDefaultStyleSheet
A default band style sheet. This StyleSheet defines the default attribute values for all Bands.
Field Summary |
Fields inherited from class com.jrefinery.report.targets.style.BandStyleSheet |
DISPLAY_ON_FIRSTPAGE, DISPLAY_ON_LASTPAGE, PAGEBREAK_AFTER, PAGEBREAK_BEFORE, REPEAT_HEADER |
Fields inherited from class com.jrefinery.report.targets.style.ElementStyleSheet |
ALIGNMENT, BOLD, BOUNDS, DYNAMIC_HEIGHT, ELEMENT_LAYOUT_CACHEABLE, EMBEDDED_FONT, FONT, FONTENCODING, FONTSIZE, ITALIC, KEEP_ASPECT_RATIO, LINEHEIGHT, MAXIMUMSIZE, MINIMUMSIZE, PAINT, PREFERREDSIZE, SCALE, STRIKETHROUGH, STROKE, UNDERLINED, VALIGNMENT, VISIBLE |
Constructor Summary | |
protected |
BandDefaultStyleSheet()
Creates a new default style sheet. |
Method Summary | |
static BandDefaultStyleSheet |
getBandDefaultStyle()
Returns the default band style sheet. |
ElementStyleSheet |
getCopy()
Clones the 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,
java.lang.Object value)
Sets a style property (or removes the style if the value is null ). |
void |
setStyleSheetCollection(StyleSheetCollection styleSheetCollection)
Assigns a new stylesheet collection to this stylesheet. |
Methods inherited from class com.jrefinery.report.targets.style.ElementStyleSheet |
addDefaultParent, addDefaultParent, addListener, addParent, addParent, clone, equals, getBooleanStyleProperty, getBooleanStyleProperty, getDefaultParents, getDefinedPropertyNames, getFontDefinitionProperty, getFontStyleProperty, getId, getIntStyleProperty, getName, getParents, getStyleProperty, getStyleProperty, getStyleSheetCollection, hashCode, isAllowCaching, isSubStyleSheet, removeDefaultParent, removeListener, removeParent, setAllowCaching, setBooleanStyleProperty, setFontDefinitionProperty, setFontStyleProperty, styleChanged, styleRemoved |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected BandDefaultStyleSheet()
Method Detail |
protected boolean isLocked()
protected void setLocked(boolean locked)
locked
- true, if the stylesheet is locked and read-only, false otherwise.public static final BandDefaultStyleSheet getBandDefaultStyle()
public void setStyleProperty(StyleKey key, java.lang.Object value)
null
).
setStyleProperty
in class ElementStyleSheet
key
- the style key (null
not permitted).value
- the value.
java.lang.NullPointerException
- if the given key is null.
java.lang.ClassCastException
- if the value cannot be assigned with the given key.
java.lang.UnsupportedOperationException
- as this style sheet is read only.public ElementStyleSheet getCopy()
getCopy
in class ElementStyleSheet
public final void setStyleSheetCollection(StyleSheetCollection styleSheetCollection)
Default StyleSheets are shared among all reports, as they are unmodifyable.
setStyleSheetCollection
in class ElementStyleSheet
styleSheetCollection
-
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |