net.sf.dynamicreports.design.transformation
Class StyleResolver

java.lang.Object
  extended by net.sf.dynamicreports.design.transformation.StyleResolver

public class StyleResolver
extends Object

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Constructor Summary
StyleResolver()
           
 
Method Summary
static Color getBackgroundColor(DRIReportStyle reportStyle, StyleTransform transform)
           
protected static Boolean getFontBold(DRDesignStyle style)
           
protected static int getFontHeight(DRDesignStyle style, int rows)
           
static double getFontHeight(DRFont font)
           
protected static Boolean getFontItalic(DRDesignStyle style)
           
protected static String getFontName(DRDesignStyle style)
           
protected static Integer getFontSize(DRDesignStyle style)
           
protected static Boolean getFontStrikeThrough(DRDesignStyle style)
           
protected static Boolean getFontUnderline(DRDesignStyle style)
           
protected static int getFontWidth(DRDesignStyle style, int columns)
           
static double getFontWidth(DRFont font)
           
static HorizontalAlignment getHorizontalAlignment(DRDesignStyle style)
           
static int getHorizontalPadding(DRIDesignStyle style)
           
static String getPattern(DRDesignStyle style)
           
protected static Boolean getPdfEmbedded(DRDesignStyle style)
           
protected static String getPdfEncoding(DRDesignStyle style)
           
protected static String getPdfFontName(DRDesignStyle style)
           
static int getVerticalPadding(DRIDesignStyle style)
           
static Color mergeColors(Color color1, Color color2, float percent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleResolver

public StyleResolver()
Method Detail

getFontWidth

protected static int getFontWidth(DRDesignStyle style,
                                  int columns)

getFontHeight

protected static int getFontHeight(DRDesignStyle style,
                                   int rows)

getFontWidth

public static double getFontWidth(DRFont font)

getFontHeight

public static double getFontHeight(DRFont font)

getFontName

protected static String getFontName(DRDesignStyle style)

getFontSize

protected static Integer getFontSize(DRDesignStyle style)

getFontBold

protected static Boolean getFontBold(DRDesignStyle style)

getFontItalic

protected static Boolean getFontItalic(DRDesignStyle style)

getFontUnderline

protected static Boolean getFontUnderline(DRDesignStyle style)

getFontStrikeThrough

protected static Boolean getFontStrikeThrough(DRDesignStyle style)

getPdfFontName

protected static String getPdfFontName(DRDesignStyle style)

getPdfEncoding

protected static String getPdfEncoding(DRDesignStyle style)

getPdfEmbedded

protected static Boolean getPdfEmbedded(DRDesignStyle style)

getHorizontalPadding

public static int getHorizontalPadding(DRIDesignStyle style)

getVerticalPadding

public static int getVerticalPadding(DRIDesignStyle style)

getPattern

public static String getPattern(DRDesignStyle style)

getHorizontalAlignment

public static HorizontalAlignment getHorizontalAlignment(DRDesignStyle style)

getBackgroundColor

public static Color getBackgroundColor(DRIReportStyle reportStyle,
                                       StyleTransform transform)

mergeColors

public static Color mergeColors(Color color1,
                                Color color2,
                                float percent)


Copyright © 2010-2014. All Rights Reserved.