|
||||||||||
| 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.design.JRDesignElement
net.sf.jasperreports.engine.design.JRDesignTextElement
public abstract class JRDesignTextElement
This class provides functionality common to design text elements. It provides implementation for the methods described in JRTextElement and setters for text element attributes that can only be modified at design time.
| 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 |
JRDesignTextElement()
Creates a new text element. |
| 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 |
setBox(JRBox box)
Sets the element box, containing all border and padding properties for this text element |
void |
setFont(JRFont font)
Sets a JRFont object containing all font properties for this text element |
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.design.JRDesignElement |
|---|
setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setY |
| 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 JRDesignTextElement()
| Method Detail |
|---|
public byte getTextAlignment()
getHorizontalAlignment().
JRTextElement
getTextAlignment in interface JRTextElementJRAlignmentpublic byte getHorizontalAlignment()
JRAlignment
getHorizontalAlignment in interface JRAlignmentJRAlignmentpublic byte getVerticalAlignment()
JRAlignment
getVerticalAlignment in interface JRAlignmentJRAlignmentpublic byte getRotation()
JRTextElement
getRotation in interface JRTextElementpublic byte getLineSpacing()
JRTextElement
getLineSpacing in interface JRTextElementpublic boolean isStyledText()
JRTextElement
isStyledText in interface JRTextElementpublic JRBox getBox()
JRTextElement
getBox in interface JRTextElementpublic JRFont getFont()
JRTextElement
getFont in interface JRTextElementpublic void setTextAlignment(byte horizontalAlignment)
setHorizontalAlignment(byte).
JRTextElement
setTextAlignment in interface JRTextElementhorizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignmentpublic void setHorizontalAlignment(byte horizontalAlignment)
JRAlignment
setHorizontalAlignment in interface JRAlignmenthorizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignmentpublic void setVerticalAlignment(byte verticalAlignment)
JRAlignment
setVerticalAlignment in interface JRAlignmentverticalAlignment - a value representing one of the vertical alignment constants in JRAlignmentpublic void setRotation(byte rotation)
JRTextElement
setRotation in interface JRTextElementrotation - a value representing one of the rotation constants in this classpublic void setLineSpacing(byte lineSpacing)
JRTextElement
setLineSpacing in interface JRTextElementlineSpacing - a value representing one of the line spacing constants in this classpublic void setStyledText(boolean isStyledText)
JRTextElement
setStyledText in interface JRTextElementpublic void setBox(JRBox box)
public void setFont(JRFont font)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||