net.sf.jasperreports.engine.base
Class JRBaseTextElement

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElement
      extended by net.sf.jasperreports.engine.base.JRBaseTextElement
All Implemented Interfaces:
java.io.Serializable, JRAlignment, JRBox, JRChild, JRElement, JRFont, JRStyleContainer, JRTextElement
Direct Known Subclasses:
JRBaseStaticText, JRBaseTextField

public abstract class JRBaseTextElement
extends JRBaseElement
implements JRTextElement

This class provides functionality common to text elements. It provides implementation for the methods described in JRTextElement.

Version:
$Id: JRBaseTextElement.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.lang.Byte border
           
protected  java.awt.Color borderColor
           
protected  java.lang.Byte bottomBorder
           
protected  java.awt.Color bottomBorderColor
           
protected  java.lang.Integer bottomPadding
           
protected  java.lang.String fontName
           
protected  java.lang.Integer fontSize
           
protected  java.lang.Byte horizontalAlignment
           
protected  java.lang.Boolean isBold
           
protected  java.lang.Boolean isItalic
           
protected  java.lang.Boolean isPdfEmbedded
           
protected  java.lang.Boolean isStrikeThrough
           
protected  java.lang.Boolean isStyledText
           
protected  java.lang.Boolean isUnderline
           
protected  java.lang.Byte leftBorder
           
protected  java.awt.Color leftBorderColor
           
protected  java.lang.Integer leftPadding
           
protected  java.lang.Byte lineSpacing
           
protected  java.lang.Integer padding
           
protected  java.lang.String pdfEncoding
           
protected  java.lang.String pdfFontName
           
protected  JRReportFont reportFont
           
protected  java.lang.Byte rightBorder
           
protected  java.awt.Color rightBorderColor
           
protected  java.lang.Integer rightPadding
           
protected  java.lang.Byte rotation
           
protected  java.lang.Byte topBorder
           
protected  java.awt.Color topBorderColor
           
protected  java.lang.Integer topPadding
           
protected  java.lang.Byte verticalAlignment
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, 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, 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
 
Constructor Summary
protected JRBaseTextElement(JRTextElement textElement, JRBaseObjectFactory factory)
          Initializes properties that are specific to text elements.
 
Method Summary
protected  JRFont getBaseFont()
           
 byte getBorder()
          Gets the default border pen size (can be overwritten by individual settings).
 java.awt.Color getBorderColor()
          Gets the default border color (can be overwritten by individual settings).
 byte getBottomBorder()
           
 java.awt.Color getBottomBorderColor()
           
 int getBottomPadding()
           
 JRBox getBox()
          Deprecated.  
 JRFont getFont()
          Deprecated.  
 java.lang.String getFontName()
           
 int getFontSize()
           
 byte getHorizontalAlignment()
          Gets the text horizontal alignment.
 byte getLeftBorder()
           
 java.awt.Color getLeftBorderColor()
           
 int getLeftPadding()
           
 byte getLineSpacing()
          Gets the line spacing.
 byte getMode()
          Returns the element transparency mode.
 java.lang.Byte getOwnBorder()
           
 java.awt.Color getOwnBorderColor()
           
 java.lang.Byte getOwnBottomBorder()
           
 java.awt.Color getOwnBottomBorderColor()
           
 java.lang.Integer getOwnBottomPadding()
           
 java.lang.String getOwnFontName()
           
 java.lang.Integer getOwnFontSize()
           
 java.lang.Byte getOwnHorizontalAlignment()
           
 java.lang.Byte getOwnLeftBorder()
           
 java.awt.Color getOwnLeftBorderColor()
           
 java.lang.Integer getOwnLeftPadding()
           
 java.lang.Byte getOwnLineSpacing()
           
 java.lang.Integer getOwnPadding()
           
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Byte getOwnRightBorder()
           
 java.awt.Color getOwnRightBorderColor()
           
 java.lang.Integer getOwnRightPadding()
           
 java.lang.Byte getOwnRotation()
           
 java.lang.Integer getOwnSize()
          Deprecated. Replaced by getOwnFontSize().
 java.lang.Byte getOwnTopBorder()
          Gets the top border pen size (if the default value was overwritten).
 java.awt.Color getOwnTopBorderColor()
          Gets the top border color (if the default value was overwritten).
 java.lang.Integer getOwnTopPadding()
           
 java.lang.Byte getOwnVerticalAlignment()
           
 int getPadding()
          Gets the default padding in pixels (can be overwritten by individual settings).
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
 JRReportFont getReportFont()
           
 byte getRightBorder()
           
 java.awt.Color getRightBorderColor()
           
 int getRightPadding()
           
 byte getRotation()
          Gets the text rotation.
 int getSize()
          Deprecated. Replaced by getFontSize().
 byte getTextAlignment()
          Deprecated. Replaced by getHorizontalAlignment().
 byte getTopBorder()
          Gets the top border pen size.
 java.awt.Color getTopBorderColor()
          Gets the top border color.
 int getTopPadding()
           
 byte getVerticalAlignment()
          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()
           
 java.lang.Boolean isOwnUnderline()
           
 boolean isPdfEmbedded()
           
 boolean isStrikeThrough()
           
 boolean isStyledText()
          Returns true if the text can contain style tags.
 boolean isUnderline()
           
 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)
          Sets the default border pen size (can be overwritten by individual settings).
 void setBorder(java.lang.Byte border)
           
 void setBorderColor(java.awt.Color borderColor)
          Sets the default border color (can be overwritten by individual settings).
 void setBottomBorder(byte bottomBorder)
           
 void setBottomBorder(java.lang.Byte bottomBorder)
           
 void setBottomBorderColor(java.awt.Color bottomBorderColor)
           
 void setBottomPadding(int bottomPadding)
           
 void setBottomPadding(java.lang.Integer bottomPadding)
           
 void setFontName(java.lang.String fontName)
           
 void setFontSize(int fontSize)
           
 void setFontSize(java.lang.Integer fontSize)
          Alternative setSize method which allows also to reset the "own" size property.
 void setHorizontalAlignment(byte horizontalAlignment)
          Sets the text horizontal alignment.
 void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
           
 void setItalic(boolean isItalic)
           
 void setItalic(java.lang.Boolean isItalic)
          Alternative setItalic method which allows also to reset the "own" isItalic property.
 void setLeftBorder(byte leftBorder)
           
 void setLeftBorder(java.lang.Byte leftBorder)
           
 void setLeftBorderColor(java.awt.Color leftBorderColor)
           
 void setLeftPadding(int leftPadding)
           
 void setLeftPadding(java.lang.Integer leftPadding)
           
 void setLineSpacing(byte lineSpacing)
          Sets the line spacing.
 void setLineSpacing(java.lang.Byte lineSpacing)
           
 void setPadding(int padding)
          Sets the default padding in pixels (can be overwritten by individual settings).
 void setPadding(java.lang.Integer padding)
           
 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)
           
 void setReportFont(JRReportFont reportFont)
           
 void setRightBorder(byte rightBorder)
           
 void setRightBorder(java.lang.Byte rightBorder)
           
 void setRightBorderColor(java.awt.Color rightBorderColor)
           
 void setRightPadding(int rightPadding)
           
 void setRightPadding(java.lang.Integer rightPadding)
           
 void setRotation(byte rotation)
          Sets the text rotation.
 void setRotation(java.lang.Byte 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)
          Specifies whether the text can contain style tags.
 void setStyledText(java.lang.Boolean isStyledText)
           
 void setTextAlignment(byte horizontalAlignment)
          Deprecated. Replaced by setHorizontalAlignment(byte).
 void setTopBorder(byte topBorder)
          Sets the top border pen size.
 void setTopBorder(java.lang.Byte topBorder)
           
 void setTopBorderColor(java.awt.Color topBorderColor)
          Sets the top border color.
 void setTopPadding(int topPadding)
           
 void setTopPadding(java.lang.Integer topPadding)
           
 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)
          Gets the text vertical alignment.
 void setVerticalAlignment(java.lang.Byte verticalAlignment)
           
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getStyle, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, 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, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Field Detail

horizontalAlignment

protected java.lang.Byte horizontalAlignment

verticalAlignment

protected java.lang.Byte verticalAlignment

rotation

protected java.lang.Byte rotation

lineSpacing

protected java.lang.Byte lineSpacing

isStyledText

protected java.lang.Boolean isStyledText

border

protected java.lang.Byte border

topBorder

protected java.lang.Byte topBorder

leftBorder

protected java.lang.Byte leftBorder

bottomBorder

protected java.lang.Byte bottomBorder

rightBorder

protected java.lang.Byte rightBorder

borderColor

protected java.awt.Color borderColor

topBorderColor

protected java.awt.Color topBorderColor

leftBorderColor

protected java.awt.Color leftBorderColor

bottomBorderColor

protected java.awt.Color bottomBorderColor

rightBorderColor

protected java.awt.Color rightBorderColor

padding

protected java.lang.Integer padding

topPadding

protected java.lang.Integer topPadding

leftPadding

protected java.lang.Integer leftPadding

bottomPadding

protected java.lang.Integer bottomPadding

rightPadding

protected java.lang.Integer rightPadding

reportFont

protected JRReportFont reportFont

fontName

protected java.lang.String fontName

isBold

protected java.lang.Boolean isBold

isItalic

protected java.lang.Boolean isItalic

isUnderline

protected java.lang.Boolean isUnderline

isStrikeThrough

protected java.lang.Boolean isStrikeThrough

fontSize

protected java.lang.Integer fontSize

pdfFontName

protected java.lang.String pdfFontName

pdfEncoding

protected java.lang.String pdfEncoding

isPdfEmbedded

protected java.lang.Boolean isPdfEmbedded
Constructor Detail

JRBaseTextElement

protected JRBaseTextElement(JRTextElement textElement,
                            JRBaseObjectFactory factory)
Initializes properties that are specific to text elements. Common properties are initialized by its parent constructor.

Parameters:
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

getBaseFont

protected JRFont getBaseFont()

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()
Description copied from interface: JRAlignment
Gets the text horizontal alignment.

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

getOwnHorizontalAlignment

public java.lang.Byte getOwnHorizontalAlignment()
Specified by:
getOwnHorizontalAlignment in interface JRAlignment

setHorizontalAlignment

public void setHorizontalAlignment(byte 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 JRAlignment

setHorizontalAlignment

public void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
Specified by:
setHorizontalAlignment in interface JRAlignment

getVerticalAlignment

public byte getVerticalAlignment()
Description copied from interface: JRAlignment
Gets the text vertical alignment.

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

getOwnVerticalAlignment

public java.lang.Byte getOwnVerticalAlignment()
Specified by:
getOwnVerticalAlignment in interface JRAlignment

setVerticalAlignment

public void setVerticalAlignment(byte 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 JRAlignment

setVerticalAlignment

public void setVerticalAlignment(java.lang.Byte verticalAlignment)
Specified by:
setVerticalAlignment in interface JRAlignment

getRotation

public byte getRotation()
Description copied from interface: JRTextElement
Gets the text rotation.

Specified by:
getRotation in interface JRTextElement
Returns:
a value representing one of the rotation constants in this class

getOwnRotation

public java.lang.Byte getOwnRotation()
Specified by:
getOwnRotation in interface JRTextElement

setRotation

public void setRotation(byte rotation)
Description copied from interface: JRTextElement
Sets the text rotation.

Specified by:
setRotation in interface JRTextElement
Parameters:
rotation - a value representing one of the rotation constants in this class

setRotation

public void setRotation(java.lang.Byte rotation)
Specified by:
setRotation in interface JRTextElement

getLineSpacing

public byte getLineSpacing()
Description copied from interface: JRTextElement
Gets the line spacing.

Specified by:
getLineSpacing in interface JRTextElement
Returns:
a value representing one of the line spacing constants in this class

getOwnLineSpacing

public java.lang.Byte getOwnLineSpacing()
Specified by:
getOwnLineSpacing in interface JRTextElement

setLineSpacing

public void setLineSpacing(byte lineSpacing)
Description copied from interface: JRTextElement
Sets the line spacing.

Specified by:
setLineSpacing in interface JRTextElement
Parameters:
lineSpacing - a value representing one of the line spacing constants in this class

setLineSpacing

public void setLineSpacing(java.lang.Byte lineSpacing)
Specified by:
setLineSpacing in interface JRTextElement

isStyledText

public boolean isStyledText()
Description copied from interface: JRTextElement
Returns true if the text can contain style tags.

Specified by:
isStyledText in interface JRTextElement

isOwnStyledText

public java.lang.Boolean isOwnStyledText()
Specified by:
isOwnStyledText in interface JRTextElement

setStyledText

public void setStyledText(boolean isStyledText)
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)
Specified by:
setStyledText in interface JRTextElement

getBox

public JRBox getBox()
Deprecated. 

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

Specified by:
getBox in interface JRTextElement

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

getMode

public byte getMode()
Description copied from interface: JRElement
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:
getMode in interface JRElement
Overrides:
getMode in class JRBaseElement
Returns:
MODE_OPAQUE or MODE_TRANSPARENT

getBorder

public byte getBorder()
Description copied from interface: JRBox
Gets the default border pen size (can be overwritten by individual settings).

Specified by:
getBorder in interface JRBox

getOwnBorder

public java.lang.Byte getOwnBorder()
Specified by:
getOwnBorder in interface JRBox

setBorder

public void setBorder(byte border)
Description copied from interface: JRBox
Sets the default border pen size (can be overwritten by individual settings).

Specified by:
setBorder in interface JRBox

setBorder

public void setBorder(java.lang.Byte border)
Specified by:
setBorder in interface JRBox

getBorderColor

public java.awt.Color getBorderColor()
Description copied from interface: JRBox
Gets the default border color (can be overwritten by individual settings).

Specified by:
getBorderColor in interface JRBox

getOwnBorderColor

public java.awt.Color getOwnBorderColor()
Specified by:
getOwnBorderColor in interface JRBox

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Description copied from interface: JRBox
Sets the default border color (can be overwritten by individual settings).

Specified by:
setBorderColor in interface JRBox

getPadding

public int getPadding()
Description copied from interface: JRBox
Gets the default padding in pixels (can be overwritten by individual settings).

Specified by:
getPadding in interface JRBox

getOwnPadding

public java.lang.Integer getOwnPadding()
Specified by:
getOwnPadding in interface JRBox

setPadding

public void setPadding(int padding)
Description copied from interface: JRBox
Sets the default padding in pixels (can be overwritten by individual settings).

Specified by:
setPadding in interface JRBox

setPadding

public void setPadding(java.lang.Integer padding)
Specified by:
setPadding in interface JRBox

getTopBorder

public byte getTopBorder()
Description copied from interface: JRBox
Gets the top border pen size.

Specified by:
getTopBorder in interface JRBox

getOwnTopBorder

public java.lang.Byte getOwnTopBorder()
Description copied from interface: JRBox
Gets the top border pen size (if the default value was overwritten).

Specified by:
getOwnTopBorder in interface JRBox

setTopBorder

public void setTopBorder(byte topBorder)
Description copied from interface: JRBox
Sets the top border pen size.

Specified by:
setTopBorder in interface JRBox

setTopBorder

public void setTopBorder(java.lang.Byte topBorder)
Specified by:
setTopBorder in interface JRBox

getTopBorderColor

public java.awt.Color getTopBorderColor()
Description copied from interface: JRBox
Gets the top border color.

Specified by:
getTopBorderColor in interface JRBox

getOwnTopBorderColor

public java.awt.Color getOwnTopBorderColor()
Description copied from interface: JRBox
Gets the top border color (if the default value was overwritten).

Specified by:
getOwnTopBorderColor in interface JRBox

setTopBorderColor

public void setTopBorderColor(java.awt.Color topBorderColor)
Description copied from interface: JRBox
Sets the top border color.

Specified by:
setTopBorderColor in interface JRBox

getTopPadding

public int getTopPadding()
Specified by:
getTopPadding in interface JRBox

getOwnTopPadding

public java.lang.Integer getOwnTopPadding()
Specified by:
getOwnTopPadding in interface JRBox

setTopPadding

public void setTopPadding(int topPadding)
Specified by:
setTopPadding in interface JRBox

setTopPadding

public void setTopPadding(java.lang.Integer topPadding)
Specified by:
setTopPadding in interface JRBox

getLeftBorder

public byte getLeftBorder()
Specified by:
getLeftBorder in interface JRBox

getOwnLeftBorder

public java.lang.Byte getOwnLeftBorder()
Specified by:
getOwnLeftBorder in interface JRBox

setLeftBorder

public void setLeftBorder(byte leftBorder)
Specified by:
setLeftBorder in interface JRBox

setLeftBorder

public void setLeftBorder(java.lang.Byte leftBorder)
Specified by:
setLeftBorder in interface JRBox

getLeftBorderColor

public java.awt.Color getLeftBorderColor()
Specified by:
getLeftBorderColor in interface JRBox

getOwnLeftBorderColor

public java.awt.Color getOwnLeftBorderColor()
Specified by:
getOwnLeftBorderColor in interface JRBox

setLeftBorderColor

public void setLeftBorderColor(java.awt.Color leftBorderColor)
Specified by:
setLeftBorderColor in interface JRBox

getLeftPadding

public int getLeftPadding()
Specified by:
getLeftPadding in interface JRBox

getOwnLeftPadding

public java.lang.Integer getOwnLeftPadding()
Specified by:
getOwnLeftPadding in interface JRBox

setLeftPadding

public void setLeftPadding(int leftPadding)
Specified by:
setLeftPadding in interface JRBox

setLeftPadding

public void setLeftPadding(java.lang.Integer leftPadding)
Specified by:
setLeftPadding in interface JRBox

getBottomBorder

public byte getBottomBorder()
Specified by:
getBottomBorder in interface JRBox

getOwnBottomBorder

public java.lang.Byte getOwnBottomBorder()
Specified by:
getOwnBottomBorder in interface JRBox

setBottomBorder

public void setBottomBorder(byte bottomBorder)
Specified by:
setBottomBorder in interface JRBox

setBottomBorder

public void setBottomBorder(java.lang.Byte bottomBorder)
Specified by:
setBottomBorder in interface JRBox

getBottomBorderColor

public java.awt.Color getBottomBorderColor()
Specified by:
getBottomBorderColor in interface JRBox

getOwnBottomBorderColor

public java.awt.Color getOwnBottomBorderColor()
Specified by:
getOwnBottomBorderColor in interface JRBox

setBottomBorderColor

public void setBottomBorderColor(java.awt.Color bottomBorderColor)
Specified by:
setBottomBorderColor in interface JRBox

getBottomPadding

public int getBottomPadding()
Specified by:
getBottomPadding in interface JRBox

getOwnBottomPadding

public java.lang.Integer getOwnBottomPadding()
Specified by:
getOwnBottomPadding in interface JRBox

setBottomPadding

public void setBottomPadding(int bottomPadding)
Specified by:
setBottomPadding in interface JRBox

setBottomPadding

public void setBottomPadding(java.lang.Integer bottomPadding)
Specified by:
setBottomPadding in interface JRBox

getRightBorder

public byte getRightBorder()
Specified by:
getRightBorder in interface JRBox

getOwnRightBorder

public java.lang.Byte getOwnRightBorder()
Specified by:
getOwnRightBorder in interface JRBox

setRightBorder

public void setRightBorder(byte rightBorder)
Specified by:
setRightBorder in interface JRBox

setRightBorder

public void setRightBorder(java.lang.Byte rightBorder)
Specified by:
setRightBorder in interface JRBox

getRightBorderColor

public java.awt.Color getRightBorderColor()
Specified by:
getRightBorderColor in interface JRBox

getOwnRightBorderColor

public java.awt.Color getOwnRightBorderColor()
Specified by:
getOwnRightBorderColor in interface JRBox

setRightBorderColor

public void setRightBorderColor(java.awt.Color rightBorderColor)
Specified by:
setRightBorderColor in interface JRBox

getRightPadding

public int getRightPadding()
Specified by:
getRightPadding in interface JRBox

getOwnRightPadding

public java.lang.Integer getOwnRightPadding()
Specified by:
getOwnRightPadding in interface JRBox

setRightPadding

public void setRightPadding(int rightPadding)
Specified by:
setRightPadding in interface JRBox

setRightPadding

public void setRightPadding(java.lang.Integer rightPadding)
Specified by:
setRightPadding in interface JRBox

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 JRFont

getOwnFontSize

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

setFontSize

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

setFontSize

public void setFontSize(java.lang.Integer fontSize)
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


© 2001-2006 JasperSoft Corporation www.jaspersoft.com