public abstract class JRDesignTextElement extends JRDesignElement implements JRTextElement
Modifier and Type | Field and Description |
---|---|
protected String |
fontName |
protected Float |
fontsize |
protected HorizontalTextAlignEnum |
horizontalTextAlign |
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 VerticalTextAlignEnum |
verticalTextAlign |
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
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, uuid, width, x, y
PROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIX
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAME
MARKUP_HTML, MARKUP_NONE, MARKUP_RTF, MARKUP_STYLED_TEXT
Modifier | Constructor and Description |
---|---|
protected |
JRDesignTextElement(JRDefaultStyleProvider defaultStyleProvider)
Creates a new text element.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Color |
getDefaultLineColor() |
JRFont |
getFont()
Deprecated.
|
String |
getFontName() |
float |
getFontsize() |
int |
getFontSize()
Deprecated.
Replaced by
getFontsize() . |
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Deprecated.
Replaced by
getHorizontalTextAlign() . |
HorizontalTextAlignEnum |
getHorizontalTextAlign()
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() |
Float |
getOwnFontsize() |
Integer |
getOwnFontSize()
Deprecated.
Replaced by
getOwnFontsize() . |
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue()
Deprecated.
Replaced by
getOwnHorizontalTextAlign() . |
HorizontalTextAlignEnum |
getOwnHorizontalTextAlign() |
LineSpacingEnum |
getOwnLineSpacingValue()
Deprecated.
Replaced by
JRParagraph.getOwnLineSpacing() . |
String |
getOwnMarkup() |
String |
getOwnPdfEncoding() |
String |
getOwnPdfFontName() |
RotationEnum |
getOwnRotationValue()
Gets the text own rotation.
|
VerticalAlignEnum |
getOwnVerticalAlignmentValue()
Deprecated.
Replaced by
getOwnVerticalTextAlign() . |
VerticalTextAlignEnum |
getOwnVerticalTextAlign() |
JRParagraph |
getParagraph() |
String |
getPdfEncoding() |
String |
getPdfFontName() |
RotationEnum |
getRotationValue()
Gets the text rotation.
|
VerticalAlignEnum |
getVerticalAlignmentValue()
Deprecated.
Replaced by
getVerticalTextAlign() . |
VerticalTextAlignEnum |
getVerticalTextAlign()
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(Float fontSize)
Method which allows also to reset the "own" size property.
|
void |
setFontSize(int fontSize)
Deprecated.
Replaced by
setFontSize(Float) . |
void |
setFontSize(Integer fontSize)
Deprecated.
Replaced by
setFontSize(Float) . |
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Deprecated.
Replaced by
setHorizontalTextAlign(HorizontalTextAlignEnum) . |
void |
setHorizontalTextAlign(HorizontalTextAlignEnum horizontalTextAlign)
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)
Deprecated.
Replaced by
setVerticalTextAlign(VerticalTextAlignEnum) . |
void |
setVerticalTextAlign(VerticalTextAlignEnum verticalTextAlign)
Gets the text vertical alignment.
|
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setY
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
visit
getParentProperties, getPropertiesMap, hasProperties
getUUID
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
protected HorizontalTextAlignEnum horizontalTextAlign
protected VerticalTextAlignEnum verticalTextAlign
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 Float fontsize
protected String pdfFontName
protected String pdfEncoding
protected Boolean isPdfEmbedded
protected JRDesignTextElement(JRDefaultStyleProvider defaultStyleProvider)
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
public HorizontalAlignEnum getHorizontalAlignmentValue()
getHorizontalTextAlign()
.JRAlignment
getHorizontalAlignmentValue
in interface JRAlignment
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalTextAlign()
.getOwnHorizontalAlignmentValue
in interface JRAlignment
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
setHorizontalTextAlign(HorizontalTextAlignEnum)
.JRAlignment
setHorizontalAlignment
in interface JRAlignment
horizontalAlignmentValue
- a value representing one of the horizontal alignment constants in HorizontalAlignEnum
public VerticalAlignEnum getVerticalAlignmentValue()
getVerticalTextAlign()
.JRAlignment
getVerticalAlignmentValue
in interface JRAlignment
VerticalAlignEnum
public VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalTextAlign()
.getOwnVerticalAlignmentValue
in interface JRAlignment
public void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
setVerticalTextAlign(VerticalTextAlignEnum)
.JRAlignment
setVerticalAlignment
in interface JRAlignment
verticalAlignmentValue
- a value representing one of the vertical alignment constants in VerticalAlignEnum
public HorizontalTextAlignEnum getHorizontalTextAlign()
JRTextAlignment
getHorizontalTextAlign
in interface JRTextAlignment
HorizontalTextAlignEnum
public HorizontalTextAlignEnum getOwnHorizontalTextAlign()
getOwnHorizontalTextAlign
in interface JRTextAlignment
public void setHorizontalTextAlign(HorizontalTextAlignEnum horizontalTextAlign)
JRTextAlignment
setHorizontalTextAlign
in interface JRTextAlignment
horizontalTextAlign
- a value representing one of the horizontal text alignment constants in HorizontalTextAlignEnum
public VerticalTextAlignEnum getVerticalTextAlign()
JRTextAlignment
getVerticalTextAlign
in interface JRTextAlignment
VerticalTextAlignEnum
public VerticalTextAlignEnum getOwnVerticalTextAlign()
getOwnVerticalTextAlign
in interface JRTextAlignment
public void setVerticalTextAlign(VerticalTextAlignEnum verticalTextAlign)
JRTextAlignment
setVerticalTextAlign
in interface JRTextAlignment
verticalTextAlign
- a value representing one of the vertical text alignment constants in VerticalTextAlignEnum
public RotationEnum getRotationValue()
JRCommonText
getRotationValue
in interface JRCommonText
RotationEnum
public RotationEnum getOwnRotationValue()
JRCommonText
getOwnRotationValue
in interface JRCommonText
RotationEnum
public void setRotation(RotationEnum rotationValue)
JRCommonText
setRotation
in interface JRCommonText
rotationValue
- a value representing one of the text rotation constants in RotationEnum
public LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing()
.getLineSpacingValue
in interface JRCommonText
public LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing()
.getOwnLineSpacingValue
in interface JRCommonText
public void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum)
.setLineSpacing
in interface JRCommonText
public String getMarkup()
JRCommonText
getMarkup
in interface JRCommonText
public String getOwnMarkup()
getOwnMarkup
in interface JRCommonText
public void setMarkup(String markup)
setMarkup
in interface JRCommonText
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public JRParagraph getParagraph()
getParagraph
in interface JRParagraphContainer
public JRFont getFont()
public void setFont(JRFont font)
public String getFontName()
getFontName
in interface JRFont
public String getOwnFontName()
getOwnFontName
in interface JRFont
public void setFontName(String fontName)
setFontName
in interface JRFont
public void setBold(Boolean isBold)
public Boolean isOwnItalic()
isOwnItalic
in interface JRFont
public void setItalic(Boolean isItalic)
public boolean isUnderline()
isUnderline
in interface JRFont
public Boolean isOwnUnderline()
isOwnUnderline
in interface JRFont
public void setUnderline(boolean isUnderline)
setUnderline
in interface JRFont
public void setUnderline(Boolean isUnderline)
setUnderline
in interface JRFont
public boolean isStrikeThrough()
isStrikeThrough
in interface JRFont
public Boolean isOwnStrikeThrough()
isOwnStrikeThrough
in interface JRFont
public void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough
in interface JRFont
public void setStrikeThrough(Boolean isStrikeThrough)
setStrikeThrough
in interface JRFont
public float getFontsize()
getFontsize
in interface JRCommonText
getFontsize
in interface JRFont
public Float getOwnFontsize()
getOwnFontsize
in interface JRFont
public void setFontSize(Float fontSize)
setFontSize
in interface JRFont
public int getFontSize()
getFontsize()
.getFontSize
in interface JRCommonText
getFontSize
in interface JRFont
public Integer getOwnFontSize()
getOwnFontsize()
.getOwnFontSize
in interface JRFont
public void setFontSize(int fontSize)
setFontSize(Float)
.setFontSize
in interface JRFont
public void setFontSize(Integer fontSize)
setFontSize(Float)
.setFontSize
in interface JRFont
public String getPdfFontName()
getPdfFontName
in interface JRFont
public String getOwnPdfFontName()
getOwnPdfFontName
in interface JRFont
public void setPdfFontName(String pdfFontName)
setPdfFontName
in interface JRFont
public String getPdfEncoding()
getPdfEncoding
in interface JRFont
public String getOwnPdfEncoding()
getOwnPdfEncoding
in interface JRFont
public void setPdfEncoding(String pdfEncoding)
setPdfEncoding
in interface JRFont
public boolean isPdfEmbedded()
isPdfEmbedded
in interface JRFont
public Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded
in interface JRFont
public void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded
in interface JRFont
public void setPdfEmbedded(Boolean isPdfEmbedded)
setPdfEmbedded
in interface JRFont
public Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public Object clone()
clone
in interface JRCloneable
clone
in class JRDesignElement
Copyright © 2015. All rights reserved.