|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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_SPACINGpublic 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 JRStyleContainerpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerpublic java.lang.String getName()
JRStyle
getName in interface JRStylepublic void rename(java.lang.String newName)
newName - the new namepublic boolean isDefault()
JRStyle
isDefault in interface JRStylepublic java.awt.Color getForecolor()
getForecolor in interface JRStylepublic java.awt.Color getOwnForecolor()
getOwnForecolor in interface JRStylepublic java.awt.Color getBackcolor()
getBackcolor in interface JRStylepublic java.awt.Color getOwnBackcolor()
getOwnBackcolor in interface JRStylepublic JRPen getLinePen()
getLinePen in interface JRStylepublic FillEnum getFillValue()
JRStyle
getFillValue in interface JRStyleFillEnum.public FillEnum getOwnFillValue()
getOwnFillValue in interface JRStylepublic java.lang.Integer getRadius()
JRStyle
getRadius in interface JRStylepublic java.lang.Integer getOwnRadius()
getOwnRadius in interface JRStylepublic ScaleImageEnum getScaleImageValue()
JRStyle
getScaleImageValue in interface JRStyleScaleImageEnumpublic ScaleImageEnum getOwnScaleImageValue()
JRStyle
getOwnScaleImageValue in interface JRStyleScaleImageEnumpublic HorizontalAlignEnum getHorizontalAlignmentValue()
JRStyle
getHorizontalAlignmentValue in interface JRStyleHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue in interface JRStylepublic VerticalAlignEnum getVerticalAlignmentValue()
JRStyle
getVerticalAlignmentValue in interface JRStyleJRAlignmentpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue in interface JRStylepublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainergetLineBox in interface JRStylepublic JRParagraph getParagraph()
getParagraph in interface JRParagraphContainerpublic RotationEnum getRotationValue()
JRStyle
getRotationValue in interface JRStyleRotationEnum.public RotationEnum getOwnRotationValue()
JRStyle
getOwnRotationValue in interface JRStyleRotationEnum.public void setRotation(RotationEnum rotationValue)
setRotation in interface JRStylepublic LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing().
getLineSpacingValue in interface JRStylepublic LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing().
getOwnLineSpacingValue in interface JRStylepublic java.lang.String getMarkup()
JRStyle
getMarkup in interface JRStylepublic java.lang.String getOwnMarkup()
getOwnMarkup in interface JRStylepublic java.lang.Boolean isBlankWhenNull()
isBlankWhenNull in interface JRStylepublic java.lang.Boolean isOwnBlankWhenNull()
isOwnBlankWhenNull in interface JRStylepublic java.lang.String getFontName()
getFontName in interface JRStylepublic java.lang.String getOwnFontName()
getOwnFontName in interface JRStylepublic java.lang.Boolean isBold()
isBold in interface JRStylepublic java.lang.Boolean isOwnBold()
isOwnBold in interface JRStylepublic java.lang.Boolean isItalic()
isItalic in interface JRStylepublic java.lang.Boolean isOwnItalic()
isOwnItalic in interface JRStylepublic java.lang.Boolean isUnderline()
isUnderline in interface JRStylepublic java.lang.Boolean isOwnUnderline()
isOwnUnderline in interface JRStylepublic java.lang.Boolean isStrikeThrough()
isStrikeThrough in interface JRStylepublic java.lang.Boolean isOwnStrikeThrough()
isOwnStrikeThrough in interface JRStylepublic java.lang.Integer getFontSize()
getFontSize in interface JRStylepublic java.lang.Integer getOwnFontSize()
getOwnFontSize in interface JRStylepublic java.lang.String getPdfFontName()
getPdfFontName in interface JRStylepublic java.lang.String getOwnPdfFontName()
getOwnPdfFontName in interface JRStylepublic java.lang.String getPdfEncoding()
getPdfEncoding in interface JRStylepublic java.lang.String getOwnPdfEncoding()
getOwnPdfEncoding in interface JRStylepublic java.lang.Boolean isPdfEmbedded()
isPdfEmbedded in interface JRStylepublic java.lang.Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded in interface JRStylepublic java.lang.String getPattern()
JRStyle
getPattern in interface JRStylepublic java.lang.String getOwnPattern()
getOwnPattern in interface JRStylepublic ModeEnum getModeValue()
JRStyle
getModeValue in interface JRStylepublic ModeEnum getOwnModeValue()
getOwnModeValue in interface JRStylepublic void setForecolor(java.awt.Color forecolor)
setForecolor in interface JRStylepublic void setBackcolor(java.awt.Color backcolor)
setBackcolor in interface JRStylepublic void setMode(ModeEnum modeValue)
setMode in interface JRStylepublic void setFill(FillEnum fillValue)
setFill in interface JRStylepublic void setRadius(int radius)
setRadius in interface JRStylepublic void setRadius(java.lang.Integer radius)
setRadius in interface JRStylepublic void setScaleImage(ScaleImageEnum scaleImageValue)
setScaleImage in interface JRStylepublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
setHorizontalAlignment in interface JRStylepublic void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
setVerticalAlignment in interface JRStylepublic void setFontName(java.lang.String fontName)
setFontName in interface JRStylepublic void setBold(boolean bold)
setBold in interface JRStylepublic void setBold(java.lang.Boolean bold)
setBold in interface JRStylepublic void setItalic(boolean italic)
setItalic in interface JRStylepublic void setItalic(java.lang.Boolean italic)
setItalic in interface JRStylepublic void setPdfEmbedded(boolean pdfEmbedded)
setPdfEmbedded in interface JRStylepublic void setPdfEmbedded(java.lang.Boolean pdfEmbedded)
setPdfEmbedded in interface JRStylepublic void setStrikeThrough(boolean strikeThrough)
setStrikeThrough in interface JRStylepublic void setStrikeThrough(java.lang.Boolean strikeThrough)
setStrikeThrough in interface JRStylepublic void setMarkup(java.lang.String markup)
setMarkup in interface JRStylepublic void setBlankWhenNull(boolean isBlankWhenNull)
setBlankWhenNull in interface JRStylepublic void setBlankWhenNull(java.lang.Boolean isBlankWhenNull)
setBlankWhenNull in interface JRStylepublic void setUnderline(boolean underline)
setUnderline in interface JRStylepublic void setUnderline(java.lang.Boolean underline)
setUnderline in interface JRStylepublic void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum).
setLineSpacing in interface JRStylepublic void setPattern(java.lang.String pattern)
setPattern in interface JRStylepublic void setPdfEncoding(java.lang.String pdfEncoding)
setPdfEncoding in interface JRStylepublic void setPdfFontName(java.lang.String pdfFontName)
setPdfFontName in interface JRStylepublic void setFontSize(int fontSize)
setFontSize in interface JRStylepublic void setFontSize(java.lang.Integer fontSize)
setFontSize in interface JRStylepublic JRConditionalStyle[] getConditionalStyles()
getConditionalStyles in interface JRStylepublic java.lang.String getStyleNameReference()
JRStyleContainertemplates 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 JRStyleContainerpublic java.lang.Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainerpublic java.awt.Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainergetDefaultLineColor in interface JRPenContainerpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport in interface JRChangeEventsSupportpublic java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Objectpublic int getHashCode()
DeduplicableDeduplicable.isIdentical(Object),
i.e. if two objects are identical they should have the same hash code.
getHashCode in interface Deduplicableprotected void addStyleHash(ObjectUtils.HashCode hash)
public boolean isIdentical(java.lang.Object object)
Deduplicable
isIdentical in interface Deduplicableobject - 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 | |||||||||