public abstract class JRBaseTextElement extends JRBaseElement 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 |
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 |
JRBaseTextElement(JRTextElement textElement,
JRBaseObjectFactory factory)
Initializes properties that are specific to text elements.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Color |
getDefaultLineColor() |
JRFont |
getFont()
Deprecated.
|
String |
getFontName() |
float |
getFontsize() |
HorizontalTextAlignEnum |
getHorizontalTextAlign()
Gets the text horizontal alignment.
|
JRLineBox |
getLineBox() |
String |
getMarkup()
Returns the text markup.
|
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
String |
getOwnFontName() |
Float |
getOwnFontsize() |
HorizontalTextAlignEnum |
getOwnHorizontalTextAlign() |
String |
getOwnMarkup() |
String |
getOwnPdfEncoding() |
String |
getOwnPdfFontName() |
RotationEnum |
getOwnRotationValue()
Gets the text own rotation.
|
VerticalTextAlignEnum |
getOwnVerticalTextAlign() |
JRParagraph |
getParagraph() |
String |
getPdfEncoding() |
String |
getPdfFontName() |
RotationEnum |
getRotationValue()
Gets the text rotation.
|
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)
Deprecated.
Replaced by
setBold(Boolean) . |
void |
setBold(Boolean isBold)
Alternative setBold method which allows also to reset
the "own" isBold property.
|
void |
setFontName(String fontName) |
void |
setFontSize(Float fontSize)
Method which allows also to reset the "own" size property.
|
void |
setHorizontalTextAlign(HorizontalTextAlignEnum horizontalTextAlign)
Sets the text horizontal alignment.
|
void |
setItalic(boolean isItalic)
Deprecated.
Replaced by
setItalic(Boolean) . |
void |
setItalic(Boolean isItalic)
Alternative setItalic method which allows also to reset
the "own" isItalic property.
|
void |
setMarkup(String markup) |
void |
setPdfEmbedded(boolean isPdfEmbedded)
Deprecated.
Replaced by
setPdfEmbedded(Boolean) . |
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)
Deprecated.
Replaced by
setStrikeThrough(Boolean) . |
void |
setStrikeThrough(Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset
the "own" isStrikeThrough property.
|
void |
setUnderline(boolean isUnderline)
Deprecated.
Replaced by
setUnderline(Boolean) . |
void |
setUnderline(Boolean isUnderline)
Alternative setUnderline method which allows also to reset
the "own" isUnderline property.
|
void |
setVerticalTextAlign(VerticalTextAlignEnum verticalTextAlign)
Gets the text vertical alignment.
|
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, 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 JRBaseTextElement(JRTextElement textElement, JRBaseObjectFactory factory)
textElement
- an element whose properties are copied to this element. Usually it is a
JRDesignTextElement
that must be transformed into an
JRBaseTextElement at compile time.factory
- a factory used in the compile processpublic 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 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 ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
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)
setBold(Boolean)
.public void setBold(Boolean isBold)
public Boolean isOwnItalic()
isOwnItalic
in interface JRFont
public void setItalic(boolean isItalic)
setItalic(Boolean)
.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(Boolean)
.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(Boolean)
.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 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(Boolean)
.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 JRBaseElement
Copyright © 2021 TIBCO Software Inc.. All rights reserved.