|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBaseStyle
public class JRBaseStyle
Field Summary | |
---|---|
protected java.awt.Color |
backcolor
|
protected JRConditionalStyle[] |
conditionalStyles
|
protected JRDefaultStyleProvider |
defaultStyleProvider
|
protected FillEnum |
fillValue
|
protected java.lang.String |
fontName
|
protected java.lang.Integer |
fontSize
|
protected java.awt.Color |
forecolor
|
protected HorizontalAlignEnum |
horizontalAlignmentValue
|
protected java.lang.Boolean |
isBlankWhenNull
|
protected java.lang.Boolean |
isBold
|
protected boolean |
isDefault
|
protected java.lang.Boolean |
isItalic
|
protected java.lang.Boolean |
isPdfEmbedded
|
protected java.lang.Boolean |
isStrikeThrough
|
protected java.lang.Boolean |
isUnderline
|
protected JRLineBox |
lineBox
|
protected JRPen |
linePen
|
protected java.lang.String |
markup
|
protected ModeEnum |
modeValue
|
protected java.lang.String |
name
|
protected JRParagraph |
paragraph
|
protected JRStyle |
parentStyle
|
protected java.lang.String |
parentStyleNameReference
|
protected java.lang.String |
pattern
|
protected java.lang.String |
pdfEncoding
|
protected java.lang.String |
pdfFontName
|
protected java.lang.Byte |
positionType
|
static java.lang.String |
PROPERTY_BACKCOLOR
|
static java.lang.String |
PROPERTY_BLANK_WHEN_NULL
|
static java.lang.String |
PROPERTY_BOLD
|
static java.lang.String |
PROPERTY_FILL
|
static java.lang.String |
PROPERTY_FONT_NAME
|
static java.lang.String |
PROPERTY_FONT_SIZE
|
static java.lang.String |
PROPERTY_FORECOLOR
|
static java.lang.String |
PROPERTY_HORIZONTAL_ALIGNMENT
|
static java.lang.String |
PROPERTY_ITALIC
|
static java.lang.String |
PROPERTY_LINE_SPACING
Deprecated. Replaced by JRBaseParagraph.PROPERTY_LINE_SPACING |
static java.lang.String |
PROPERTY_MARKUP
|
static java.lang.String |
PROPERTY_MODE
|
static java.lang.String |
PROPERTY_PATTERN
|
static java.lang.String |
PROPERTY_PDF_EMBEDDED
|
static java.lang.String |
PROPERTY_PDF_ENCODING
|
static java.lang.String |
PROPERTY_PDF_FONT_NAME
|
static java.lang.String |
PROPERTY_RADIUS
|
static java.lang.String |
PROPERTY_ROTATION
|
static java.lang.String |
PROPERTY_SCALE_IMAGE
|
static java.lang.String |
PROPERTY_STRIKE_THROUGH
|
static java.lang.String |
PROPERTY_UNDERLINE
|
static java.lang.String |
PROPERTY_VERTICAL_ALIGNMENT
|
protected java.lang.Integer |
radius
|
protected RotationEnum |
rotationValue
|
protected ScaleImageEnum |
scaleImageValue
|
protected java.lang.Byte |
stretchType
|
protected VerticalAlignEnum |
verticalAlignmentValue
|
Fields inherited from interface net.sf.jasperreports.engine.JRStyle |
---|
PROPERTY_EVALUATION_TIME_ENABLED |
Constructor Summary | |
---|---|
JRBaseStyle()
|
|
JRBaseStyle(JRStyle style,
JRAbstractObjectFactory factory)
|
|
JRBaseStyle(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
addStyleHash(ObjectUtils.HashCode hash)
|
protected void |
checkCircularParent()
|
java.lang.Object |
clone()
|
java.awt.Color |
getBackcolor()
|
JRConditionalStyle[] |
getConditionalStyles()
|
java.awt.Color |
getDefaultLineColor()
|
java.lang.Float |
getDefaultLineWidth()
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance. |
FillEnum |
getFillValue()
Indicates the fill type used for this element. |
java.lang.String |
getFontName()
|
java.lang.Integer |
getFontSize()
|
java.awt.Color |
getForecolor()
|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map. |
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the horizontal alignment of the element. |
JRLineBox |
getLineBox()
|
JRPen |
getLinePen()
|
LineSpacingEnum |
getLineSpacingValue()
Deprecated. Replaced by JRParagraph.getLineSpacing() . |
java.lang.String |
getMarkup()
Returns the markup language used to format the text. |
ModeEnum |
getModeValue()
Returns the element transparency mode. |
java.lang.String |
getName()
Gets the style unique name. |
java.awt.Color |
getOwnBackcolor()
|
FillEnum |
getOwnFillValue()
|
java.lang.String |
getOwnFontName()
|
java.lang.Integer |
getOwnFontSize()
|
java.awt.Color |
getOwnForecolor()
|
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue()
|
LineSpacingEnum |
getOwnLineSpacingValue()
Deprecated. Replaced by JRParagraph.getOwnLineSpacing() . |
java.lang.String |
getOwnMarkup()
|
ModeEnum |
getOwnModeValue()
|
java.lang.String |
getOwnPattern()
|
java.lang.String |
getOwnPdfEncoding()
|
java.lang.String |
getOwnPdfFontName()
|
java.lang.Integer |
getOwnRadius()
|
RotationEnum |
getOwnRotationValue()
Gets the text own rotation. |
ScaleImageEnum |
getOwnScaleImageValue()
Gets the image own scale type. |
VerticalAlignEnum |
getOwnVerticalAlignmentValue()
|
JRParagraph |
getParagraph()
|
java.lang.String |
getPattern()
Gets the pattern used for this text field. |
java.lang.String |
getPdfEncoding()
|
java.lang.String |
getPdfFontName()
|
java.lang.Integer |
getRadius()
Indicates the corner radius for rectangles with round corners. |
RotationEnum |
getRotationValue()
Gets the text rotation. |
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type. |
JRStyle |
getStyle()
Returns this object's style. |
java.lang.String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object. |
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the vertical alignment of the element. |
protected boolean |
identicalStyle(JRBaseStyle style)
|
java.lang.Boolean |
isBlankWhenNull()
|
java.lang.Boolean |
isBold()
|
boolean |
isDefault()
Gets a flag that specifies if this is the default report style. |
boolean |
isIdentical(java.lang.Object object)
Determines if this instance is identical to another object. |
java.lang.Boolean |
isItalic()
|
java.lang.Boolean |
isOwnBlankWhenNull()
|
java.lang.Boolean |
isOwnBold()
|
java.lang.Boolean |
isOwnItalic()
|
java.lang.Boolean |
isOwnPdfEmbedded()
|
java.lang.Boolean |
isOwnStrikeThrough()
|
java.lang.Boolean |
isOwnUnderline()
|
java.lang.Boolean |
isPdfEmbedded()
|
java.lang.Boolean |
isStrikeThrough()
|
java.lang.Boolean |
isUnderline()
|
void |
rename(java.lang.String newName)
Changes the name of this style. |
void |
setBackcolor(java.awt.Color backcolor)
|
void |
setBlankWhenNull(boolean isBlankWhenNull)
|
void |
setBlankWhenNull(java.lang.Boolean isBlankWhenNull)
|
void |
setBold(boolean bold)
|
void |
setBold(java.lang.Boolean bold)
|
void |
setFill(FillEnum fillValue)
|
void |
setFontName(java.lang.String fontName)
|
void |
setFontSize(int fontSize)
|
void |
setFontSize(java.lang.Integer fontSize)
|
void |
setForecolor(java.awt.Color forecolor)
|
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
|
void |
setItalic(boolean italic)
|
void |
setItalic(java.lang.Boolean italic)
|
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated. Replaced by JRParagraph.setLineSpacing(LineSpacingEnum) . |
void |
setMarkup(java.lang.String markup)
|
void |
setMode(ModeEnum modeValue)
|
protected void |
setParentStyle(JRStyle parentStyle)
|
void |
setPattern(java.lang.String pattern)
|
void |
setPdfEmbedded(boolean pdfEmbedded)
|
void |
setPdfEmbedded(java.lang.Boolean pdfEmbedded)
|
void |
setPdfEncoding(java.lang.String pdfEncoding)
|
void |
setPdfFontName(java.lang.String pdfFontName)
|
void |
setRadius(int radius)
|
void |
setRadius(java.lang.Integer radius)
|
void |
setRotation(RotationEnum rotationValue)
|
void |
setScaleImage(ScaleImageEnum scaleImageValue)
|
void |
setStrikeThrough(boolean strikeThrough)
|
void |
setStrikeThrough(java.lang.Boolean strikeThrough)
|
void |
setUnderline(boolean underline)
|
void |
setUnderline(java.lang.Boolean underline)
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_BACKCOLOR
public static final java.lang.String PROPERTY_BLANK_WHEN_NULL
public static final java.lang.String PROPERTY_BOLD
public static final java.lang.String PROPERTY_FILL
public static final java.lang.String PROPERTY_FONT_NAME
public static final java.lang.String PROPERTY_FONT_SIZE
public static final java.lang.String PROPERTY_FORECOLOR
public static final java.lang.String PROPERTY_HORIZONTAL_ALIGNMENT
public static final java.lang.String PROPERTY_ITALIC
public static final java.lang.String PROPERTY_LINE_SPACING
JRBaseParagraph.PROPERTY_LINE_SPACING
public static final java.lang.String PROPERTY_MODE
public static final java.lang.String PROPERTY_PATTERN
public static final java.lang.String PROPERTY_PDF_EMBEDDED
public static final java.lang.String PROPERTY_PDF_ENCODING
public static final java.lang.String PROPERTY_PDF_FONT_NAME
public static final java.lang.String PROPERTY_RADIUS
public static final java.lang.String PROPERTY_ROTATION
public static final java.lang.String PROPERTY_SCALE_IMAGE
public static final java.lang.String PROPERTY_STRIKE_THROUGH
public static final java.lang.String PROPERTY_MARKUP
public static final java.lang.String PROPERTY_UNDERLINE
public static final java.lang.String PROPERTY_VERTICAL_ALIGNMENT
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
protected java.lang.String parentStyleNameReference
protected java.lang.String name
protected boolean isDefault
protected java.lang.Byte positionType
protected java.lang.Byte stretchType
protected ModeEnum modeValue
protected java.awt.Color forecolor
protected java.awt.Color backcolor
protected JRPen linePen
protected FillEnum fillValue
protected java.lang.Integer radius
protected ScaleImageEnum scaleImageValue
protected HorizontalAlignEnum horizontalAlignmentValue
protected VerticalAlignEnum verticalAlignmentValue
protected JRLineBox lineBox
protected JRParagraph paragraph
protected java.lang.String fontName
protected java.lang.Boolean isBold
protected java.lang.Boolean isItalic
protected java.lang.Boolean isUnderline
protected java.lang.Boolean isStrikeThrough
protected java.lang.Integer fontSize
protected java.lang.String pdfFontName
protected java.lang.String pdfEncoding
protected java.lang.Boolean isPdfEmbedded
protected RotationEnum rotationValue
protected java.lang.String markup
protected java.lang.String pattern
protected java.lang.Boolean isBlankWhenNull
protected JRConditionalStyle[] conditionalStyles
Constructor Detail |
---|
public JRBaseStyle()
public JRBaseStyle(java.lang.String name)
public JRBaseStyle(JRStyle style, JRAbstractObjectFactory factory)
Method Detail |
---|
protected void setParentStyle(JRStyle parentStyle)
protected void checkCircularParent()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public java.lang.String getName()
JRStyle
getName
in interface JRStyle
public void rename(java.lang.String newName)
newName
- the new namepublic boolean isDefault()
JRStyle
isDefault
in interface JRStyle
public java.awt.Color getForecolor()
getForecolor
in interface JRStyle
public java.awt.Color getOwnForecolor()
getOwnForecolor
in interface JRStyle
public java.awt.Color getBackcolor()
getBackcolor
in interface JRStyle
public java.awt.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 java.lang.Integer getRadius()
JRStyle
getRadius
in interface JRStyle
public java.lang.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 HorizontalAlignEnum getHorizontalAlignmentValue()
JRStyle
getHorizontalAlignmentValue
in interface JRStyle
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue
in interface JRStyle
public VerticalAlignEnum getVerticalAlignmentValue()
JRStyle
getVerticalAlignmentValue
in interface JRStyle
JRAlignment
public VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue
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 LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing()
.
getLineSpacingValue
in interface JRStyle
public LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing()
.
getOwnLineSpacingValue
in interface JRStyle
public java.lang.String getMarkup()
JRStyle
getMarkup
in interface JRStyle
public java.lang.String getOwnMarkup()
getOwnMarkup
in interface JRStyle
public java.lang.Boolean isBlankWhenNull()
isBlankWhenNull
in interface JRStyle
public java.lang.Boolean isOwnBlankWhenNull()
isOwnBlankWhenNull
in interface JRStyle
public java.lang.String getFontName()
getFontName
in interface JRStyle
public java.lang.String getOwnFontName()
getOwnFontName
in interface JRStyle
public java.lang.Boolean isBold()
isBold
in interface JRStyle
public java.lang.Boolean isOwnBold()
isOwnBold
in interface JRStyle
public java.lang.Boolean isItalic()
isItalic
in interface JRStyle
public java.lang.Boolean isOwnItalic()
isOwnItalic
in interface JRStyle
public java.lang.Boolean isUnderline()
isUnderline
in interface JRStyle
public java.lang.Boolean isOwnUnderline()
isOwnUnderline
in interface JRStyle
public java.lang.Boolean isStrikeThrough()
isStrikeThrough
in interface JRStyle
public java.lang.Boolean isOwnStrikeThrough()
isOwnStrikeThrough
in interface JRStyle
public java.lang.Integer getFontSize()
getFontSize
in interface JRStyle
public java.lang.Integer getOwnFontSize()
getOwnFontSize
in interface JRStyle
public java.lang.String getPdfFontName()
getPdfFontName
in interface JRStyle
public java.lang.String getOwnPdfFontName()
getOwnPdfFontName
in interface JRStyle
public java.lang.String getPdfEncoding()
getPdfEncoding
in interface JRStyle
public java.lang.String getOwnPdfEncoding()
getOwnPdfEncoding
in interface JRStyle
public java.lang.Boolean isPdfEmbedded()
isPdfEmbedded
in interface JRStyle
public java.lang.Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded
in interface JRStyle
public java.lang.String getPattern()
JRStyle
getPattern
in interface JRStyle
public java.lang.String getOwnPattern()
getOwnPattern
in interface JRStyle
public ModeEnum getModeValue()
JRStyle
getModeValue
in interface JRStyle
public ModeEnum getOwnModeValue()
getOwnModeValue
in interface JRStyle
public void setForecolor(java.awt.Color forecolor)
setForecolor
in interface JRStyle
public void setBackcolor(java.awt.Color backcolor)
setBackcolor
in interface JRStyle
public void setMode(ModeEnum modeValue)
setMode
in interface JRStyle
public void setFill(FillEnum fillValue)
setFill
in interface JRStyle
public void setRadius(int radius)
setRadius
in interface JRStyle
public void setRadius(java.lang.Integer radius)
setRadius
in interface JRStyle
public void setScaleImage(ScaleImageEnum scaleImageValue)
setScaleImage
in interface JRStyle
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
setHorizontalAlignment
in interface JRStyle
public void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
setVerticalAlignment
in interface JRStyle
public void setFontName(java.lang.String fontName)
setFontName
in interface JRStyle
public void setBold(boolean bold)
setBold
in interface JRStyle
public void setBold(java.lang.Boolean bold)
setBold
in interface JRStyle
public void setItalic(boolean italic)
setItalic
in interface JRStyle
public void setItalic(java.lang.Boolean italic)
setItalic
in interface JRStyle
public void setPdfEmbedded(boolean pdfEmbedded)
setPdfEmbedded
in interface JRStyle
public void setPdfEmbedded(java.lang.Boolean pdfEmbedded)
setPdfEmbedded
in interface JRStyle
public void setStrikeThrough(boolean strikeThrough)
setStrikeThrough
in interface JRStyle
public void setStrikeThrough(java.lang.Boolean strikeThrough)
setStrikeThrough
in interface JRStyle
public void setMarkup(java.lang.String markup)
setMarkup
in interface JRStyle
public void setBlankWhenNull(boolean isBlankWhenNull)
setBlankWhenNull
in interface JRStyle
public void setBlankWhenNull(java.lang.Boolean isBlankWhenNull)
setBlankWhenNull
in interface JRStyle
public void setUnderline(boolean underline)
setUnderline
in interface JRStyle
public void setUnderline(java.lang.Boolean underline)
setUnderline
in interface JRStyle
public void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum)
.
setLineSpacing
in interface JRStyle
public void setPattern(java.lang.String pattern)
setPattern
in interface JRStyle
public void setPdfEncoding(java.lang.String pdfEncoding)
setPdfEncoding
in interface JRStyle
public void setPdfFontName(java.lang.String pdfFontName)
setPdfFontName
in interface JRStyle
public void setFontSize(int fontSize)
setFontSize
in interface JRStyle
public void setFontSize(java.lang.Integer fontSize)
setFontSize
in interface JRStyle
public JRConditionalStyle[] getConditionalStyles()
getConditionalStyles
in interface JRStyle
public java.lang.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 java.lang.Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
public java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
getDefaultLineColor
in interface JRPenContainer
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.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(java.lang.Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instance
true
if the two objects are identical and can be deduplicatedprotected boolean identicalStyle(JRBaseStyle style)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |