Class JRDesignStyle
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseStyle
-
- net.sf.jasperreports.engine.design.JRDesignStyle
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Deduplicable,JRChangeEventsSupport,JRBoxContainer,JRCloneable,JRParagraphContainer,JRPenContainer,JRStyle,JRStyleContainer
public class JRDesignStyle extends JRBaseStyle
- Author:
- Ionut Nedelcu (ionutned@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_CONDITIONAL_STYLESstatic java.lang.StringPROPERTY_DEFAULTstatic java.lang.StringPROPERTY_NAMEstatic java.lang.StringPROPERTY_PARENT_STYLEstatic java.lang.StringPROPERTY_PARENT_STYLE_NAME_REFERENCE-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseStyle
backcolor, conditionalStyles, defaultStyleProvider, EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY, fillValue, fontName, fontsize, forecolor, horizontalImageAlign, horizontalTextAlign, isBlankWhenNull, isBold, isDefault, isItalic, isPdfEmbedded, isStrikeThrough, isUnderline, lineBox, linePen, markup, modeValue, name, paragraph, parentStyle, parentStyleNameReference, pattern, pdfEncoding, pdfFontName, positionType, PROPERTY_BACKCOLOR, PROPERTY_BLANK_WHEN_NULL, PROPERTY_BOLD, PROPERTY_FILL, PROPERTY_FONT_NAME, PROPERTY_FONT_SIZE, PROPERTY_FORECOLOR, PROPERTY_HORIZONTAL_ALIGNMENT, PROPERTY_HORIZONTAL_IMAGE_ALIGNMENT, PROPERTY_HORIZONTAL_TEXT_ALIGNMENT, PROPERTY_ITALIC, PROPERTY_LINE_SPACING, PROPERTY_MARKUP, PROPERTY_MODE, PROPERTY_PATTERN, PROPERTY_PDF_EMBEDDED, PROPERTY_PDF_ENCODING, PROPERTY_PDF_FONT_NAME, PROPERTY_RADIUS, PROPERTY_ROTATION, PROPERTY_SCALE_IMAGE, PROPERTY_STRIKE_THROUGH, PROPERTY_UNDERLINE, PROPERTY_VERTICAL_ALIGNMENT, PROPERTY_VERTICAL_IMAGE_ALIGNMENT, PROPERTY_VERTICAL_TEXT_ALIGNMENT, radius, rotationValue, scaleImageValue, stretchType, verticalImageAlign, verticalTextAlign
-
Fields inherited from interface net.sf.jasperreports.engine.JRStyle
PROPERTY_EVALUATION_TIME_ENABLED
-
-
Constructor Summary
Constructors Constructor Description JRDesignStyle()JRDesignStyle(JRDefaultStyleProvider defaultStyleProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConditionalStyle(int index, JRConditionalStyle conditionalStyle)voidaddConditionalStyle(JRConditionalStyle conditionalStyle)java.lang.Objectclone()java.util.List<JRConditionalStyle>getConditionalStyleList()JRConditionalStyle[]getConditionalStyles()booleanremoveConditionalStyle(JRConditionalStyle conditionalStyle)voidsetDefault(boolean isDefault)voidsetName(java.lang.String name)voidsetParentStyle(JRStyle parentStyle)voidsetParentStyleNameReference(java.lang.String styleName)Set the name of the external style to be used as parent style.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseStyle
addStyleHash, checkCircularParent, getBackcolor, getDefaultLineColor, getDefaultLineWidth, getDefaultStyleProvider, getEventSupport, getFillValue, getFontName, getFontsize, getForecolor, getHashCode, getHorizontalImageAlign, getHorizontalTextAlign, getLineBox, getLinePen, getMarkup, getModeValue, getName, getOwnBackcolor, getOwnFillValue, getOwnFontName, getOwnFontsize, getOwnForecolor, getOwnHorizontalImageAlign, getOwnHorizontalTextAlign, getOwnMarkup, getOwnModeValue, getOwnPattern, getOwnPdfEncoding, getOwnPdfFontName, getOwnRadius, getOwnRotationValue, getOwnScaleImageValue, getOwnVerticalImageAlign, getOwnVerticalTextAlign, getParagraph, getPattern, getPdfEncoding, getPdfFontName, getRadius, getRotationValue, getScaleImageValue, getStyle, getStyleNameReference, getStyleResolver, getVerticalImageAlign, getVerticalTextAlign, identicalStyle, isBlankWhenNull, isBold, isDefault, isIdentical, isItalic, isOwnBlankWhenNull, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, rename, setBackcolor, setBlankWhenNull, setBold, setFill, setFontName, setFontSize, setForecolor, setHorizontalImageAlign, setHorizontalTextAlign, setItalic, setMarkup, setMode, setPattern, setPdfEmbedded, setPdfEncoding, setPdfFontName, setRadius, setRotation, setScaleImage, setStrikeThrough, setUnderline, setVerticalImageAlign, setVerticalTextAlign
-
-
-
-
Field Detail
-
PROPERTY_DEFAULT
public static final java.lang.String PROPERTY_DEFAULT
- See Also:
- Constant Field Values
-
PROPERTY_NAME
public static final java.lang.String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_PARENT_STYLE
public static final java.lang.String PROPERTY_PARENT_STYLE
- See Also:
- Constant Field Values
-
PROPERTY_PARENT_STYLE_NAME_REFERENCE
public static final java.lang.String PROPERTY_PARENT_STYLE_NAME_REFERENCE
- See Also:
- Constant Field Values
-
PROPERTY_CONDITIONAL_STYLES
public static final java.lang.String PROPERTY_CONDITIONAL_STYLES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRDesignStyle
public JRDesignStyle()
-
JRDesignStyle
public JRDesignStyle(JRDefaultStyleProvider defaultStyleProvider)
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
-
setDefault
public void setDefault(boolean isDefault)
-
setParentStyle
public void setParentStyle(JRStyle parentStyle)
- Overrides:
setParentStylein classJRBaseStyle
-
addConditionalStyle
public void addConditionalStyle(JRConditionalStyle conditionalStyle)
-
addConditionalStyle
public void addConditionalStyle(int index, JRConditionalStyle conditionalStyle)
-
removeConditionalStyle
public boolean removeConditionalStyle(JRConditionalStyle conditionalStyle)
-
getConditionalStyles
public JRConditionalStyle[] getConditionalStyles()
- Specified by:
getConditionalStylesin interfaceJRStyle- Overrides:
getConditionalStylesin classJRBaseStyle
-
getConditionalStyleList
public java.util.List<JRConditionalStyle> getConditionalStyleList()
-
setParentStyleNameReference
public void setParentStyleNameReference(java.lang.String styleName)
Set the name of the external style to be used as parent style. An external style is only effective when there is no internal parent style set, i.e.getStyle()returnsnullThe external style will be resolved at fill time from the templates used in the report.- Parameters:
styleName- the name of the external style- See Also:
JRBaseStyle.getStyleNameReference()
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseStyle
-
-