public class JRBaseStyle extends Object implements JRStyle, Serializable, JRChangeEventsSupport, Deduplicable
PROPERTY_EVALUATION_TIME_ENABLED
Constructor and Description |
---|
JRBaseStyle() |
JRBaseStyle(JRDefaultStyleProvider defaultStyleProvider) |
JRBaseStyle(JRDefaultStyleProvider defaultStyleProvider,
String name) |
JRBaseStyle(JRStyle style,
JRAbstractObjectFactory factory) |
JRBaseStyle(String name) |
public static final String EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY
public static final String PROPERTY_BACKCOLOR
public static final String PROPERTY_BLANK_WHEN_NULL
public static final String PROPERTY_BOLD
public static final String PROPERTY_FILL
public static final String PROPERTY_FONT_NAME
public static final String PROPERTY_FONT_SIZE
public static final String PROPERTY_FORECOLOR
public static final String PROPERTY_HORIZONTAL_ALIGNMENT
PROPERTY_HORIZONTAL_TEXT_ALIGNMENT
and PROPERTY_HORIZONTAL_IMAGE_ALIGNMENT
.public static final String PROPERTY_HORIZONTAL_TEXT_ALIGNMENT
public static final String PROPERTY_HORIZONTAL_IMAGE_ALIGNMENT
public static final String PROPERTY_ITALIC
public static final String PROPERTY_LINE_SPACING
JRBaseParagraph.PROPERTY_LINE_SPACING
public static final String PROPERTY_MODE
public static final String PROPERTY_PATTERN
public static final String PROPERTY_PDF_EMBEDDED
public static final String PROPERTY_PDF_ENCODING
public static final String PROPERTY_PDF_FONT_NAME
public static final String PROPERTY_RADIUS
public static final String PROPERTY_ROTATION
public static final String PROPERTY_SCALE_IMAGE
public static final String PROPERTY_STRIKE_THROUGH
public static final String PROPERTY_MARKUP
public static final String PROPERTY_UNDERLINE
public static final String PROPERTY_VERTICAL_ALIGNMENT
PROPERTY_VERTICAL_TEXT_ALIGNMENT
and "verticalImageAlignment".public static final String PROPERTY_VERTICAL_TEXT_ALIGNMENT
public static final String PROPERTY_VERTICAL_IMAGE_ALIGNMENT
protected final JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
protected String parentStyleNameReference
protected String name
protected boolean isDefault
protected Byte positionType
protected Byte stretchType
protected ModeEnum modeValue
protected Color forecolor
protected Color backcolor
protected JRPen linePen
protected FillEnum fillValue
protected Integer radius
protected ScaleImageEnum scaleImageValue
protected HorizontalTextAlignEnum horizontalTextAlign
protected VerticalTextAlignEnum verticalTextAlign
protected HorizontalImageAlignEnum horizontalImageAlign
protected VerticalImageAlignEnum verticalImageAlign
protected JRLineBox lineBox
protected JRParagraph paragraph
protected String fontName
protected Boolean isBold
protected Boolean isItalic
protected Boolean isUnderline
protected Boolean isStrikeThrough
protected Float fontsize
protected String pdfFontName
protected String pdfEncoding
protected Boolean isPdfEmbedded
protected RotationEnum rotationValue
protected String markup
protected String pattern
protected Boolean isBlankWhenNull
protected JRConditionalStyle[] conditionalStyles
public JRBaseStyle()
public JRBaseStyle(JRDefaultStyleProvider defaultStyleProvider)
public JRBaseStyle(String name)
public JRBaseStyle(JRDefaultStyleProvider defaultStyleProvider, String name)
public JRBaseStyle(JRStyle style, JRAbstractObjectFactory factory)
protected void setParentStyle(JRStyle parentStyle)
protected void checkCircularParent()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
protected StyleResolver getStyleResolver()
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public String getName()
JRStyle
public void rename(String newName)
newName
- the new namepublic boolean isDefault()
JRStyle
public Color getForecolor()
getForecolor
in interface JRStyle
public Color getOwnForecolor()
getOwnForecolor
in interface JRStyle
public Color getBackcolor()
getBackcolor
in interface JRStyle
public Color getOwnBackcolor()
getOwnBackcolor
in interface JRStyle
public JRPen getLinePen()
getLinePen
in interface JRStyle
public FillEnum getFillValue()
JRStyle
getFillValue
in interface JRStyle
FillEnum
.public FillEnum getOwnFillValue()
getOwnFillValue
in interface JRStyle
public Integer getRadius()
JRStyle
public Integer getOwnRadius()
getOwnRadius
in interface JRStyle
public ScaleImageEnum getScaleImageValue()
JRStyle
getScaleImageValue
in interface JRStyle
ScaleImageEnum
public ScaleImageEnum getOwnScaleImageValue()
JRStyle
getOwnScaleImageValue
in interface JRStyle
ScaleImageEnum
public HorizontalTextAlignEnum getHorizontalTextAlign()
JRStyle
getHorizontalTextAlign
in interface JRStyle
HorizontalTextAlignEnum
public HorizontalTextAlignEnum getOwnHorizontalTextAlign()
getOwnHorizontalTextAlign
in interface JRStyle
public VerticalTextAlignEnum getVerticalTextAlign()
JRStyle
getVerticalTextAlign
in interface JRStyle
VerticalTextAlignEnum
public VerticalTextAlignEnum getOwnVerticalTextAlign()
getOwnVerticalTextAlign
in interface JRStyle
public HorizontalImageAlignEnum getHorizontalImageAlign()
JRStyle
getHorizontalImageAlign
in interface JRStyle
HorizontalImageAlignEnum
public HorizontalImageAlignEnum getOwnHorizontalImageAlign()
getOwnHorizontalImageAlign
in interface JRStyle
public VerticalImageAlignEnum getVerticalImageAlign()
JRStyle
getVerticalImageAlign
in interface JRStyle
VerticalImageAlignEnum
public VerticalImageAlignEnum getOwnVerticalImageAlign()
getOwnVerticalImageAlign
in interface JRStyle
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
getLineBox
in interface JRStyle
public JRParagraph getParagraph()
getParagraph
in interface JRParagraphContainer
public RotationEnum getRotationValue()
JRStyle
getRotationValue
in interface JRStyle
RotationEnum
.public RotationEnum getOwnRotationValue()
JRStyle
getOwnRotationValue
in interface JRStyle
RotationEnum
.public void setRotation(RotationEnum rotationValue)
setRotation
in interface JRStyle
public String getMarkup()
JRStyle
public String getOwnMarkup()
getOwnMarkup
in interface JRStyle
public Boolean isBlankWhenNull()
isBlankWhenNull
in interface JRStyle
public Boolean isOwnBlankWhenNull()
isOwnBlankWhenNull
in interface JRStyle
public String getFontName()
getFontName
in interface JRStyle
public String getOwnFontName()
getOwnFontName
in interface JRStyle
public Boolean isOwnItalic()
isOwnItalic
in interface JRStyle
public Boolean isUnderline()
isUnderline
in interface JRStyle
public Boolean isOwnUnderline()
isOwnUnderline
in interface JRStyle
public Boolean isStrikeThrough()
isStrikeThrough
in interface JRStyle
public Boolean isOwnStrikeThrough()
isOwnStrikeThrough
in interface JRStyle
public Float getFontsize()
getFontsize
in interface JRStyle
public Float getOwnFontsize()
getOwnFontsize
in interface JRStyle
public String getPdfFontName()
getPdfFontName
in interface JRStyle
public String getOwnPdfFontName()
getOwnPdfFontName
in interface JRStyle
public String getPdfEncoding()
getPdfEncoding
in interface JRStyle
public String getOwnPdfEncoding()
getOwnPdfEncoding
in interface JRStyle
public Boolean isPdfEmbedded()
isPdfEmbedded
in interface JRStyle
public Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded
in interface JRStyle
public String getPattern()
JRStyle
getPattern
in interface JRStyle
public String getOwnPattern()
getOwnPattern
in interface JRStyle
public ModeEnum getModeValue()
JRStyle
getModeValue
in interface JRStyle
public ModeEnum getOwnModeValue()
getOwnModeValue
in interface JRStyle
public void setForecolor(Color forecolor)
setForecolor
in interface JRStyle
public void setBackcolor(Color backcolor)
setBackcolor
in interface JRStyle
public void setRadius(int radius)
setRadius(Integer)
.public void setScaleImage(ScaleImageEnum scaleImageValue)
setScaleImage
in interface JRStyle
public void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign)
setHorizontalImageAlign
in interface JRStyle
public void setVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign)
setVerticalImageAlign
in interface JRStyle
public void setHorizontalTextAlign(HorizontalTextAlignEnum horizontalTextAlign)
setHorizontalTextAlign
in interface JRStyle
public void setVerticalTextAlign(VerticalTextAlignEnum verticalTextAlign)
setVerticalTextAlign
in interface JRStyle
public void setFontName(String fontName)
setFontName
in interface JRStyle
public void setBold(boolean bold)
setBold(Boolean)
.public void setItalic(boolean italic)
setItalic(Boolean)
.public void setPdfEmbedded(boolean pdfEmbedded)
setPdfEmbedded(Boolean)
.setPdfEmbedded
in interface JRStyle
public void setPdfEmbedded(Boolean pdfEmbedded)
setPdfEmbedded
in interface JRStyle
public void setStrikeThrough(boolean strikeThrough)
setStrikeThrough(Boolean)
.setStrikeThrough
in interface JRStyle
public void setStrikeThrough(Boolean strikeThrough)
setStrikeThrough
in interface JRStyle
public void setBlankWhenNull(boolean isBlankWhenNull)
setBlankWhenNull(Boolean)
.setBlankWhenNull
in interface JRStyle
public void setBlankWhenNull(Boolean isBlankWhenNull)
setBlankWhenNull
in interface JRStyle
public void setUnderline(boolean underline)
setUnderline(Boolean)
.setUnderline
in interface JRStyle
public void setUnderline(Boolean underline)
setUnderline
in interface JRStyle
public void setPattern(String pattern)
setPattern
in interface JRStyle
public void setPdfEncoding(String pdfEncoding)
setPdfEncoding
in interface JRStyle
public void setPdfFontName(String pdfFontName)
setPdfFontName
in interface JRStyle
public void setFontSize(Float fontSize)
setFontSize
in interface JRStyle
public JRConditionalStyle[] getConditionalStyles()
getConditionalStyles
in interface JRStyle
public String getStyleNameReference()
JRStyleContainer
templates
and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference
in interface JRStyleContainer
public Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
public Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
getDefaultLineColor
in interface JRPenContainer
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public Object clone()
clone
in interface JRCloneable
clone
in class Object
public int getHashCode()
Deduplicable
Deduplicable.isIdentical(Object)
,
i.e. if two objects are identical they should have the same hash code.getHashCode
in interface Deduplicable
protected void addStyleHash(ObjectUtils.HashCode hash)
public boolean isIdentical(Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedprotected boolean identicalStyle(JRBaseStyle style)
Copyright © 2021 TIBCO Software Inc.. All rights reserved.