|
||||||||||
| 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.base.JRBaseTextElement
public abstract class JRBaseTextElement
This class provides functionality common to text elements. It provides implementation for the methods described in JRTextElement.
| Field Summary | |
|---|---|
protected JRBox |
box
|
protected JRFont |
font
|
protected byte |
horizontalAlignment
|
protected boolean |
isStyledText
|
protected byte |
lineSpacing
|
protected byte |
rotation
|
protected byte |
verticalAlignment
|
| Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
|---|
backcolor, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y |
| Fields inherited from interface net.sf.jasperreports.engine.JRTextElement |
|---|
LINE_SPACING_1_1_2, LINE_SPACING_DOUBLE, LINE_SPACING_SINGLE, ROTATION_LEFT, ROTATION_NONE, ROTATION_RIGHT, TEXT_ALIGN_CENTER, TEXT_ALIGN_JUSTIFIED, TEXT_ALIGN_LEFT, TEXT_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 |
| Constructor Summary | |
|---|---|
protected |
JRBaseTextElement()
Constructs an empty text element. |
protected |
JRBaseTextElement(JRTextElement textElement,
JRBaseObjectFactory factory)
Initializes properties that are specific to text elements. |
| Method Summary | |
|---|---|
JRBox |
getBox()
Returns an object containing all border and padding properties for this text element |
JRFont |
getFont()
Returns an object containing all font properties for this text element |
byte |
getHorizontalAlignment()
Gets the text horizontal alignment. |
byte |
getLineSpacing()
Gets the line spacing. |
byte |
getRotation()
Gets the text rotation. |
byte |
getTextAlignment()
Deprecated. Replaced by getHorizontalAlignment(). |
byte |
getVerticalAlignment()
Gets the text vertical alignment. |
boolean |
isStyledText()
Returns true if the text can contain style tags. |
void |
setHorizontalAlignment(byte horizontalAlignment)
Sets the text horizontal alignment. |
void |
setLineSpacing(byte lineSpacing)
Sets the line spacing. |
void |
setRotation(byte rotation)
Sets the text rotation. |
void |
setStyledText(boolean isStyledText)
Specifies whether the text can contain style tags. |
void |
setTextAlignment(byte horizontalAlignment)
Deprecated. Replaced by setHorizontalAlignment(byte). |
void |
setVerticalAlignment(byte verticalAlignment)
Gets the text vertical alignment. |
| Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
|---|
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jasperreports.engine.JRElement |
|---|
collectExpressions, getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
| Methods inherited from interface net.sf.jasperreports.engine.JRChild |
|---|
getCopy, writeXml |
| Field Detail |
|---|
protected byte horizontalAlignment
protected byte verticalAlignment
protected byte rotation
protected byte lineSpacing
protected boolean isStyledText
protected JRBox box
protected JRFont font
| Constructor Detail |
|---|
protected JRBaseTextElement()
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 process| Method Detail |
|---|
public byte getTextAlignment()
getHorizontalAlignment().
JRTextElement
getTextAlignment in interface JRTextElementJRAlignmentpublic void setTextAlignment(byte horizontalAlignment)
setHorizontalAlignment(byte).
JRTextElement
setTextAlignment in interface JRTextElementhorizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignmentpublic byte getHorizontalAlignment()
JRAlignment
getHorizontalAlignment in interface JRAlignmentJRAlignmentpublic void setHorizontalAlignment(byte horizontalAlignment)
JRAlignment
setHorizontalAlignment in interface JRAlignmenthorizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignmentpublic byte getVerticalAlignment()
JRAlignment
getVerticalAlignment in interface JRAlignmentJRAlignmentpublic void setVerticalAlignment(byte verticalAlignment)
JRAlignment
setVerticalAlignment in interface JRAlignmentverticalAlignment - a value representing one of the vertical alignment constants in JRAlignmentpublic byte getRotation()
JRTextElement
getRotation in interface JRTextElementpublic void setRotation(byte rotation)
JRTextElement
setRotation in interface JRTextElementrotation - a value representing one of the rotation constants in this classpublic byte getLineSpacing()
JRTextElement
getLineSpacing in interface JRTextElementpublic void setLineSpacing(byte lineSpacing)
JRTextElement
setLineSpacing in interface JRTextElementlineSpacing - a value representing one of the line spacing constants in this classpublic boolean isStyledText()
JRTextElement
isStyledText in interface JRTextElementpublic void setStyledText(boolean isStyledText)
JRTextElement
setStyledText in interface JRTextElementpublic JRBox getBox()
JRTextElement
getBox in interface JRTextElementpublic JRFont getFont()
JRTextElement
getFont in interface JRTextElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||