|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillElement
net.sf.jasperreports.engine.fill.JRFillTextElement
public abstract class JRFillTextElement
| Nested Class Summary | |
|---|---|
protected static interface |
JRFillTextElement.TextChopper
|
| Field Summary | |
|---|---|
protected JRFillTextElement.TextChopper |
textChopper
|
| Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement |
|---|
band, elementGroup, filler, parent, printWhenGroupChanges, template |
| 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 |
JRFillTextElement(JRBaseFiller filler,
JRTextElement textElement,
JRFillObjectFactory factory)
|
| Method Summary | |
|---|---|
protected void |
chopTextElement(int availableStretchHeight)
|
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. |
protected float |
getLeadingOffset()
|
byte |
getLineSpacing()
Gets the line spacing. |
protected float |
getLineSpacingFactor()
|
protected java.lang.String |
getRawText()
|
byte |
getRotation()
Gets the text rotation. |
protected byte |
getRunDirection()
|
protected JRStyledText |
getStyledText()
|
protected java.util.Map |
getStyledTextAttributes()
|
java.lang.String |
getText()
|
byte |
getTextAlignment()
Deprecated. Replaced by getHorizontalAlignment(). |
protected int |
getTextEnd()
|
protected float |
getTextHeight()
|
protected int |
getTextStart()
|
byte |
getVerticalAlignment()
Gets the text vertical alignment. |
boolean |
isStyledText()
Returns true if the text can contain style tags. |
protected void |
reset()
|
protected void |
rewind()
|
void |
setHorizontalAlignment(byte horizontalAlignment)
Sets the text horizontal alignment. |
protected void |
setLeadingOffset(float leadingOffset)
|
void |
setLineSpacing(byte lineSpacing)
Sets the line spacing. |
protected void |
setLineSpacingFactor(float lineSpacingFactor)
|
protected void |
setRawText(java.lang.String rawText)
|
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). |
protected void |
setTextEnd(int textEnd)
|
protected void |
setTextHeight(float textHeight)
|
protected void |
setTextStart(int textStart)
|
void |
setVerticalAlignment(byte verticalAlignment)
Gets the text vertical alignment. |
| 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 JRFillTextElement.TextChopper textChopper
| Constructor Detail |
|---|
protected JRFillTextElement(JRBaseFiller filler,
JRTextElement textElement,
JRFillObjectFactory factory)
| 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 JRTextElementprotected java.util.Map getStyledTextAttributes()
protected float getLineSpacingFactor()
protected void setLineSpacingFactor(float lineSpacingFactor)
protected float getLeadingOffset()
protected void setLeadingOffset(float leadingOffset)
protected byte getRunDirection()
protected float getTextHeight()
protected void setTextHeight(float textHeight)
protected int getTextStart()
protected void setTextStart(int textStart)
protected int getTextEnd()
protected void setTextEnd(int textEnd)
protected java.lang.String getRawText()
protected void setRawText(java.lang.String rawText)
protected void reset()
reset in class JRFillElementprotected void rewind()
rewind in class JRFillElementprotected JRStyledText getStyledText()
public java.lang.String getText()
protected void chopTextElement(int availableStretchHeight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||