net.sf.jasperreports.engine.util
Class JRStyleResolver

java.lang.Object
  extended by net.sf.jasperreports.engine.util.JRStyleResolver

public class JRStyleResolver
extends java.lang.Object

Version:
$Id: JRStyleResolver.java 1505 2006-11-23 15:48:47 +0200 (Thu, 23 Nov 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Constructor Summary
JRStyleResolver()
           
 
Method Summary
static void appendStyle(JRStyle destStyle, JRStyle srcStyle)
          Merges two styles, by appending the properties of the source style to the ones of the destination style.
static java.awt.Color getBackcolor(JRElement element)
           
static java.awt.Color getBackcolor(JRPrintElement element)
           
static java.awt.Color getBackcolor(JRStyle style)
           
static java.awt.Color getBackcolor(JRTemplateElement element)
           
static byte getBorder(JRBox box)
           
static java.lang.Byte getBorder(JRStyle style)
           
static java.awt.Color getBorderColor(JRBox box, java.awt.Color defaultColor)
           
static java.awt.Color getBorderColor(JRStyle style)
           
static byte getBottomBorder(JRBox box)
           
static java.lang.Byte getBottomBorder(JRStyle style)
           
static java.awt.Color getBottomBorderColor(JRBox box, java.awt.Color defaultColor)
           
static java.awt.Color getBottomBorderColor(JRStyle style)
           
static int getBottomPadding(JRBox box)
           
static java.lang.Integer getBottomPadding(JRStyle style)
           
static byte getFill(JRGraphicElement element, byte defaultFill)
           
static byte getFill(JRPrintGraphicElement element, byte defaultFill)
           
static java.lang.Byte getFill(JRStyle style)
           
static byte getFill(JRTemplateGraphicElement element, byte defaultFill)
           
static java.lang.String getFontName(JRFont font)
           
static java.lang.String getFontName(JRStyle style)
           
static int getFontSize(JRFont font)
           
static java.lang.Integer getFontSize(JRStyle style)
           
static java.awt.Color getForecolor(JRElement element)
           
static java.awt.Color getForecolor(JRPrintElement element)
           
static java.awt.Color getForecolor(JRStyle style)
           
static java.awt.Color getForecolor(JRTemplateElement element)
           
static byte getHorizontalAlignment(JRAlignment alignment)
           
static java.lang.Byte getHorizontalAlignment(JRStyle style)
           
static byte getLeftBorder(JRBox box)
           
static java.lang.Byte getLeftBorder(JRStyle style)
           
static java.awt.Color getLeftBorderColor(JRBox box, java.awt.Color defaultColor)
           
static java.awt.Color getLeftBorderColor(JRStyle style)
           
static int getLeftPadding(JRBox box)
           
static java.lang.Integer getLeftPadding(JRStyle style)
           
static byte getLineSpacing(JRPrintText element)
           
static java.lang.Byte getLineSpacing(JRStyle style)
           
static byte getLineSpacing(JRTemplateText element)
           
static byte getLineSpacing(JRTextElement element)
           
static byte getMode(JRElement element, byte defaultMode)
           
static byte getMode(JRPrintElement element, byte defaultMode)
           
static java.lang.Byte getMode(JRStyle style)
           
static byte getMode(JRTemplateElement element, byte defaultMode)
           
static int getPadding(JRBox box)
           
static java.lang.Integer getPadding(JRStyle style)
           
static java.lang.String getPattern(JRStyle style)
           
static java.lang.String getPattern(JRTextField element)
           
static java.lang.String getPdfEncoding(JRFont font)
           
static java.lang.String getPdfEncoding(JRStyle style)
           
static java.lang.String getPdfFontName(JRFont font)
           
static java.lang.String getPdfFontName(JRStyle style)
           
static byte getPen(JRGraphicElement element, byte defaultPen)
           
static byte getPen(JRPrintGraphicElement element, byte defaultPen)
           
static java.lang.Byte getPen(JRStyle style)
           
static byte getPen(JRTemplateGraphicElement element, byte defaultPen)
           
static int getRadius(JRPrintRectangle rectangle)
           
static int getRadius(JRRectangle rectangle)
           
static java.lang.Integer getRadius(JRStyle style)
           
static int getRadius(JRTemplateRectangle rectangle)
           
static byte getRightBorder(JRBox box)
           
static java.lang.Byte getRightBorder(JRStyle style)
           
static java.awt.Color getRightBorderColor(JRBox box, java.awt.Color defaultColor)
           
static java.awt.Color getRightBorderColor(JRStyle style)
           
static int getRightPadding(JRBox box)
           
static java.lang.Integer getRightPadding(JRStyle style)
           
static byte getRotation(JRPrintText element)
           
static java.lang.Byte getRotation(JRStyle style)
           
static byte getRotation(JRTemplateText element)
           
static byte getRotation(JRTextElement element)
           
static byte getScaleImage(JRImage image)
           
static byte getScaleImage(JRPrintImage image)
           
static java.lang.Byte getScaleImage(JRStyle style)
           
static byte getScaleImage(JRTemplateImage image)
           
static byte getTopBorder(JRBox box)
           
static java.lang.Byte getTopBorder(JRStyle style)
           
static java.awt.Color getTopBorderColor(JRBox box, java.awt.Color defaultColor)
           
static java.awt.Color getTopBorderColor(JRStyle style)
           
static int getTopPadding(JRBox box)
           
static java.lang.Integer getTopPadding(JRStyle style)
           
static byte getVerticalAlignment(JRAlignment alignment)
           
static java.lang.Byte getVerticalAlignment(JRStyle style)
           
static java.lang.Boolean isBlankWhenNull(JRStyle style)
           
static boolean isBlankWhenNull(JRTextField element)
           
static boolean isBold(JRFont font)
           
static java.lang.Boolean isBold(JRStyle style)
           
static boolean isItalic(JRFont font)
           
static java.lang.Boolean isItalic(JRStyle style)
           
static boolean isPdfEmbedded(JRFont font)
           
static java.lang.Boolean isPdfEmbedded(JRStyle style)
           
static boolean isStrikeThrough(JRFont font)
           
static java.lang.Boolean isStrikeThrough(JRStyle style)
           
static boolean isStyledText(JRPrintText element)
           
static java.lang.Boolean isStyledText(JRStyle style)
           
static boolean isStyledText(JRTemplateText element)
           
static boolean isStyledText(JRTextElement element)
           
static boolean isUnderline(JRFont font)
           
static java.lang.Boolean isUnderline(JRStyle style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRStyleResolver

public JRStyleResolver()
Method Detail

getMode

public static byte getMode(JRElement element,
                           byte defaultMode)

getMode

public static byte getMode(JRPrintElement element,
                           byte defaultMode)

getMode

public static byte getMode(JRTemplateElement element,
                           byte defaultMode)

getMode

public static java.lang.Byte getMode(JRStyle style)

getForecolor

public static java.awt.Color getForecolor(JRElement element)

getForecolor

public static java.awt.Color getForecolor(JRPrintElement element)

getForecolor

public static java.awt.Color getForecolor(JRTemplateElement element)

getForecolor

public static java.awt.Color getForecolor(JRStyle style)

getBackcolor

public static java.awt.Color getBackcolor(JRElement element)

getBackcolor

public static java.awt.Color getBackcolor(JRPrintElement element)

getBackcolor

public static java.awt.Color getBackcolor(JRTemplateElement element)

getBackcolor

public static java.awt.Color getBackcolor(JRStyle style)

getPen

public static byte getPen(JRGraphicElement element,
                          byte defaultPen)

getPen

public static byte getPen(JRPrintGraphicElement element,
                          byte defaultPen)

getPen

public static byte getPen(JRTemplateGraphicElement element,
                          byte defaultPen)

getPen

public static java.lang.Byte getPen(JRStyle style)

getFill

public static byte getFill(JRGraphicElement element,
                           byte defaultFill)

getFill

public static byte getFill(JRPrintGraphicElement element,
                           byte defaultFill)

getFill

public static byte getFill(JRTemplateGraphicElement element,
                           byte defaultFill)

getFill

public static java.lang.Byte getFill(JRStyle style)

getRadius

public static int getRadius(JRRectangle rectangle)

getRadius

public static int getRadius(JRPrintRectangle rectangle)

getRadius

public static int getRadius(JRTemplateRectangle rectangle)

getRadius

public static java.lang.Integer getRadius(JRStyle style)

getScaleImage

public static byte getScaleImage(JRImage image)

getScaleImage

public static byte getScaleImage(JRPrintImage image)

getScaleImage

public static byte getScaleImage(JRTemplateImage image)

getScaleImage

public static java.lang.Byte getScaleImage(JRStyle style)

getHorizontalAlignment

public static byte getHorizontalAlignment(JRAlignment alignment)

getHorizontalAlignment

public static java.lang.Byte getHorizontalAlignment(JRStyle style)

getVerticalAlignment

public static byte getVerticalAlignment(JRAlignment alignment)

getVerticalAlignment

public static java.lang.Byte getVerticalAlignment(JRStyle style)

getRotation

public static byte getRotation(JRTextElement element)

getRotation

public static byte getRotation(JRPrintText element)

getRotation

public static byte getRotation(JRTemplateText element)

getRotation

public static java.lang.Byte getRotation(JRStyle style)

getLineSpacing

public static byte getLineSpacing(JRTextElement element)

getLineSpacing

public static byte getLineSpacing(JRPrintText element)

getLineSpacing

public static byte getLineSpacing(JRTemplateText element)

getLineSpacing

public static java.lang.Byte getLineSpacing(JRStyle style)

isStyledText

public static boolean isStyledText(JRTextElement element)

isStyledText

public static boolean isStyledText(JRPrintText element)

isStyledText

public static boolean isStyledText(JRTemplateText element)

isStyledText

public static java.lang.Boolean isStyledText(JRStyle style)

getPattern

public static java.lang.String getPattern(JRTextField element)

getPattern

public static java.lang.String getPattern(JRStyle style)

isBlankWhenNull

public static boolean isBlankWhenNull(JRTextField element)

isBlankWhenNull

public static java.lang.Boolean isBlankWhenNull(JRStyle style)

getFontName

public static java.lang.String getFontName(JRFont font)

getFontName

public static java.lang.String getFontName(JRStyle style)

isBold

public static boolean isBold(JRFont font)

isBold

public static java.lang.Boolean isBold(JRStyle style)

isItalic

public static boolean isItalic(JRFont font)

isItalic

public static java.lang.Boolean isItalic(JRStyle style)

isUnderline

public static boolean isUnderline(JRFont font)

isUnderline

public static java.lang.Boolean isUnderline(JRStyle style)

isStrikeThrough

public static boolean isStrikeThrough(JRFont font)

isStrikeThrough

public static java.lang.Boolean isStrikeThrough(JRStyle style)

getFontSize

public static int getFontSize(JRFont font)

getFontSize

public static java.lang.Integer getFontSize(JRStyle style)

getPdfFontName

public static java.lang.String getPdfFontName(JRFont font)

getPdfFontName

public static java.lang.String getPdfFontName(JRStyle style)

getPdfEncoding

public static java.lang.String getPdfEncoding(JRFont font)

getPdfEncoding

public static java.lang.String getPdfEncoding(JRStyle style)

isPdfEmbedded

public static boolean isPdfEmbedded(JRFont font)

isPdfEmbedded

public static java.lang.Boolean isPdfEmbedded(JRStyle style)

getBorder

public static byte getBorder(JRBox box)

getBorder

public static java.lang.Byte getBorder(JRStyle style)

getTopBorder

public static byte getTopBorder(JRBox box)

getTopBorder

public static java.lang.Byte getTopBorder(JRStyle style)

getLeftBorder

public static byte getLeftBorder(JRBox box)

getLeftBorder

public static java.lang.Byte getLeftBorder(JRStyle style)

getBottomBorder

public static byte getBottomBorder(JRBox box)

getBottomBorder

public static java.lang.Byte getBottomBorder(JRStyle style)

getRightBorder

public static byte getRightBorder(JRBox box)

getRightBorder

public static java.lang.Byte getRightBorder(JRStyle style)

getBorderColor

public static java.awt.Color getBorderColor(JRBox box,
                                            java.awt.Color defaultColor)

getBorderColor

public static java.awt.Color getBorderColor(JRStyle style)

getTopBorderColor

public static java.awt.Color getTopBorderColor(JRBox box,
                                               java.awt.Color defaultColor)

getTopBorderColor

public static java.awt.Color getTopBorderColor(JRStyle style)

getLeftBorderColor

public static java.awt.Color getLeftBorderColor(JRBox box,
                                                java.awt.Color defaultColor)

getLeftBorderColor

public static java.awt.Color getLeftBorderColor(JRStyle style)

getBottomBorderColor

public static java.awt.Color getBottomBorderColor(JRBox box,
                                                  java.awt.Color defaultColor)

getBottomBorderColor

public static java.awt.Color getBottomBorderColor(JRStyle style)

getRightBorderColor

public static java.awt.Color getRightBorderColor(JRBox box,
                                                 java.awt.Color defaultColor)

getRightBorderColor

public static java.awt.Color getRightBorderColor(JRStyle style)

getPadding

public static int getPadding(JRBox box)

getPadding

public static java.lang.Integer getPadding(JRStyle style)

getTopPadding

public static int getTopPadding(JRBox box)

getTopPadding

public static java.lang.Integer getTopPadding(JRStyle style)

getLeftPadding

public static int getLeftPadding(JRBox box)

getLeftPadding

public static java.lang.Integer getLeftPadding(JRStyle style)

getBottomPadding

public static int getBottomPadding(JRBox box)

getBottomPadding

public static java.lang.Integer getBottomPadding(JRStyle style)

getRightPadding

public static int getRightPadding(JRBox box)

getRightPadding

public static java.lang.Integer getRightPadding(JRStyle style)

appendStyle

public static void appendStyle(JRStyle destStyle,
                               JRStyle srcStyle)
Merges two styles, by appending the properties of the source style to the ones of the destination style.



© 2001-2006 JasperSoft Corporation www.jaspersoft.com