|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
net.sf.jasperreports.engine.design.JRDesignTextElement
public abstract class JRDesignTextElement
This class provides functionality common to design text elements. It provides implementation for the methods described in JRTextElement and setters for text element attributes that can only be modified at design time.
| Field Summary | |
|---|---|
protected String |
fontName
|
protected Integer |
fontSize
|
protected HorizontalAlignEnum |
horizontalAlignmentValue
|
protected Boolean |
isBold
|
protected Boolean |
isItalic
|
protected Boolean |
isPdfEmbedded
|
protected Boolean |
isStrikeThrough
|
protected Boolean |
isUnderline
|
protected JRLineBox |
lineBox
|
protected String |
markup
|
protected JRParagraph |
paragraph
|
protected String |
pdfEncoding
|
protected String |
pdfFontName
|
protected RotationEnum |
rotationValue
|
protected VerticalAlignEnum |
verticalAlignmentValue
|
| Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElement |
|---|
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_Y |
| Fields inherited from interface net.sf.jasperreports.engine.JRTextElement |
|---|
PROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIX |
| Fields inherited from interface net.sf.jasperreports.engine.JRFont |
|---|
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAME |
| Fields inherited from interface net.sf.jasperreports.engine.JRCommonText |
|---|
MARKUP_HTML, MARKUP_NONE, MARKUP_RTF, MARKUP_STYLED_TEXT |
| Constructor Summary | |
|---|---|
protected |
JRDesignTextElement(JRDefaultStyleProvider defaultStyleProvider)
Creates a new text element. |
| Method Summary | |
|---|---|
Object |
clone()
|
Color |
getDefaultLineColor()
|
JRFont |
getFont()
Deprecated. |
String |
getFontName()
|
int |
getFontSize()
|
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text horizontal alignment. |
JRLineBox |
getLineBox()
|
LineSpacingEnum |
getLineSpacingValue()
Deprecated. Replaced by JRParagraph.getLineSpacing(). |
String |
getMarkup()
Returns the text markup. |
ModeEnum |
getModeValue()
Returns the element transparency mode. |
String |
getOwnFontName()
|
Integer |
getOwnFontSize()
|
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue()
|
LineSpacingEnum |
getOwnLineSpacingValue()
Deprecated. Replaced by JRParagraph.getOwnLineSpacing(). |
String |
getOwnMarkup()
|
String |
getOwnPdfEncoding()
|
String |
getOwnPdfFontName()
|
RotationEnum |
getOwnRotationValue()
Gets the text own rotation. |
VerticalAlignEnum |
getOwnVerticalAlignmentValue()
|
JRParagraph |
getParagraph()
|
String |
getPdfEncoding()
|
String |
getPdfFontName()
|
RotationEnum |
getRotationValue()
Gets the text rotation. |
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the text vertical alignment. |
boolean |
isBold()
|
boolean |
isItalic()
|
Boolean |
isOwnBold()
|
Boolean |
isOwnItalic()
|
Boolean |
isOwnPdfEmbedded()
|
Boolean |
isOwnStrikeThrough()
|
Boolean |
isOwnUnderline()
|
boolean |
isPdfEmbedded()
|
boolean |
isStrikeThrough()
|
boolean |
isUnderline()
|
void |
setBold(boolean isBold)
|
void |
setBold(Boolean isBold)
Alternative setBold method which allows also to reset the "own" isBold property. |
void |
setFont(JRFont font)
Deprecated. |
void |
setFontName(String fontName)
|
void |
setFontSize(int fontSize)
|
void |
setFontSize(Integer fontSize)
Alternative setFontSize method which allows also to reset the "own" size property. |
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Sets the text horizontal alignment. |
void |
setItalic(boolean isItalic)
|
void |
setItalic(Boolean isItalic)
Alternative setItalic method which allows also to reset the "own" isItalic property. |
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated. Replaced by JRParagraph.setLineSpacing(LineSpacingEnum). |
void |
setMarkup(String markup)
|
void |
setPdfEmbedded(boolean isPdfEmbedded)
|
void |
setPdfEmbedded(Boolean isPdfEmbedded)
Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property. |
void |
setPdfEncoding(String pdfEncoding)
|
void |
setPdfFontName(String pdfFontName)
|
void |
setRotation(RotationEnum rotationValue)
Sets the text rotation. |
void |
setStrikeThrough(boolean isStrikeThrough)
|
void |
setStrikeThrough(Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property. |
void |
setUnderline(boolean isUnderline)
|
void |
setUnderline(Boolean isUnderline)
Alternative setUnderline method which allows also to reset the "own" isUnderline property. |
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
Gets the text vertical alignment. |
| Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElement |
|---|
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setY |
| 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.JRElement |
|---|
collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
| Methods inherited from interface net.sf.jasperreports.engine.JRChild |
|---|
clone |
| Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
|---|
visit |
| Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
|---|
getParentProperties, getPropertiesMap, hasProperties |
| Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
|---|
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
| Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable |
|---|
getUUID |
| Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
|---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
| Field Detail |
|---|
protected HorizontalAlignEnum horizontalAlignmentValue
protected VerticalAlignEnum verticalAlignmentValue
protected RotationEnum rotationValue
protected String markup
protected JRLineBox lineBox
protected JRParagraph paragraph
protected String fontName
protected Boolean isBold
protected Boolean isItalic
protected Boolean isUnderline
protected Boolean isStrikeThrough
protected Integer fontSize
protected String pdfFontName
protected String pdfEncoding
protected Boolean isPdfEmbedded
| Constructor Detail |
|---|
protected JRDesignTextElement(JRDefaultStyleProvider defaultStyleProvider)
| Method Detail |
|---|
public ModeEnum getModeValue()
JRCommonElement
getModeValue in interface JRCommonElementgetModeValue in class JRBaseElementpublic HorizontalAlignEnum getHorizontalAlignmentValue()
JRAlignment
getHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
JRAlignment
setHorizontalAlignment in interface JRAlignmenthorizontalAlignmentValue - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
JRAlignment
getVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
JRAlignment
setVerticalAlignment in interface JRAlignmentverticalAlignmentValue - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic RotationEnum getRotationValue()
JRCommonText
getRotationValue in interface JRCommonTextRotationEnumpublic RotationEnum getOwnRotationValue()
JRCommonText
getOwnRotationValue in interface JRCommonTextRotationEnumpublic void setRotation(RotationEnum rotationValue)
JRCommonText
setRotation in interface JRCommonTextrotationValue - a value representing one of the text rotation constants in RotationEnumpublic LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing().
getLineSpacingValue in interface JRCommonTextpublic LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing().
getOwnLineSpacingValue in interface JRCommonTextpublic void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum).
setLineSpacing in interface JRCommonTextpublic String getMarkup()
JRCommonText
getMarkup in interface JRCommonTextpublic String getOwnMarkup()
getOwnMarkup in interface JRCommonTextpublic void setMarkup(String markup)
setMarkup in interface JRCommonTextpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic JRParagraph getParagraph()
getParagraph in interface JRParagraphContainerpublic JRFont getFont()
public void setFont(JRFont font)
public String getFontName()
getFontName in interface JRFontpublic String getOwnFontName()
getOwnFontName in interface JRFontpublic void setFontName(String fontName)
setFontName in interface JRFontpublic boolean isBold()
isBold in interface JRFontpublic Boolean isOwnBold()
isOwnBold in interface JRFontpublic void setBold(boolean isBold)
setBold in interface JRFontpublic void setBold(Boolean isBold)
setBold in interface JRFontpublic boolean isItalic()
isItalic in interface JRFontpublic Boolean isOwnItalic()
isOwnItalic in interface JRFontpublic void setItalic(boolean isItalic)
setItalic in interface JRFontpublic void setItalic(Boolean isItalic)
setItalic in interface JRFontpublic boolean isUnderline()
isUnderline in interface JRFontpublic Boolean isOwnUnderline()
isOwnUnderline in interface JRFontpublic void setUnderline(boolean isUnderline)
setUnderline in interface JRFontpublic void setUnderline(Boolean isUnderline)
setUnderline in interface JRFontpublic boolean isStrikeThrough()
isStrikeThrough in interface JRFontpublic Boolean isOwnStrikeThrough()
isOwnStrikeThrough in interface JRFontpublic void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic void setStrikeThrough(Boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic int getFontSize()
getFontSize in interface JRCommonTextgetFontSize in interface JRFontpublic Integer getOwnFontSize()
getOwnFontSize in interface JRFontpublic void setFontSize(int fontSize)
setFontSize in interface JRFontpublic void setFontSize(Integer fontSize)
setFontSize in interface JRFontpublic String getPdfFontName()
getPdfFontName in interface JRFontpublic String getOwnPdfFontName()
getOwnPdfFontName in interface JRFontpublic void setPdfFontName(String pdfFontName)
setPdfFontName in interface JRFontpublic String getPdfEncoding()
getPdfEncoding in interface JRFontpublic String getOwnPdfEncoding()
getOwnPdfEncoding in interface JRFontpublic void setPdfEncoding(String pdfEncoding)
setPdfEncoding in interface JRFontpublic boolean isPdfEmbedded()
isPdfEmbedded in interface JRFontpublic Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded in interface JRFontpublic void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic void setPdfEmbedded(Boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic Object clone()
clone in interface JRCloneableclone in class JRBaseElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||