public interface JRTextElement extends JRElement, JRAlignment, JRBox, JRFont, JRCommonText
Modifier and Type | Field and Description |
---|---|
static byte |
LINE_SPACING_1_1_2
Deprecated.
Replaced by
LineSpacingEnum.ONE_AND_HALF . |
static byte |
LINE_SPACING_DOUBLE
Deprecated.
Replaced by
LineSpacingEnum.DOUBLE . |
static byte |
LINE_SPACING_SINGLE
Deprecated.
Replaced by
LineSpacingEnum.SINGLE . |
static java.lang.String |
PROPERTY_PRINT_KEEP_FULL_TEXT
Property used to determine whether the fill process must preserve the original text
for text elements that are not able to fit their entire contents.
|
static java.lang.String |
PROPERTY_SAVE_LINE_BREAKS
Boolean property that determines whether the positions where text line
break occurs are to be saved during report fill in oder to be used at
export time.
|
static java.lang.String |
PROPERTY_TRUNCATE_AT_CHAR
Boolean property that determines whether text elements are to be truncated
at the last character that fits.
|
static java.lang.String |
PROPERTY_TRUNCATE_SUFFIX
Property whose value is used as a suffix for the truncated text.
|
static byte |
ROTATION_LEFT
Deprecated.
Replaced by
RotationEnum.LEFT . |
static byte |
ROTATION_NONE
Deprecated.
Replaced by
RotationEnum.NONE . |
static byte |
ROTATION_RIGHT
Deprecated.
Replaced by
RotationEnum.RIGHT . |
static byte |
ROTATION_UPSIDE_DOWN
Deprecated.
Replaced by
RotationEnum.UPSIDE_DOWN . |
static byte |
TEXT_ALIGN_CENTER
Deprecated.
Replaced by
JRAlignment.HORIZONTAL_ALIGN_CENTER . |
static byte |
TEXT_ALIGN_JUSTIFIED
Deprecated.
Replaced by
JRAlignment.HORIZONTAL_ALIGN_JUSTIFIED . |
static byte |
TEXT_ALIGN_LEFT
Deprecated.
Replaced by
JRAlignment.HORIZONTAL_ALIGN_LEFT . |
static byte |
TEXT_ALIGN_RIGHT
Deprecated.
Replaced by
JRAlignment.HORIZONTAL_ALIGN_RIGHT . |
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_TOP
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 and Type | Method and Description |
---|---|
JRBox |
getBox()
Deprecated.
Replaced by
JRBoxContainer.getLineBox() |
JRFont |
getFont()
Deprecated.
|
byte |
getTextAlignment()
Deprecated.
Replaced by
JRAlignment.getHorizontalAlignment() . |
void |
setStyledText(boolean isStyledText)
Deprecated.
Replaced by
JRCommonText.setMarkup(String) . |
void |
setStyledText(java.lang.Boolean isStyledText)
Deprecated.
Replaced by
JRCommonText.setMarkup(String) . |
void |
setTextAlignment(byte horizontalAlignment)
Deprecated.
Replaced by
JRAlignment.setHorizontalAlignment(byte) . |
collectExpressions, getElementGroup, getKey, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setStretchType, setWidth, setX
visit
clone
getParentProperties, getPropertiesMap, hasProperties
getHorizontalAlignment, getHorizontalAlignmentValue, getOwnHorizontalAlignment, getOwnHorizontalAlignmentValue, getOwnVerticalAlignment, getOwnVerticalAlignmentValue, getVerticalAlignment, getVerticalAlignmentValue, setHorizontalAlignment, setHorizontalAlignment, setHorizontalAlignment, setVerticalAlignment, setVerticalAlignment, setVerticalAlignment
getBorder, getBorderColor, getBottomBorder, getBottomBorderColor, getBottomPadding, getLeftBorder, getLeftBorderColor, getLeftPadding, getOwnBorder, getOwnBorderColor, getOwnBottomBorder, getOwnBottomBorderColor, getOwnBottomPadding, getOwnLeftBorder, getOwnLeftBorderColor, getOwnLeftPadding, getOwnPadding, getOwnRightBorder, getOwnRightBorderColor, getOwnRightPadding, getOwnTopBorder, getOwnTopBorderColor, getOwnTopPadding, getPadding, getRightBorder, getRightBorderColor, getRightPadding, getTopBorder, getTopBorderColor, getTopPadding, setBorder, setBorder, setBorderColor, setBottomBorder, setBottomBorder, setBottomBorderColor, setBottomPadding, setBottomPadding, setLeftBorder, setLeftBorder, setLeftBorderColor, setLeftPadding, setLeftPadding, setPadding, setPadding, setRightBorder, setRightBorder, setRightBorderColor, setRightPadding, setRightPadding, setTopBorder, setTopBorder, setTopBorderColor, setTopPadding, setTopPadding
getFontName, getFontSize, getOwnFontName, getOwnFontSize, getOwnPdfEncoding, getOwnPdfFontName, getOwnSize, getPdfEncoding, getPdfFontName, getReportFont, getSize, isBold, isItalic, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, setBold, setBold, setFontName, setFontSize, setFontSize, setItalic, setItalic, setPdfEmbedded, setPdfEmbedded, setPdfEncoding, setPdfFontName, setReportFont, setSize, setSize, setStrikeThrough, setStrikeThrough, setUnderline, setUnderline
getFontSize, getLineSpacing, getLineSpacingValue, getMarkup, getOwnLineSpacing, getOwnLineSpacingValue, getOwnMarkup, getOwnRotation, getOwnRotationValue, getRotation, getRotationValue, isOwnStyledText, isStyledText, setLineSpacing, setLineSpacing, setLineSpacing, setMarkup, setRotation, setRotation, setRotation
getBackcolor, getForecolor, getHeight, getMode, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode, setMode, setMode
getDefaultLineColor, getLineBox
getDefaultStyleProvider, getStyle, getStyleNameReference
static final java.lang.String PROPERTY_PRINT_KEEP_FULL_TEXT
When this property is set, the engine saves the original text in the
print text object
along with the index at which the
text is to be truncated by the print object.
This property can be set at the following levels (listed in the order of precedence):
text element
levelreport
levelJRProperties
static final java.lang.String PROPERTY_TRUNCATE_AT_CHAR
By default, when the entire text of a text element does not fit the element's area, the text is truncated at the last word that fits the area. This property can instruct the engine to truncate the text at the last character that fits.
The property can be set at the same levels as PROPERTY_PRINT_KEEP_FULL_TEXT
.
static final java.lang.String PROPERTY_TRUNCATE_SUFFIX
The suffix is appended to the text when truncation occurs. If the property is not defined or empty (which is the case by default), no suffix will be used when the text is truncated.
The property can be set at the same levels as PROPERTY_PRINT_KEEP_FULL_TEXT
.
static final java.lang.String PROPERTY_SAVE_LINE_BREAKS
At report fill time, each text element is measured in order to determine how long it needs to stretch or where it needs to be truncated. During this measurement, the text wraps at certain positions in order to fit the text element defined width.
Setting this property to true instructs the engine to save the positions at which line breaks occur in the generated print element. The positions can be used by report exporters that want to enforce line breaks to occur at exactly the same position as they did during text measurement at fill time.
Currently, the HTML exporter will make use of the saved line break positions by introducing explicit line breaks.
The property can be set globally, at report level or at text element level.
static final byte TEXT_ALIGN_LEFT
JRAlignment.HORIZONTAL_ALIGN_LEFT
.static final byte TEXT_ALIGN_CENTER
JRAlignment.HORIZONTAL_ALIGN_CENTER
.static final byte TEXT_ALIGN_RIGHT
JRAlignment.HORIZONTAL_ALIGN_RIGHT
.static final byte TEXT_ALIGN_JUSTIFIED
JRAlignment.HORIZONTAL_ALIGN_JUSTIFIED
.static final byte ROTATION_NONE
RotationEnum.NONE
.static final byte ROTATION_LEFT
RotationEnum.LEFT
.static final byte ROTATION_RIGHT
RotationEnum.RIGHT
.static final byte ROTATION_UPSIDE_DOWN
RotationEnum.UPSIDE_DOWN
.static final byte LINE_SPACING_SINGLE
LineSpacingEnum.SINGLE
.static final byte LINE_SPACING_1_1_2
LineSpacingEnum.ONE_AND_HALF
.static final byte LINE_SPACING_DOUBLE
LineSpacingEnum.DOUBLE
.byte getTextAlignment()
JRAlignment.getHorizontalAlignment()
.JRAlignment
void setTextAlignment(byte horizontalAlignment)
JRAlignment.setHorizontalAlignment(byte)
.horizontalAlignment
- a value representing one of the horizontal alignment constants in JRAlignment
void setStyledText(boolean isStyledText)
JRCommonText.setMarkup(String)
.void setStyledText(java.lang.Boolean isStyledText)
JRCommonText.setMarkup(String)
.JRBox getBox()
JRBoxContainer.getLineBox()
JRFont getFont()
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com