Package net.sf.jasperreports.engine.base
Class JRBaseConditionalStyle
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseStyle
-
- net.sf.jasperreports.engine.base.JRBaseConditionalStyle
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Deduplicable,JRChangeEventsSupport,JRBoxContainer,JRCloneable,JRConditionalStyle,JRParagraphContainer,JRPenContainer,JRStyle,JRStyleContainer
- Direct Known Subclasses:
JRDesignConditionalStyle
public class JRBaseConditionalStyle extends JRBaseStyle implements JRConditionalStyle
- Author:
- Ionut Nedelcu (ionutned@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpressionconditionExpression-
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 JRBaseConditionalStyle()JRBaseConditionalStyle(JRConditionalStyle style, JRStyle parentStyle, JRAbstractObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()JRExpressiongetConditionExpression()intgetHashCode()Returns a hash code to be used for the deduplicate map.booleanisIdentical(java.lang.Object object)Determines if this instance is identical to another object.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseStyle
addStyleHash, checkCircularParent, getBackcolor, getConditionalStyles, getDefaultLineColor, getDefaultLineWidth, getDefaultStyleProvider, getEventSupport, getFillValue, getFontName, getFontsize, getForecolor, 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, isItalic, isOwnBlankWhenNull, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, rename, setBackcolor, setBlankWhenNull, setBold, setFill, setFontName, setFontSize, setForecolor, setHorizontalImageAlign, setHorizontalTextAlign, setItalic, setMarkup, setMode, setParentStyle, setPattern, setPdfEmbedded, setPdfEncoding, setPdfFontName, setRadius, setRotation, setScaleImage, setStrikeThrough, setUnderline, setVerticalImageAlign, setVerticalTextAlign
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColor
-
Methods inherited from interface net.sf.jasperreports.engine.JRParagraphContainer
getParagraph
-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyle
getBackcolor, getConditionalStyles, getFillValue, getFontName, getFontsize, getForecolor, getHorizontalImageAlign, getHorizontalTextAlign, getLineBox, getLinePen, getMarkup, getModeValue, getName, getOwnBackcolor, getOwnFillValue, getOwnFontName, getOwnFontsize, getOwnForecolor, getOwnHorizontalImageAlign, getOwnHorizontalTextAlign, getOwnMarkup, getOwnModeValue, getOwnPattern, getOwnPdfEncoding, getOwnPdfFontName, getOwnRadius, getOwnRotationValue, getOwnScaleImageValue, getOwnVerticalImageAlign, getOwnVerticalTextAlign, getPattern, getPdfEncoding, getPdfFontName, getRadius, getRotationValue, getScaleImageValue, getVerticalImageAlign, getVerticalTextAlign, isBlankWhenNull, isBold, isDefault, isItalic, isOwnBlankWhenNull, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, setBackcolor, setBlankWhenNull, setBold, setFill, setFontName, setFontSize, setForecolor, setHorizontalImageAlign, setHorizontalTextAlign, setItalic, setMarkup, setMode, setPattern, setPdfEmbedded, setPdfEncoding, setPdfFontName, setRadius, setRotation, setScaleImage, setStrikeThrough, setUnderline, setVerticalImageAlign, setVerticalTextAlign
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
conditionExpression
protected JRExpression conditionExpression
-
-
Constructor Detail
-
JRBaseConditionalStyle
public JRBaseConditionalStyle()
-
JRBaseConditionalStyle
public JRBaseConditionalStyle(JRConditionalStyle style, JRStyle parentStyle, JRAbstractObjectFactory factory)
-
-
Method Detail
-
getConditionExpression
public JRExpression getConditionExpression()
- Specified by:
getConditionExpressionin interfaceJRConditionalStyle
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseStyle
-
getHashCode
public int getHashCode()
Description copied from interface:DeduplicableReturns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCodein interfaceDeduplicable- Overrides:
getHashCodein classJRBaseStyle- Returns:
- deduplication hash code
-
isIdentical
public boolean isIdentical(java.lang.Object object)
Description copied from interface:DeduplicableDetermines if this instance is identical to another object.- Specified by:
isIdenticalin interfaceDeduplicable- Overrides:
isIdenticalin classJRBaseStyle- Parameters:
object- the object to compare with this instance- Returns:
trueif the two objects are identical and can be deduplicated
-
-