net.sf.jasperreports.engine.fill
Class JRFillTextElement

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRFillElement
      extended by net.sf.jasperreports.engine.fill.JRFillTextElement
All Implemented Interfaces:
java.lang.Cloneable, JRFillCloneable, JRAlignment, JRBox, JRBoxContainer, JRChild, JRCloneable, JRCommonElement, JRCommonText, JRElement, JRFont, JRPropertiesHolder, JRStyleContainer, JRStyleSetter, JRTextElement, JRVisitable
Direct Known Subclasses:
JRFillStaticText, JRFillTextField

public abstract class JRFillTextElement
extends JRFillElement
implements JRTextElement

Version:
$Id: JRFillTextElement.java 4061 2010-11-27 08:10:20Z lucianc $
Author:
Teodor Danciu ([email protected])

Field Summary
protected  JRLineBox lineBox
           
protected  JRReportFont reportFont
           
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, elementGroup, expressionEvaluator, filler, initStyle, mergedProperties, originProvider, parent, printWhenGroupChanges, staticProperties, templates
 
Fields inherited from interface net.sf.jasperreports.engine.JRTextElement
LINE_SPACING_1_1_2, LINE_SPACING_DOUBLE, LINE_SPACING_SINGLE, PROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIX, ROTATION_LEFT, ROTATION_NONE, ROTATION_RIGHT, ROTATION_UPSIDE_DOWN, 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
 
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
 
Fields inherited from interface net.sf.jasperreports.engine.JRCommonText
MARKUP_HTML, MARKUP_NONE, MARKUP_RTF, MARKUP_STYLED_TEXT
 
Constructor Summary
protected JRFillTextElement(JRBaseFiller filler, JRTextElement textElement, JRFillObjectFactory factory)
           
protected JRFillTextElement(JRFillTextElement textElement, JRFillCloneFactory factory)
           
 
Method Summary
protected abstract  boolean canOverflow()
           
protected  void chopTextElement(int availableStretchHeight)
           
protected  void ensureTextMeasurer()
           
 byte getBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getBorderColor()
          Deprecated. Replaced by getLineBox()
 byte getBottomBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getBottomBorderColor()
          Deprecated. Replaced by getLineBox()
 int getBottomPadding()
          Deprecated. Replaced by getLineBox()
 JRBox getBox()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getDefaultLineColor()
           
 JRFont getFont()
          Deprecated.  
 java.lang.String getFontName()
           
 int getFontSize()
           
 byte getHorizontalAlignment()
          Deprecated. Replaced by getHorizontalAlignmentValue().
 HorizontalAlignEnum getHorizontalAlignmentValue()
          Gets the text horizontal alignment.
protected  float getLeadingOffset()
           
 byte getLeftBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getLeftBorderColor()
          Deprecated. Replaced by getLineBox()
 int getLeftPadding()
          Deprecated. Replaced by getLineBox()
 JRLineBox getLineBox()
           
protected  short[] getLineBreakOffsets()
           
 byte getLineSpacing()
          Deprecated. Replaced by getLineSpacingValue().
protected  float getLineSpacingFactor()
           
 LineSpacingEnum getLineSpacingValue()
          Gets the text line spacing.
 java.lang.String getMarkup()
          Returns the text markup.
protected static MarkupProcessor getMarkupProcessor(java.lang.String markup)
           
 ModeEnum getModeValue()
          Returns the element transparency mode.
 java.lang.Byte getOwnBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getOwnBorderColor()
          Deprecated. Replaced by getLineBox()
 java.lang.Byte getOwnBottomBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getOwnBottomBorderColor()
          Deprecated. Replaced by getLineBox()
 java.lang.Integer getOwnBottomPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.String getOwnFontName()
           
 java.lang.Integer getOwnFontSize()
           
 java.lang.Byte getOwnHorizontalAlignment()
          Deprecated. Replaced by getOwnHorizontalAlignmentValue().
 HorizontalAlignEnum getOwnHorizontalAlignmentValue()
           
 java.lang.Byte getOwnLeftBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getOwnLeftBorderColor()
          Deprecated. Replaced by getLineBox()
 java.lang.Integer getOwnLeftPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.Byte getOwnLineSpacing()
          Deprecated. Replaced by getOwnLineSpacingValue().
 LineSpacingEnum getOwnLineSpacingValue()
          Gets the text own line spacing.
 java.lang.String getOwnMarkup()
           
 java.lang.Integer getOwnPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Byte getOwnRightBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getOwnRightBorderColor()
          Deprecated. Replaced by getLineBox()
 java.lang.Integer getOwnRightPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.Byte getOwnRotation()
          Deprecated. Replaced by getRotationValue().
 RotationEnum getOwnRotationValue()
          Gets the text own rotation.
 java.lang.Integer getOwnSize()
          Deprecated. Replaced by getOwnFontSize().
 java.lang.Byte getOwnTopBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getOwnTopBorderColor()
          Deprecated. Replaced by getLineBox()
 java.lang.Integer getOwnTopPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.Byte getOwnVerticalAlignment()
          Deprecated. Replaced by getOwnVerticalAlignmentValue().
 VerticalAlignEnum getOwnVerticalAlignmentValue()
           
 int getPadding()
          Deprecated. Replaced by getLineBox()
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
protected  java.lang.String getRawText()
           
 JRReportFont getReportFont()
           
 byte getRightBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getRightBorderColor()
          Deprecated. Replaced by getLineBox()
 int getRightPadding()
          Deprecated. Replaced by getLineBox()
 byte getRotation()
          Deprecated. Replaced by getRotationValue().
 RotationEnum getRotationValue()
          Gets the text rotation.
protected  byte getRunDirection()
          Deprecated. Replaced by getRunDirectionValue().
 RunDirectionEnum getRunDirectionValue()
           
 int getSize()
          Deprecated. Replaced by getFontSize().
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()
           
protected  java.lang.String getTextTruncateSuffix()
           
 byte getTopBorder()
          Deprecated. Replaced by getLineBox()
 java.awt.Color getTopBorderColor()
          Deprecated. Replaced by getLineBox()
 int getTopPadding()
          Deprecated. Replaced by getLineBox()
 byte getVerticalAlignment()
          Deprecated. Replaced by getVerticalAlignmentValue().
 VerticalAlignEnum getVerticalAlignmentValue()
          Gets the text vertical alignment.
 boolean isBold()
           
 boolean isItalic()
           
 java.lang.Boolean isOwnBold()
           
 java.lang.Boolean isOwnItalic()
           
 java.lang.Boolean isOwnPdfEmbedded()
           
 java.lang.Boolean isOwnStrikeThrough()
           
 java.lang.Boolean isOwnStyledText()
          Deprecated. Replaced by getOwnMarkup()
 java.lang.Boolean isOwnUnderline()
           
 boolean isPdfEmbedded()
           
 boolean isStrikeThrough()
           
 boolean isStyledText()
          Deprecated. Replaced by getMarkup()
 boolean isUnderline()
           
protected  java.lang.String processMarkupText(java.lang.String text)
           
protected  void reset()
           
protected  void resetTextChunk()
           
protected  void rewind()
           
 void setBold(boolean isBold)
           
 void setBold(java.lang.Boolean isBold)
          Alternative setBold method which allows also to reset the "own" isBold property.
 void setBorder(byte border)
          Deprecated. Replaced by getLineBox()
 void setBorder(java.lang.Byte border)
          Deprecated. Replaced by getLineBox()
 void setBorderColor(java.awt.Color borderColor)
          Deprecated. Replaced by getLineBox()
 void setBottomBorder(byte bottomBorder)
          Deprecated. Replaced by getLineBox()
 void setBottomBorder(java.lang.Byte bottomBorder)
          Deprecated. Replaced by getLineBox()
 void setBottomBorderColor(java.awt.Color bottomBorderColor)
          Deprecated. Replaced by getLineBox()
 void setBottomPadding(int bottomPadding)
          Deprecated. Replaced by getLineBox()
 void setBottomPadding(java.lang.Integer bottomPadding)
          Deprecated. Replaced by getLineBox()
 void setFontName(java.lang.String fontName)
           
 void setFontSize(int size)
           
 void setFontSize(java.lang.Integer size)
          Alternative setSize method which allows also to reset the "own" size property.
 void setHeight(int height)
           
 void setHorizontalAlignment(byte horizontalAlignment)
          Deprecated. Replaced by setHorizontalAlignment(HorizontalAlignEnum).
 void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
          Deprecated. Replaced by setHorizontalAlignment(HorizontalAlignEnum).
 void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
          Sets the text horizontal alignment.
 void setItalic(boolean isItalic)
           
 void setItalic(java.lang.Boolean isItalic)
          Alternative setItalic method which allows also to reset the "own" isItalic property.
protected  void setLeadingOffset(float leadingOffset)
           
 void setLeftBorder(byte leftBorder)
          Deprecated. Replaced by getLineBox()
 void setLeftBorder(java.lang.Byte leftBorder)
          Deprecated. Replaced by getLineBox()
 void setLeftBorderColor(java.awt.Color leftBorderColor)
          Deprecated. Replaced by getLineBox()
 void setLeftPadding(int leftPadding)
          Deprecated. Replaced by getLineBox()
 void setLeftPadding(java.lang.Integer leftPadding)
          Deprecated. Replaced by getLineBox()
protected  void setLineBreakOffsets(short[] lineBreakOffsets)
           
 void setLineSpacing(byte lineSpacing)
          Deprecated. Replaced by setLineSpacing(LineSpacingEnum).
 void setLineSpacing(java.lang.Byte lineSpacing)
          Deprecated. Replaced by setLineSpacing(LineSpacingEnum).
 void setLineSpacing(LineSpacingEnum lineSpacing)
          Sets the text line spacing.
protected  void setLineSpacingFactor(float lineSpacingFactor)
           
 void setMarkup(java.lang.String markup)
           
 void setPadding(int padding)
          Deprecated. Replaced by getLineBox()
 void setPadding(java.lang.Integer padding)
          Deprecated. Replaced by getLineBox()
 void setPdfEmbedded(boolean isPdfEmbedded)
           
 void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
          Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.
 void setPdfEncoding(java.lang.String pdfEncoding)
           
 void setPdfFontName(java.lang.String pdfFontName)
           
protected  void setPrintText(JRPrintText printText)
           
protected  void setRawText(java.lang.String rawText)
           
 void setReportFont(JRReportFont reportFont)
           
 void setRightBorder(byte rightBorder)
          Deprecated. Replaced by getLineBox()
 void setRightBorder(java.lang.Byte rightBorder)
          Deprecated. Replaced by getLineBox()
 void setRightBorderColor(java.awt.Color rightBorderColor)
          Deprecated. Replaced by getLineBox()
 void setRightPadding(int rightPadding)
          Deprecated. Replaced by getLineBox()
 void setRightPadding(java.lang.Integer rightPadding)
          Deprecated. Replaced by getLineBox()
 void setRotation(byte rotation)
          Deprecated. Replaced by setRotation(RotationEnum).
 void setRotation(java.lang.Byte rotation)
          Deprecated. Replaced by setRotation(RotationEnum).
 void setRotation(RotationEnum rotation)
          Sets the text rotation.
 void setSize(int size)
          Deprecated. Replaced by setFontSize(int).
 void setSize(java.lang.Integer size)
          Deprecated. Replaced by setFontSize(Integer).
 void setStrikeThrough(boolean isStrikeThrough)
           
 void setStrikeThrough(java.lang.Boolean isStrikeThrough)
          Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.
 void setStyledText(boolean isStyledText)
          Deprecated. Replaced by setMarkup(String)
 void setStyledText(java.lang.Boolean isStyledText)
          Deprecated. Replaced by setMarkup(String)
 void setTextAlignment(byte horizontalAlignment)
          Deprecated. Replaced by setHorizontalAlignment(byte).
protected  void setTextEnd(int textEnd)
           
protected  void setTextHeight(float textHeight)
           
protected  void setTextStart(int textStart)
           
protected  void setTextTruncateSuffix(java.lang.String textTruncateSuffix)
           
 void setTopBorder(byte topBorder)
          Deprecated. Replaced by getLineBox()
 void setTopBorder(java.lang.Byte topBorder)
          Deprecated. Replaced by getLineBox()
 void setTopBorderColor(java.awt.Color topBorderColor)
          Deprecated. Replaced by getLineBox()
 void setTopPadding(int topPadding)
          Deprecated. Replaced by getLineBox()
 void setTopPadding(java.lang.Integer topPadding)
          Deprecated. Replaced by getLineBox()
 void setUnderline(boolean isUnderline)
           
 void setUnderline(java.lang.Boolean isUnderline)
          Alternative setUnderline method which allows also to reset the "own" isUnderline property.
 void setVerticalAlignment(byte verticalAlignment)
          Deprecated. Replaced by setVerticalAlignment(VerticalAlignEnum).
 void setVerticalAlignment(java.lang.Byte verticalAlignment)
          Deprecated. Replaced by setVerticalAlignment(VerticalAlignEnum).
 void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
          Gets the text vertical alignment.
 void setWidth(int width)
           
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElement
addDependantElement, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, createElementTemplate, delayedEvaluate, evaluate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, fill, getBackcolor, getBand, getDefaultStyleProvider, getDependantElements, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getForecolor, getGroupElements, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getParentProperties, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchType, getStretchTypeValue, getStyle, getStyleNameReference, getTemplate, getVariable, getWidth, getX, getY, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, prepare, registerTemplate, resolveElement, resolveElement, setAlreadyPrinted, setBackcolor, setBand, setConditionalStylesContainer, setCurrentEvaluation, setForecolor, setMode, setMode, setMode, setOriginProvider, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setX, setY, stretchElement, stretchHeightFinal, transferProperties, transferProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
collectExpressions, getElementGroup, getKey, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setStretchType, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
clone
 
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
 
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
 
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode, setMode, setMode
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 
Methods inherited from interface net.sf.jasperreports.engine.fill.JRFillCloneable
createClone
 

Field Detail

reportFont

protected final JRReportFont reportFont

lineBox

protected final JRLineBox lineBox
Constructor Detail

JRFillTextElement

protected JRFillTextElement(JRBaseFiller filler,
                            JRTextElement textElement,
                            JRFillObjectFactory factory)

JRFillTextElement

protected JRFillTextElement(JRFillTextElement textElement,
                            JRFillCloneFactory factory)
Method Detail

ensureTextMeasurer

protected void ensureTextMeasurer()

getModeValue

public ModeEnum getModeValue()
Description copied from interface: JRCommonElement
Returns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.

Specified by:
getModeValue in interface JRCommonElement
Overrides:
getModeValue in class JRFillElement

getTextAlignment

public byte getTextAlignment()
Deprecated. Replaced by getHorizontalAlignment().

Description copied from interface: JRTextElement
Gets the text horizontal alignment.

Specified by:
getTextAlignment in interface JRTextElement
Returns:
a value representing one of the horizontal alignment constants in JRAlignment

setTextAlignment

public void setTextAlignment(byte horizontalAlignment)
Deprecated. Replaced by setHorizontalAlignment(byte).

Description copied from interface: JRTextElement
Sets the text horizontal alignment.

Specified by:
setTextAlignment in interface JRTextElement
Parameters:
horizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignment

getHorizontalAlignment

public byte getHorizontalAlignment()
Deprecated. Replaced by getHorizontalAlignmentValue().

Specified by:
getHorizontalAlignment in interface JRAlignment

getOwnHorizontalAlignment

public java.lang.Byte getOwnHorizontalAlignment()
Deprecated. Replaced by getOwnHorizontalAlignmentValue().

Specified by:
getOwnHorizontalAlignment in interface JRAlignment

getHorizontalAlignmentValue

public HorizontalAlignEnum getHorizontalAlignmentValue()
Description copied from interface: JRAlignment
Gets the text horizontal alignment.

Specified by:
getHorizontalAlignmentValue in interface JRAlignment
Returns:
a value representing one of the horizontal alignment constants in HorizontalAlignEnum

getOwnHorizontalAlignmentValue

public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
Specified by:
getOwnHorizontalAlignmentValue in interface JRAlignment

setHorizontalAlignment

public void setHorizontalAlignment(byte horizontalAlignment)
Deprecated. Replaced by setHorizontalAlignment(HorizontalAlignEnum).

Specified by:
setHorizontalAlignment in interface JRAlignment

setHorizontalAlignment

public void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
Deprecated. Replaced by setHorizontalAlignment(HorizontalAlignEnum).

Specified by:
setHorizontalAlignment in interface JRAlignment

setHorizontalAlignment

public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
Description copied from interface: JRAlignment
Sets the text horizontal alignment.

Specified by:
setHorizontalAlignment in interface JRAlignment
Parameters:
horizontalAlignment - a value representing one of the horizontal alignment constants in HorizontalAlignEnum

getVerticalAlignment

public byte getVerticalAlignment()
Deprecated. Replaced by getVerticalAlignmentValue().

Specified by:
getVerticalAlignment in interface JRAlignment

getOwnVerticalAlignment

public java.lang.Byte getOwnVerticalAlignment()
Deprecated. Replaced by getOwnVerticalAlignmentValue().

Specified by:
getOwnVerticalAlignment in interface JRAlignment

getVerticalAlignmentValue

public VerticalAlignEnum getVerticalAlignmentValue()
Description copied from interface: JRAlignment
Gets the text vertical alignment.

Specified by:
getVerticalAlignmentValue in interface JRAlignment
Returns:
a value representing one of the vertical alignment constants in VerticalAlignEnum

getOwnVerticalAlignmentValue

public VerticalAlignEnum getOwnVerticalAlignmentValue()
Specified by:
getOwnVerticalAlignmentValue in interface JRAlignment

setVerticalAlignment

public void setVerticalAlignment(byte verticalAlignment)
Deprecated. Replaced by setVerticalAlignment(VerticalAlignEnum).

Specified by:
setVerticalAlignment in interface JRAlignment

setVerticalAlignment

public void setVerticalAlignment(java.lang.Byte verticalAlignment)
Deprecated. Replaced by setVerticalAlignment(VerticalAlignEnum).

Specified by:
setVerticalAlignment in interface JRAlignment

setVerticalAlignment

public void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
Description copied from interface: JRAlignment
Gets the text vertical alignment.

Specified by:
setVerticalAlignment in interface JRAlignment
Parameters:
verticalAlignment - a value representing one of the vertical alignment constants in VerticalAlignEnum

getRotation

public byte getRotation()
Deprecated. Replaced by getRotationValue().

Specified by:
getRotation in interface JRCommonText

getOwnRotation

public java.lang.Byte getOwnRotation()
Deprecated. Replaced by getRotationValue().

Specified by:
getOwnRotation in interface JRCommonText

setRotation

public void setRotation(byte rotation)
Deprecated. Replaced by setRotation(RotationEnum).

Specified by:
setRotation in interface JRCommonText

setRotation

public void setRotation(java.lang.Byte rotation)
Deprecated. Replaced by setRotation(RotationEnum).

Specified by:
setRotation in interface JRCommonText

getRotationValue

public RotationEnum getRotationValue()
Description copied from interface: JRCommonText
Gets the text rotation.

Specified by:
getRotationValue in interface JRCommonText
Returns:
a value representing one of the text rotation constants in RotationEnum

getOwnRotationValue

public RotationEnum getOwnRotationValue()
Description copied from interface: JRCommonText
Gets the text own rotation.

Specified by:
getOwnRotationValue in interface JRCommonText
Returns:
a value representing one of the text rotation constants in RotationEnum

setRotation

public void setRotation(RotationEnum rotation)
Description copied from interface: JRCommonText
Sets the text rotation.

Specified by:
setRotation in interface JRCommonText
Parameters:
rotation - a value representing one of the text rotation constants in RotationEnum

getLineSpacing

public byte getLineSpacing()
Deprecated. Replaced by getLineSpacingValue().

Specified by:
getLineSpacing in interface JRCommonText

getOwnLineSpacing

public java.lang.Byte getOwnLineSpacing()
Deprecated. Replaced by getOwnLineSpacingValue().

Specified by:
getOwnLineSpacing in interface JRCommonText

setLineSpacing

public void setLineSpacing(byte lineSpacing)
Deprecated. Replaced by setLineSpacing(LineSpacingEnum).

Specified by:
setLineSpacing in interface JRCommonText

setLineSpacing

public void setLineSpacing(java.lang.Byte lineSpacing)
Deprecated. Replaced by setLineSpacing(LineSpacingEnum).

Specified by:
setLineSpacing in interface JRCommonText

getLineSpacingValue

public LineSpacingEnum getLineSpacingValue()
Description copied from interface: JRCommonText
Gets the text line spacing.

Specified by:
getLineSpacingValue in interface JRCommonText
Returns:
a value representing one of the line spacing constants in LineSpacingEnum

getOwnLineSpacingValue

public LineSpacingEnum getOwnLineSpacingValue()
Description copied from interface: JRCommonText
Gets the text own line spacing.

Specified by:
getOwnLineSpacingValue in interface JRCommonText
Returns:
a value representing one of the line spacing constants in LineSpacingEnum

setLineSpacing

public void setLineSpacing(LineSpacingEnum lineSpacing)
Description copied from interface: JRCommonText
Sets the text line spacing.

Specified by:
setLineSpacing in interface JRCommonText
Parameters:
lineSpacing - a value representing one of the line spacing constants in LineSpacingEnum

isStyledText

public boolean isStyledText()
Deprecated. Replaced by getMarkup()

Description copied from interface: JRCommonText
Returns true if the text can contain style tags.

Specified by:
isStyledText in interface JRCommonText

isOwnStyledText

public java.lang.Boolean isOwnStyledText()
Deprecated. Replaced by getOwnMarkup()

Specified by:
isOwnStyledText in interface JRCommonText

setStyledText

public void setStyledText(boolean isStyledText)
Deprecated. Replaced by setMarkup(String)

Description copied from interface: JRTextElement
Specifies whether the text can contain style tags.

Specified by:
setStyledText in interface JRTextElement

setStyledText

public void setStyledText(java.lang.Boolean isStyledText)
Deprecated. Replaced by setMarkup(String)

Specified by:
setStyledText in interface JRTextElement

getMarkup

public java.lang.String getMarkup()
Description copied from interface: JRCommonText
Returns the text markup.

Specified by:
getMarkup in interface JRCommonText

getOwnMarkup

public java.lang.String getOwnMarkup()
Specified by:
getOwnMarkup in interface JRCommonText

setMarkup

public void setMarkup(java.lang.String markup)
Specified by:
setMarkup in interface JRCommonText

getBox

public JRBox getBox()
Deprecated. Replaced by getLineBox()

Description copied from interface: JRTextElement
Returns an object containing all border and padding properties for this text element

Specified by:
getBox in interface JRTextElement

getLineBox

public JRLineBox getLineBox()
Specified by:
getLineBox in interface JRBoxContainer

getBorder

public byte getBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getBorder in interface JRBox

getOwnBorder

public java.lang.Byte getOwnBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnBorder in interface JRBox

setBorder

public void setBorder(byte border)
Deprecated. Replaced by getLineBox()

Specified by:
setBorder in interface JRBox

setBorder

public void setBorder(java.lang.Byte border)
Deprecated. Replaced by getLineBox()

Specified by:
setBorder in interface JRBox

getBorderColor

public java.awt.Color getBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getBorderColor in interface JRBox

getOwnBorderColor

public java.awt.Color getOwnBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnBorderColor in interface JRBox

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Deprecated. Replaced by getLineBox()

Specified by:
setBorderColor in interface JRBox

getPadding

public int getPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getPadding in interface JRBox

getOwnPadding

public java.lang.Integer getOwnPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnPadding in interface JRBox

setPadding

public void setPadding(int padding)
Deprecated. Replaced by getLineBox()

Specified by:
setPadding in interface JRBox

setPadding

public void setPadding(java.lang.Integer padding)
Deprecated. Replaced by getLineBox()

Specified by:
setPadding in interface JRBox

getTopBorder

public byte getTopBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getTopBorder in interface JRBox

getOwnTopBorder

public java.lang.Byte getOwnTopBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnTopBorder in interface JRBox

setTopBorder

public void setTopBorder(byte topBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setTopBorder in interface JRBox

setTopBorder

public void setTopBorder(java.lang.Byte topBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setTopBorder in interface JRBox

getTopBorderColor

public java.awt.Color getTopBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getTopBorderColor in interface JRBox

getOwnTopBorderColor

public java.awt.Color getOwnTopBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnTopBorderColor in interface JRBox

setTopBorderColor

public void setTopBorderColor(java.awt.Color topBorderColor)
Deprecated. Replaced by getLineBox()

Specified by:
setTopBorderColor in interface JRBox

getTopPadding

public int getTopPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getTopPadding in interface JRBox

getOwnTopPadding

public java.lang.Integer getOwnTopPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnTopPadding in interface JRBox

setTopPadding

public void setTopPadding(int topPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setTopPadding in interface JRBox

setTopPadding

public void setTopPadding(java.lang.Integer topPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setTopPadding in interface JRBox

getLeftBorder

public byte getLeftBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getLeftBorder in interface JRBox

getOwnLeftBorder

public java.lang.Byte getOwnLeftBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnLeftBorder in interface JRBox

setLeftBorder

public void setLeftBorder(byte leftBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setLeftBorder in interface JRBox

setLeftBorder

public void setLeftBorder(java.lang.Byte leftBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setLeftBorder in interface JRBox

getLeftBorderColor

public java.awt.Color getLeftBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getLeftBorderColor in interface JRBox

getOwnLeftBorderColor

public java.awt.Color getOwnLeftBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnLeftBorderColor in interface JRBox

setLeftBorderColor

public void setLeftBorderColor(java.awt.Color leftBorderColor)
Deprecated. Replaced by getLineBox()

Specified by:
setLeftBorderColor in interface JRBox

getLeftPadding

public int getLeftPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getLeftPadding in interface JRBox

getOwnLeftPadding

public java.lang.Integer getOwnLeftPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnLeftPadding in interface JRBox

setLeftPadding

public void setLeftPadding(int leftPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setLeftPadding in interface JRBox

setLeftPadding

public void setLeftPadding(java.lang.Integer leftPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setLeftPadding in interface JRBox

getBottomBorder

public byte getBottomBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getBottomBorder in interface JRBox

getOwnBottomBorder

public java.lang.Byte getOwnBottomBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnBottomBorder in interface JRBox

setBottomBorder

public void setBottomBorder(byte bottomBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setBottomBorder in interface JRBox

setBottomBorder

public void setBottomBorder(java.lang.Byte bottomBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setBottomBorder in interface JRBox

getBottomBorderColor

public java.awt.Color getBottomBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getBottomBorderColor in interface JRBox

getOwnBottomBorderColor

public java.awt.Color getOwnBottomBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnBottomBorderColor in interface JRBox

setBottomBorderColor

public void setBottomBorderColor(java.awt.Color bottomBorderColor)
Deprecated. Replaced by getLineBox()

Specified by:
setBottomBorderColor in interface JRBox

getBottomPadding

public int getBottomPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getBottomPadding in interface JRBox

getOwnBottomPadding

public java.lang.Integer getOwnBottomPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnBottomPadding in interface JRBox

setBottomPadding

public void setBottomPadding(int bottomPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setBottomPadding in interface JRBox

setBottomPadding

public void setBottomPadding(java.lang.Integer bottomPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setBottomPadding in interface JRBox

getRightBorder

public byte getRightBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getRightBorder in interface JRBox

getOwnRightBorder

public java.lang.Byte getOwnRightBorder()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnRightBorder in interface JRBox

setRightBorder

public void setRightBorder(byte rightBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setRightBorder in interface JRBox

setRightBorder

public void setRightBorder(java.lang.Byte rightBorder)
Deprecated. Replaced by getLineBox()

Specified by:
setRightBorder in interface JRBox

getRightBorderColor

public java.awt.Color getRightBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getRightBorderColor in interface JRBox

getOwnRightBorderColor

public java.awt.Color getOwnRightBorderColor()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnRightBorderColor in interface JRBox

setRightBorderColor

public void setRightBorderColor(java.awt.Color rightBorderColor)
Deprecated. Replaced by getLineBox()

Specified by:
setRightBorderColor in interface JRBox

getRightPadding

public int getRightPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getRightPadding in interface JRBox

getOwnRightPadding

public java.lang.Integer getOwnRightPadding()
Deprecated. Replaced by getLineBox()

Specified by:
getOwnRightPadding in interface JRBox

setRightPadding

public void setRightPadding(int rightPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setRightPadding in interface JRBox

setRightPadding

public void setRightPadding(java.lang.Integer rightPadding)
Deprecated. Replaced by getLineBox()

Specified by:
setRightPadding in interface JRBox

getFont

public JRFont getFont()
Deprecated. 

Description copied from interface: JRTextElement
Returns an object containing all font properties for this text element

Specified by:
getFont in interface JRTextElement

getStyledTextAttributes

protected java.util.Map getStyledTextAttributes()

getLineSpacingFactor

protected float getLineSpacingFactor()

setLineSpacingFactor

protected void setLineSpacingFactor(float lineSpacingFactor)

getLeadingOffset

protected float getLeadingOffset()

setLeadingOffset

protected void setLeadingOffset(float leadingOffset)

getRunDirection

protected byte getRunDirection()
Deprecated. Replaced by getRunDirectionValue().


getRunDirectionValue

public RunDirectionEnum getRunDirectionValue()

getTextHeight

protected float getTextHeight()

setTextHeight

protected void setTextHeight(float textHeight)

getTextStart

protected int getTextStart()

setTextStart

protected void setTextStart(int textStart)

getTextEnd

protected int getTextEnd()

setTextEnd

protected void setTextEnd(int textEnd)

getLineBreakOffsets

protected short[] getLineBreakOffsets()

setLineBreakOffsets

protected void setLineBreakOffsets(short[] lineBreakOffsets)

resetTextChunk

protected void resetTextChunk()

getRawText

protected java.lang.String getRawText()

setRawText

protected void setRawText(java.lang.String rawText)

reset

protected void reset()
Overrides:
reset in class JRFillElement

rewind

protected void rewind()
Specified by:
rewind in class JRFillElement

getStyledText

protected JRStyledText getStyledText()

getText

public java.lang.String getText()

chopTextElement

protected void chopTextElement(int availableStretchHeight)

canOverflow

protected abstract boolean canOverflow()

getReportFont

public JRReportFont getReportFont()
Specified by:
getReportFont in interface JRFont

setReportFont

public void setReportFont(JRReportFont reportFont)
Specified by:
setReportFont in interface JRFont

getFontName

public java.lang.String getFontName()
Specified by:
getFontName in interface JRFont

getOwnFontName

public java.lang.String getOwnFontName()
Specified by:
getOwnFontName in interface JRFont

setFontName

public void setFontName(java.lang.String fontName)
Specified by:
setFontName in interface JRFont

isBold

public boolean isBold()
Specified by:
isBold in interface JRFont

isOwnBold

public java.lang.Boolean isOwnBold()
Specified by:
isOwnBold in interface JRFont

setBold

public void setBold(boolean isBold)
Specified by:
setBold in interface JRFont

setBold

public void setBold(java.lang.Boolean isBold)
Alternative setBold method which allows also to reset the "own" isBold property.

Specified by:
setBold in interface JRFont

isItalic

public boolean isItalic()
Specified by:
isItalic in interface JRFont

isOwnItalic

public java.lang.Boolean isOwnItalic()
Specified by:
isOwnItalic in interface JRFont

setItalic

public void setItalic(boolean isItalic)
Specified by:
setItalic in interface JRFont

setItalic

public void setItalic(java.lang.Boolean isItalic)
Alternative setItalic method which allows also to reset the "own" isItalic property.

Specified by:
setItalic in interface JRFont

isUnderline

public boolean isUnderline()
Specified by:
isUnderline in interface JRFont

isOwnUnderline

public java.lang.Boolean isOwnUnderline()
Specified by:
isOwnUnderline in interface JRFont

setUnderline

public void setUnderline(boolean isUnderline)
Specified by:
setUnderline in interface JRFont

setUnderline

public void setUnderline(java.lang.Boolean isUnderline)
Alternative setUnderline method which allows also to reset the "own" isUnderline property.

Specified by:
setUnderline in interface JRFont

isStrikeThrough

public boolean isStrikeThrough()
Specified by:
isStrikeThrough in interface JRFont

isOwnStrikeThrough

public java.lang.Boolean isOwnStrikeThrough()
Specified by:
isOwnStrikeThrough in interface JRFont

setStrikeThrough

public void setStrikeThrough(boolean isStrikeThrough)
Specified by:
setStrikeThrough in interface JRFont

setStrikeThrough

public void setStrikeThrough(java.lang.Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.

Specified by:
setStrikeThrough in interface JRFont

getFontSize

public int getFontSize()
Specified by:
getFontSize in interface JRCommonText
Specified by:
getFontSize in interface JRFont

getOwnFontSize

public java.lang.Integer getOwnFontSize()
Specified by:
getOwnFontSize in interface JRFont

setFontSize

public void setFontSize(int size)
Specified by:
setFontSize in interface JRFont

setFontSize

public void setFontSize(java.lang.Integer size)
Alternative setSize method which allows also to reset the "own" size property.

Specified by:
setFontSize in interface JRFont

getSize

public int getSize()
Deprecated. Replaced by getFontSize().

Specified by:
getSize in interface JRFont

getOwnSize

public java.lang.Integer getOwnSize()
Deprecated. Replaced by getOwnFontSize().

Specified by:
getOwnSize in interface JRFont

setSize

public void setSize(int size)
Deprecated. Replaced by setFontSize(int).

Specified by:
setSize in interface JRFont

setSize

public void setSize(java.lang.Integer size)
Deprecated. Replaced by setFontSize(Integer).

Specified by:
setSize in interface JRFont

getPdfFontName

public java.lang.String getPdfFontName()
Specified by:
getPdfFontName in interface JRFont

getOwnPdfFontName

public java.lang.String getOwnPdfFontName()
Specified by:
getOwnPdfFontName in interface JRFont

setPdfFontName

public void setPdfFontName(java.lang.String pdfFontName)
Specified by:
setPdfFontName in interface JRFont

getPdfEncoding

public java.lang.String getPdfEncoding()
Specified by:
getPdfEncoding in interface JRFont

getOwnPdfEncoding

public java.lang.String getOwnPdfEncoding()
Specified by:
getOwnPdfEncoding in interface JRFont

setPdfEncoding

public void setPdfEncoding(java.lang.String pdfEncoding)
Specified by:
setPdfEncoding in interface JRFont

isPdfEmbedded

public boolean isPdfEmbedded()
Specified by:
isPdfEmbedded in interface JRFont

isOwnPdfEmbedded

public java.lang.Boolean isOwnPdfEmbedded()
Specified by:
isOwnPdfEmbedded in interface JRFont

setPdfEmbedded

public void setPdfEmbedded(boolean isPdfEmbedded)
Specified by:
setPdfEmbedded in interface JRFont

setPdfEmbedded

public void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.

Specified by:
setPdfEmbedded in interface JRFont

getDefaultLineColor

public java.awt.Color getDefaultLineColor()
Specified by:
getDefaultLineColor in interface JRBoxContainer

setHeight

public void setHeight(int height)
Overrides:
setHeight in class JRFillElement

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface JRElement
Overrides:
setWidth in class JRFillElement

processMarkupText

protected java.lang.String processMarkupText(java.lang.String text)

getMarkupProcessor

protected static MarkupProcessor getMarkupProcessor(java.lang.String markup)

setPrintText

protected void setPrintText(JRPrintText printText)

getTextTruncateSuffix

protected java.lang.String getTextTruncateSuffix()

setTextTruncateSuffix

protected void setTextTruncateSuffix(java.lang.String textTruncateSuffix)


Copyright © 2011. All Rights Reserved.