|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRTextElement
An abstract representation of a report text element. It provides basic functionality for static texts and text fields.
Field Summary | |
---|---|
static byte |
LINE_SPACING_1_1_2
Constant for setting spacing between lines to 50% more than normal. |
static byte |
LINE_SPACING_DOUBLE
Constant for setting spacing between lines to double size. |
static byte |
LINE_SPACING_SINGLE
Constant for setting normal spacing between lines. |
static byte |
ROTATION_LEFT
Constant useful for rotating the text 90 degrees counter clockwise. |
static byte |
ROTATION_NONE
Constant useful for displaying the text without rotating it |
static byte |
ROTATION_RIGHT
Constant useful for rotating the text 90 degrees clockwise. |
static byte |
ROTATION_UPSIDE_DOWN
Constant useful for rotating the text 180 degrees. |
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 . |
Fields inherited from interface net.sf.jasperreports.engine.JRElement |
---|
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 |
Fields inherited from interface net.sf.jasperreports.engine.JRAlignment |
---|
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_TOP |
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 |
Method Summary | |
---|---|
JRBox |
getBox()
Deprecated. |
JRFont |
getFont()
Deprecated. |
byte |
getLineSpacing()
Gets the line spacing. |
java.lang.Byte |
getOwnLineSpacing()
|
java.lang.Byte |
getOwnRotation()
|
byte |
getRotation()
Gets the text rotation. |
byte |
getTextAlignment()
Deprecated. Replaced by JRAlignment.getHorizontalAlignment() . |
java.lang.Boolean |
isOwnStyledText()
|
boolean |
isStyledText()
Returns true if the text can contain style tags. |
void |
setLineSpacing(byte lineSpacing)
Sets the line spacing. |
void |
setLineSpacing(java.lang.Byte lineSpacing)
|
void |
setRotation(byte rotation)
Sets the text rotation. |
void |
setRotation(java.lang.Byte rotation)
|
void |
setStyledText(boolean isStyledText)
Specifies whether the text can contain style tags. |
void |
setStyledText(java.lang.Boolean isStyledText)
|
void |
setTextAlignment(byte horizontalAlignment)
Deprecated. Replaced by JRAlignment.setHorizontalAlignment(byte) . |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
---|
collectExpressions, getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
getCopy, writeXml |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle |
Methods inherited from interface net.sf.jasperreports.engine.JRAlignment |
---|
getHorizontalAlignment, getOwnHorizontalAlignment, getOwnVerticalAlignment, getVerticalAlignment, setHorizontalAlignment, setHorizontalAlignment, setVerticalAlignment, setVerticalAlignment |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle |
Methods inherited from interface net.sf.jasperreports.engine.JRFont |
---|
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 |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle |
Field Detail |
---|
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
static final byte ROTATION_LEFT
static final byte ROTATION_RIGHT
static final byte ROTATION_UPSIDE_DOWN
static final byte LINE_SPACING_SINGLE
static final byte LINE_SPACING_1_1_2
static final byte LINE_SPACING_DOUBLE
Method Detail |
---|
byte getTextAlignment()
JRAlignment.getHorizontalAlignment()
.
JRAlignment
void setTextAlignment(byte horizontalAlignment)
JRAlignment.setHorizontalAlignment(byte)
.
horizontalAlignment
- a value representing one of the horizontal alignment constants in JRAlignment
byte getRotation()
java.lang.Byte getOwnRotation()
void setRotation(byte rotation)
rotation
- a value representing one of the rotation constants in this classvoid setRotation(java.lang.Byte rotation)
byte getLineSpacing()
java.lang.Byte getOwnLineSpacing()
void setLineSpacing(byte lineSpacing)
lineSpacing
- a value representing one of the line spacing constants in this classvoid setLineSpacing(java.lang.Byte lineSpacing)
boolean isStyledText()
java.lang.Boolean isOwnStyledText()
void setStyledText(boolean isStyledText)
void setStyledText(java.lang.Boolean isStyledText)
JRBox getBox()
JRFont getFont()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |