net.sf.jasperreports.engine.base
Class JRBaseStyle

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseStyle
All Implemented Interfaces:
java.io.Serializable, JRStyle, JRStyleContainer
Direct Known Subclasses:
JRBaseConditionalStyle, JRDesignStyle

public class JRBaseStyle
extends java.lang.Object
implements JRStyle, java.io.Serializable

Version:
$Id: JRBaseStyle.java 1304 2006-06-20 09:51:24 +0300 (Tue, 20 Jun 2006) teodord $
Author:
Ionut Nedelcu (ionutned@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.awt.Color backcolor
           
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  JRConditionalStyle[] conditionalStyles
           
protected  JRDefaultStyleProvider defaultStyleProvider
           
protected  java.lang.Byte fill
           
protected  java.lang.String fontName
           
protected  java.lang.Integer fontSize
           
protected  java.awt.Color forecolor
           
protected  java.lang.Byte horizontalAlignment
           
protected  java.lang.Boolean isBlankWhenNull
           
protected  java.lang.Boolean isBold
           
protected  boolean isDefault
           
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.Byte mode
           
protected  java.lang.String name
           
protected  java.lang.Integer padding
           
protected  JRStyle parentStyle
           
protected  java.lang.String pattern
           
protected  java.lang.String pdfEncoding
           
protected  java.lang.String pdfFontName
           
protected  java.lang.Byte pen
           
protected  java.lang.Byte positionType
           
protected  java.lang.Integer radius
           
protected  java.lang.Byte rightBorder
           
protected  java.awt.Color rightBorderColor
           
protected  java.lang.Integer rightPadding
           
protected  java.lang.Byte rotation
           
protected  java.lang.Byte scaleImage
           
protected  java.lang.Byte stretchType
           
protected  java.lang.Byte topBorder
           
protected  java.awt.Color topBorderColor
           
protected  java.lang.Integer topPadding
           
protected  java.lang.Byte verticalAlignment
           
 
Constructor Summary
JRBaseStyle()
           
JRBaseStyle(JRStyle style, JRAbstractObjectFactory factory)
           
JRBaseStyle(java.lang.String name)
           
 
Method Summary
 java.awt.Color getBackcolor()
           
 java.lang.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).
 java.lang.Byte getBottomBorder()
           
 java.awt.Color getBottomBorderColor()
           
 java.lang.Integer getBottomPadding()
           
 JRConditionalStyle[] getConditionalStyles()
           
 JRDefaultStyleProvider getDefaultStyleProvider()
           
 java.lang.Byte getFill()
          Indicates the fill type used for this element.
 java.lang.String getFontName()
           
 java.lang.Integer getFontSize()
           
 java.awt.Color getForecolor()
           
 java.lang.Byte getHorizontalAlignment()
          Gets the horizontal alignment of the element.
 java.lang.Byte getLeftBorder()
           
 java.awt.Color getLeftBorderColor()
           
 java.lang.Integer getLeftPadding()
           
 java.lang.Byte getLineSpacing()
          Gets the line spacing.
 java.lang.Byte getMode()
          Returns the element transparency mode.
 java.lang.String getName()
          Gets the style unique name.
 java.awt.Color getOwnBackcolor()
           
 java.lang.Byte getOwnBorder()
           
 java.awt.Color getOwnBorderColor()
           
 java.lang.Byte getOwnBottomBorder()
           
 java.awt.Color getOwnBottomBorderColor()
           
 java.lang.Integer getOwnBottomPadding()
           
 java.lang.Byte getOwnFill()
           
 java.lang.String getOwnFontName()
           
 java.lang.Integer getOwnFontSize()
           
 java.awt.Color getOwnForecolor()
           
 java.lang.Byte getOwnHorizontalAlignment()
           
 java.lang.Byte getOwnLeftBorder()
           
 java.awt.Color getOwnLeftBorderColor()
           
 java.lang.Integer getOwnLeftPadding()
           
 java.lang.Byte getOwnLineSpacing()
           
 java.lang.Byte getOwnMode()
           
 java.lang.Integer getOwnPadding()
           
 java.lang.String getOwnPattern()
           
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Byte getOwnPen()
           
 java.lang.Integer getOwnRadius()
           
 java.lang.Byte getOwnRightBorder()
           
 java.awt.Color getOwnRightBorderColor()
           
 java.lang.Integer getOwnRightPadding()
           
 java.lang.Byte getOwnRotation()
           
 java.lang.Byte getOwnScaleImage()
           
 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()
           
 java.lang.Integer getPadding()
          Gets the default padding in pixels (can be overwritten by individual settings).
 java.lang.String getPattern()
          Gets the pattern used for this text field.
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
 java.lang.Byte getPen()
          Indicates the pen type used for this element.
 java.lang.Integer getRadius()
          Indicates the corner radius for rectangles with round corners.
 java.lang.Byte getRightBorder()
           
 java.awt.Color getRightBorderColor()
           
 java.lang.Integer getRightPadding()
           
 java.lang.Byte getRotation()
          Gets the text rotation.
 java.lang.Byte getScaleImage()
          Gets the image scale type.
 JRStyle getStyle()
           
 java.lang.Byte getTopBorder()
          Gets the top border pen size.
 java.awt.Color getTopBorderColor()
          Gets the top border color.
 java.lang.Integer getTopPadding()
           
 java.lang.Byte getVerticalAlignment()
          Gets the vertical alignment of the element.
 java.lang.Boolean isBlankWhenNull()
           
 java.lang.Boolean isBold()
           
 boolean isDefault()
          Gets a flag that specifies if this is the default report style.
 java.lang.Boolean isItalic()
           
 java.lang.Boolean isOwnBlankWhenNull()
           
 java.lang.Boolean isOwnBold()
           
 java.lang.Boolean isOwnItalic()
           
 java.lang.Boolean isOwnPdfEmbedded()
           
 java.lang.Boolean isOwnStrikeThrough()
           
 java.lang.Boolean isOwnStyledText()
           
 java.lang.Boolean isOwnUnderline()
           
 java.lang.Boolean isPdfEmbedded()
           
 java.lang.Boolean isStrikeThrough()
           
 java.lang.Boolean isStyledText()
          Returns true if the text can contain style tags.
 java.lang.Boolean isUnderline()
           
 void setBackcolor(java.awt.Color backcolor)
           
 void setBlankWhenNull(boolean isBlankWhenNull)
           
 void setBlankWhenNull(java.lang.Boolean isBlankWhenNull)
           
 void setBold(boolean bold)
           
 void setBold(java.lang.Boolean bold)
           
 void setBorder(byte border)
           
 void setBorder(java.lang.Byte border)
           
 void setBorderColor(java.awt.Color borderColor)
           
 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 setFill(byte fill)
           
 void setFill(java.lang.Byte fill)
           
 void setFontName(java.lang.String fontName)
           
 void setFontSize(int fontSize)
           
 void setFontSize(java.lang.Integer fontSize)
           
 void setForecolor(java.awt.Color forecolor)
           
 void setHorizontalAlignment(byte horizontalAlignment)
           
 void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
           
 void setItalic(boolean italic)
           
 void setItalic(java.lang.Boolean italic)
           
 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)
           
 void setLineSpacing(java.lang.Byte lineSpacing)
           
 void setMode(byte mode)
           
 void setMode(java.lang.Byte mode)
           
 void setPadding(int padding)
           
 void setPadding(java.lang.Integer padding)
           
 void setPattern(java.lang.String pattern)
           
 void setPdfEmbedded(boolean pdfEmbedded)
           
 void setPdfEmbedded(java.lang.Boolean pdfEmbedded)
           
 void setPdfEncoding(java.lang.String pdfEncoding)
           
 void setPdfFontName(java.lang.String pdfFontName)
           
 void setPen(byte pen)
           
 void setPen(java.lang.Byte pen)
           
 void setRadius(int radius)
           
 void setRadius(java.lang.Integer radius)
           
 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)
           
 void setRotation(java.lang.Byte rotation)
           
 void setScaleImage(byte scaleImage)
           
 void setScaleImage(java.lang.Byte scaleImage)
           
 void setStrikeThrough(boolean strikeThrough)
           
 void setStrikeThrough(java.lang.Boolean strikeThrough)
           
 void setStyledText(boolean styledText)
           
 void setStyledText(java.lang.Boolean styledText)
           
 void setTopBorder(byte topBorder)
           
 void setTopBorder(java.lang.Byte topBorder)
           
 void setTopBorderColor(java.awt.Color topBorderColor)
           
 void setTopPadding(int topPadding)
           
 void setTopPadding(java.lang.Integer topPadding)
           
 void setUnderline(boolean underline)
           
 void setUnderline(java.lang.Boolean underline)
           
 void setVerticalAlignment(byte verticalAlignment)
           
 void setVerticalAlignment(java.lang.Byte verticalAlignment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultStyleProvider

protected JRDefaultStyleProvider defaultStyleProvider

parentStyle

protected JRStyle parentStyle

name

protected java.lang.String name

isDefault

protected boolean isDefault

positionType

protected java.lang.Byte positionType

stretchType

protected java.lang.Byte stretchType

mode

protected java.lang.Byte mode

forecolor

protected java.awt.Color forecolor

backcolor

protected java.awt.Color backcolor

pen

protected java.lang.Byte pen

fill

protected java.lang.Byte fill

radius

protected java.lang.Integer radius

scaleImage

protected java.lang.Byte scaleImage

horizontalAlignment

protected java.lang.Byte horizontalAlignment

verticalAlignment

protected java.lang.Byte verticalAlignment

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

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

rotation

protected java.lang.Byte rotation

lineSpacing

protected java.lang.Byte lineSpacing

isStyledText

protected java.lang.Boolean isStyledText

pattern

protected java.lang.String pattern

isBlankWhenNull

protected java.lang.Boolean isBlankWhenNull

conditionalStyles

protected JRConditionalStyle[] conditionalStyles
Constructor Detail

JRBaseStyle

public JRBaseStyle()

JRBaseStyle

public JRBaseStyle(java.lang.String name)

JRBaseStyle

public JRBaseStyle(JRStyle style,
                   JRAbstractObjectFactory factory)
Method Detail

getDefaultStyleProvider

public JRDefaultStyleProvider getDefaultStyleProvider()
Specified by:
getDefaultStyleProvider in interface JRStyleContainer

getStyle

public JRStyle getStyle()
Specified by:
getStyle in interface JRStyleContainer

getName

public java.lang.String getName()
Description copied from interface: JRStyle
Gets the style unique name.

Specified by:
getName in interface JRStyle

isDefault

public boolean isDefault()
Description copied from interface: JRStyle
Gets a flag that specifies if this is the default report style.

Specified by:
isDefault in interface JRStyle

getForecolor

public java.awt.Color getForecolor()
Specified by:
getForecolor in interface JRStyle

getOwnForecolor

public java.awt.Color getOwnForecolor()
Specified by:
getOwnForecolor in interface JRStyle

getBackcolor

public java.awt.Color getBackcolor()
Specified by:
getBackcolor in interface JRStyle

getOwnBackcolor

public java.awt.Color getOwnBackcolor()
Specified by:
getOwnBackcolor in interface JRStyle

getPen

public java.lang.Byte getPen()
Description copied from interface: JRStyle
Indicates the pen type used for this element.

Specified by:
getPen in interface JRStyle
Returns:
one of the pen constants in this class

getOwnPen

public java.lang.Byte getOwnPen()
Specified by:
getOwnPen in interface JRStyle

getFill

public java.lang.Byte getFill()
Description copied from interface: JRStyle
Indicates the fill type used for this element.

Specified by:
getFill in interface JRStyle
Returns:
one of the pen constants in this class

getOwnFill

public java.lang.Byte getOwnFill()
Specified by:
getOwnFill in interface JRStyle

getRadius

public java.lang.Integer getRadius()
Description copied from interface: JRStyle
Indicates the corner radius for rectangles with round corners. The default is 0.

Specified by:
getRadius in interface JRStyle

getOwnRadius

public java.lang.Integer getOwnRadius()
Specified by:
getOwnRadius in interface JRStyle

getScaleImage

public java.lang.Byte getScaleImage()
Description copied from interface: JRStyle
Gets the image scale type.

Specified by:
getScaleImage in interface JRStyle
Returns:
one of the scale constants in this class

getOwnScaleImage

public java.lang.Byte getOwnScaleImage()
Specified by:
getOwnScaleImage in interface JRStyle

getHorizontalAlignment

public java.lang.Byte getHorizontalAlignment()
Description copied from interface: JRStyle
Gets the horizontal alignment of the element.

Specified by:
getHorizontalAlignment in interface JRStyle
Returns:
one of the alignment values defined in JRAlignment

getOwnHorizontalAlignment

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

getVerticalAlignment

public java.lang.Byte getVerticalAlignment()
Description copied from interface: JRStyle
Gets the vertical alignment of the element.

Specified by:
getVerticalAlignment in interface JRStyle
Returns:
one of the alignment values defined in JRAlignment

getOwnVerticalAlignment

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

getBorder

public java.lang.Byte getBorder()
Description copied from interface: JRStyle
Gets the default border pen size (can be overwritten by individual settings).

Specified by:
getBorder in interface JRStyle

getOwnBorder

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

getBorderColor

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

Specified by:
getBorderColor in interface JRStyle

getOwnBorderColor

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

getPadding

public java.lang.Integer getPadding()
Description copied from interface: JRStyle
Gets the default padding in pixels (can be overwritten by individual settings).

Specified by:
getPadding in interface JRStyle

getOwnPadding

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

getTopBorder

public java.lang.Byte getTopBorder()
Description copied from interface: JRStyle
Gets the top border pen size.

Specified by:
getTopBorder in interface JRStyle

getOwnTopBorder

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

Specified by:
getOwnTopBorder in interface JRStyle

getTopBorderColor

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

Specified by:
getTopBorderColor in interface JRStyle

getOwnTopBorderColor

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

Specified by:
getOwnTopBorderColor in interface JRStyle

getTopPadding

public java.lang.Integer getTopPadding()
Specified by:
getTopPadding in interface JRStyle

getOwnTopPadding

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

getLeftBorder

public java.lang.Byte getLeftBorder()
Specified by:
getLeftBorder in interface JRStyle

getOwnLeftBorder

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

getLeftBorderColor

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

getOwnLeftBorderColor

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

getLeftPadding

public java.lang.Integer getLeftPadding()
Specified by:
getLeftPadding in interface JRStyle

getOwnLeftPadding

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

getBottomBorder

public java.lang.Byte getBottomBorder()
Specified by:
getBottomBorder in interface JRStyle

getOwnBottomBorder

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

getBottomBorderColor

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

getOwnBottomBorderColor

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

getBottomPadding

public java.lang.Integer getBottomPadding()
Specified by:
getBottomPadding in interface JRStyle

getOwnBottomPadding

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

getRightBorder

public java.lang.Byte getRightBorder()
Specified by:
getRightBorder in interface JRStyle

getOwnRightBorder

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

getRightBorderColor

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

getOwnRightBorderColor

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

getRightPadding

public java.lang.Integer getRightPadding()
Specified by:
getRightPadding in interface JRStyle

getOwnRightPadding

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

getRotation

public java.lang.Byte getRotation()
Description copied from interface: JRStyle
Gets the text rotation.

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

getOwnRotation

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

getLineSpacing

public java.lang.Byte getLineSpacing()
Description copied from interface: JRStyle
Gets the line spacing.

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

getOwnLineSpacing

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

isStyledText

public java.lang.Boolean isStyledText()
Description copied from interface: JRStyle
Returns true if the text can contain style tags.

Specified by:
isStyledText in interface JRStyle

isOwnStyledText

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

isBlankWhenNull

public java.lang.Boolean isBlankWhenNull()
Specified by:
isBlankWhenNull in interface JRStyle

isOwnBlankWhenNull

public java.lang.Boolean isOwnBlankWhenNull()
Specified by:
isOwnBlankWhenNull in interface JRStyle

getFontName

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

getOwnFontName

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

isBold

public java.lang.Boolean isBold()
Specified by:
isBold in interface JRStyle

isOwnBold

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

isItalic

public java.lang.Boolean isItalic()
Specified by:
isItalic in interface JRStyle

isOwnItalic

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

isUnderline

public java.lang.Boolean isUnderline()
Specified by:
isUnderline in interface JRStyle

isOwnUnderline

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

isStrikeThrough

public java.lang.Boolean isStrikeThrough()
Specified by:
isStrikeThrough in interface JRStyle

isOwnStrikeThrough

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

getFontSize

public java.lang.Integer getFontSize()
Specified by:
getFontSize in interface JRStyle

getOwnFontSize

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

getPdfFontName

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

getOwnPdfFontName

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

getPdfEncoding

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

getOwnPdfEncoding

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

isPdfEmbedded

public java.lang.Boolean isPdfEmbedded()
Specified by:
isPdfEmbedded in interface JRStyle

isOwnPdfEmbedded

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

getPattern

public java.lang.String getPattern()
Description copied from interface: JRStyle
Gets the pattern used for this text field. The pattern will be used in a SimpleDateFormat for dates and a DecimalFormat for numeric text fields. The pattern format must follow one of these two classes formatting rules, as specified in the JDK API docs.

Specified by:
getPattern in interface JRStyle
Returns:
a string containing the pattern.

getOwnPattern

public java.lang.String getOwnPattern()
Specified by:
getOwnPattern in interface JRStyle

getMode

public java.lang.Byte getMode()
Description copied from interface: JRStyle
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 JRStyle
Returns:
MODE_OPAQUE or MODE_TRANSPARENT

getOwnMode

public java.lang.Byte getOwnMode()
Specified by:
getOwnMode in interface JRStyle

setForecolor

public void setForecolor(java.awt.Color forecolor)
Specified by:
setForecolor in interface JRStyle

setBackcolor

public void setBackcolor(java.awt.Color backcolor)
Specified by:
setBackcolor in interface JRStyle

setMode

public void setMode(byte mode)
Specified by:
setMode in interface JRStyle

setMode

public void setMode(java.lang.Byte mode)
Specified by:
setMode in interface JRStyle

setPen

public void setPen(byte pen)
Specified by:
setPen in interface JRStyle

setPen

public void setPen(java.lang.Byte pen)
Specified by:
setPen in interface JRStyle

setFill

public void setFill(byte fill)
Specified by:
setFill in interface JRStyle

setFill

public void setFill(java.lang.Byte fill)
Specified by:
setFill in interface JRStyle

setRadius

public void setRadius(int radius)
Specified by:
setRadius in interface JRStyle

setRadius

public void setRadius(java.lang.Integer radius)
Specified by:
setRadius in interface JRStyle

setScaleImage

public void setScaleImage(byte scaleImage)
Specified by:
setScaleImage in interface JRStyle

setScaleImage

public void setScaleImage(java.lang.Byte scaleImage)
Specified by:
setScaleImage in interface JRStyle

setHorizontalAlignment

public void setHorizontalAlignment(byte horizontalAlignment)
Specified by:
setHorizontalAlignment in interface JRStyle

setHorizontalAlignment

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

setVerticalAlignment

public void setVerticalAlignment(byte verticalAlignment)
Specified by:
setVerticalAlignment in interface JRStyle

setVerticalAlignment

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

setBorder

public void setBorder(byte border)
Specified by:
setBorder in interface JRStyle

setBorder

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

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Specified by:
setBorderColor in interface JRStyle

setPadding

public void setPadding(int padding)
Specified by:
setPadding in interface JRStyle

setPadding

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

setTopBorder

public void setTopBorder(byte topBorder)
Specified by:
setTopBorder in interface JRStyle

setTopBorder

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

setTopBorderColor

public void setTopBorderColor(java.awt.Color topBorderColor)
Specified by:
setTopBorderColor in interface JRStyle

setTopPadding

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

setTopPadding

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

setLeftBorder

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

setLeftBorder

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

setLeftBorderColor

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

setLeftPadding

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

setLeftPadding

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

setBottomBorder

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

setBottomBorder

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

setBottomBorderColor

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

setBottomPadding

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

setBottomPadding

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

setRightBorder

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

setRightBorder

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

setRightBorderColor

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

setRightPadding

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

setRightPadding

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

setRotation

public void setRotation(byte rotation)
Specified by:
setRotation in interface JRStyle

setRotation

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

setFontName

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

setBold

public void setBold(boolean bold)
Specified by:
setBold in interface JRStyle

setBold

public void setBold(java.lang.Boolean bold)
Specified by:
setBold in interface JRStyle

setItalic

public void setItalic(boolean italic)
Specified by:
setItalic in interface JRStyle

setItalic

public void setItalic(java.lang.Boolean italic)
Specified by:
setItalic in interface JRStyle

setPdfEmbedded

public void setPdfEmbedded(boolean pdfEmbedded)
Specified by:
setPdfEmbedded in interface JRStyle

setPdfEmbedded

public void setPdfEmbedded(java.lang.Boolean pdfEmbedded)
Specified by:
setPdfEmbedded in interface JRStyle

setStrikeThrough

public void setStrikeThrough(boolean strikeThrough)
Specified by:
setStrikeThrough in interface JRStyle

setStrikeThrough

public void setStrikeThrough(java.lang.Boolean strikeThrough)
Specified by:
setStrikeThrough in interface JRStyle

setStyledText

public void setStyledText(boolean styledText)
Specified by:
setStyledText in interface JRStyle

setStyledText

public void setStyledText(java.lang.Boolean styledText)
Specified by:
setStyledText in interface JRStyle

setBlankWhenNull

public void setBlankWhenNull(boolean isBlankWhenNull)
Specified by:
setBlankWhenNull in interface JRStyle

setBlankWhenNull

public void setBlankWhenNull(java.lang.Boolean isBlankWhenNull)
Specified by:
setBlankWhenNull in interface JRStyle

setUnderline

public void setUnderline(boolean underline)
Specified by:
setUnderline in interface JRStyle

setUnderline

public void setUnderline(java.lang.Boolean underline)
Specified by:
setUnderline in interface JRStyle

setLineSpacing

public void setLineSpacing(byte lineSpacing)
Specified by:
setLineSpacing in interface JRStyle

setLineSpacing

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

setPattern

public void setPattern(java.lang.String pattern)
Specified by:
setPattern in interface JRStyle

setPdfEncoding

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

setPdfFontName

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

setFontSize

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

setFontSize

public void setFontSize(java.lang.Integer fontSize)
Specified by:
setFontSize in interface JRStyle

getConditionalStyles

public JRConditionalStyle[] getConditionalStyles()
Specified by:
getConditionalStyles in interface JRStyle


© 2001-2006 JasperSoft Corporation www.jaspersoft.com