net.sf.jasperreports.engine.base
Class JRBaseStaticText

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseElement
      extended bynet.sf.jasperreports.engine.base.JRBaseTextElement
          extended bynet.sf.jasperreports.engine.base.JRBaseStaticText
All Implemented Interfaces:
JRAlignment, JRChild, JRElement, JRStaticText, JRTextElement, java.io.Serializable

public class JRBaseStaticText
extends JRBaseTextElement
implements JRStaticText

This class is used for representing a static text element. Together with its parents, it contains the full functionality needed for handling a static text.

Version:
$Id: JRBaseStaticText.java,v 1.28 2005/09/07 13:58:25 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.lang.String text
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseTextElement
box, font, horizontalAlignment, isStyledText, lineSpacing, rotation, 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 JRBaseStaticText(JRStaticText staticText, JRBaseObjectFactory factory)
          Initializes the element properties.
 
Method Summary
 void collectExpressions(JRExpressionCollector collector)
           
 JRChild getCopy(JRAbstractObjectFactory factory)
           
 java.lang.String getText()
           
 void setText(java.lang.String text)
           
 void writeXml(JRXmlWriter writer)
           
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseTextElement
getBox, getFont, getHorizontalAlignment, getLineSpacing, getRotation, getTextAlignment, getVerticalAlignment, isStyledText, setHorizontalAlignment, setLineSpacing, setRotation, setStyledText, setTextAlignment, setVerticalAlignment
 
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.JRTextElement
getBox, getFont, getLineSpacing, getRotation, getTextAlignment, isStyledText, setLineSpacing, setRotation, setStyledText, setTextAlignment
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
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.JRAlignment
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Field Detail

text

protected java.lang.String text
Constructor Detail

JRBaseStaticText

protected JRBaseStaticText(JRStaticText staticText,
                           JRBaseObjectFactory factory)
Initializes the element properties.

Method Detail

getText

public java.lang.String getText()
Specified by:
getText in interface JRStaticText

setText

public void setText(java.lang.String text)
Specified by:
setText in interface JRStaticText

getCopy

public JRChild getCopy(JRAbstractObjectFactory factory)
Specified by:
getCopy in interface JRChild

collectExpressions

public void collectExpressions(JRExpressionCollector collector)
Specified by:
collectExpressions in interface JRElement

writeXml

public void writeXml(JRXmlWriter writer)
Specified by:
writeXml in interface JRChild


© 2001-2005 JasperSoft Corporation www.jaspersoft.com