net.sf.jasperreports.engine.util
Class JRStyleResolver

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

public final class JRStyleResolver
extends Object

Version:
$Id: JRStyleResolver.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

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 Color getBackcolor(JRChartPlot plot)
           
static Color getBackcolor(JRCommonElement element)
           
static Color getBackcolor(JRStyle style)
           
static JRStyle getBaseStyle(JRStyleContainer styleContainer)
           
static Integer getBottomPadding(JRLineBox box)
           
static Color getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
           
static Color getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
           
static Color getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
           
static FillEnum getFillValue(JRCommonGraphicElement element)
           
static FillEnum getFillValue(JRStyle style)
           
static Integer getFirstLineIndent(JRParagraph paragraph)
           
static String getFontName(JRFont font)
           
static String getFontName(JRStyle style)
           
static int getFontSize(JRFont font)
           
static Integer getFontSize(JRStyle style)
           
static Color getForecolor(JRChartPlot plot)
           
static Color getForecolor(JRCommonElement element)
           
static Color getForecolor(JRStyle style)
           
static HorizontalAlignEnum getHorizontalAlignmentValue(JRAlignment alignment)
           
static HorizontalAlignEnum getHorizontalAlignmentValue(JRStyle style)
           
static Integer getLeftIndent(JRParagraph paragraph)
           
static Integer getLeftPadding(JRLineBox box)
           
static Color getLegendBackgroundColor(JRChart chart)
           
static Color getLegendColor(JRChart chart)
           
static Color getLineColor(JRBoxPen boxPen, Color defaultColor)
           
static Color getLineColor(JRPen pen, Color defaultColor)
           
static LineSpacingEnum getLineSpacing(JRParagraph paragraph)
           
static Float getLineSpacingSize(JRParagraph paragraph)
           
static LineSpacingEnum getLineSpacingValue(JRCommonText element)
          Deprecated. Replaced by getLineSpacing(JRParagraph).
static LineSpacingEnum getLineSpacingValue(JRStyle style)
          Deprecated. Replaced by getLineSpacing(JRParagraph).
static LineStyleEnum getLineStyleValue(JRBoxPen boxPen)
           
static LineStyleEnum getLineStyleValue(JRPen pen)
           
static Float getLineWidth(JRBoxPen boxPen, Float defaultLineWidth)
           
static Float getLineWidth(JRPen pen, Float defaultLineWidth)
           
static String getMarkup(JRCommonText element)
           
static String getMarkup(JRStyle style)
           
static ModeEnum getMode(JRCommonElement element, ModeEnum defaultMode)
           
static ModeEnum getModeValue(JRStyle style)
           
static Integer getPadding(JRLineBox box)
           
static String getPattern(JRStyle style)
           
static String getPattern(JRTextField element)
           
static String getPdfEncoding(JRFont font)
           
static String getPdfEncoding(JRStyle style)
           
static String getPdfFontName(JRFont font)
           
static String getPdfFontName(JRStyle style)
           
static int getRadius(JRCommonRectangle rectangle)
           
static Integer getRadius(JRStyle style)
           
static Integer getRightIndent(JRParagraph paragraph)
           
static Integer getRightPadding(JRLineBox box)
           
static RotationEnum getRotationValue(JRCommonText element)
           
static RotationEnum getRotationValue(JRStyle style)
           
static ScaleImageEnum getScaleImageValue(JRCommonImage image)
           
static ScaleImageEnum getScaleImageValue(JRStyle style)
           
static Integer getSpacingAfter(JRParagraph paragraph)
           
static Integer getSpacingBefore(JRParagraph paragraph)
           
static Color getSubtitleColor(JRChart chart)
           
static TabStop[] getTabStops(JRParagraph paragraph)
           
static Integer getTabStopWidth(JRParagraph paragraph)
           
static Color getTimeAxisLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
           
static Color getTimeAxisLineColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
           
static Color getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
           
static Color getTitleColor(JRChart chart)
           
static Integer getTopPadding(JRLineBox box)
           
static Color getValueAxisLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
           
static Color getValueAxisLineColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
           
static Color getValueAxisTickLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
           
static Byte getVerticalAlignment(JRStyle style)
           
static VerticalAlignEnum getVerticalAlignmentValue(JRAlignment alignment)
           
static VerticalAlignEnum getVerticalAlignmentValue(JRStyle style)
           
static Color getXAxisLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
           
static Color getXAxisLineColor(JRXAxisFormat axisFormat, JRChartPlot plot)
           
static Color getXAxisTickLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
           
static Color getYAxisLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
           
static Color getYAxisLineColor(JRYAxisFormat axisFormat, JRChartPlot plot)
           
static Color getYAxisTickLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
           
static Boolean isBlankWhenNull(JRStyle style)
           
static boolean isBlankWhenNull(JRTextField element)
           
static boolean isBold(JRFont font)
           
static Boolean isBold(JRStyle style)
           
static boolean isItalic(JRFont font)
           
static Boolean isItalic(JRStyle style)
           
static boolean isPdfEmbedded(JRFont font)
           
static Boolean isPdfEmbedded(JRStyle style)
           
static boolean isStrikeThrough(JRFont font)
           
static Boolean isStrikeThrough(JRStyle style)
           
static boolean isUnderline(JRFont font)
           
static Boolean isUnderline(JRStyle style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBaseStyle

public static JRStyle getBaseStyle(JRStyleContainer styleContainer)

getMode

public static ModeEnum getMode(JRCommonElement element,
                               ModeEnum defaultMode)

getModeValue

public static ModeEnum getModeValue(JRStyle style)

getForecolor

public static Color getForecolor(JRCommonElement element)

getForecolor

public static Color getForecolor(JRChartPlot plot)

getForecolor

public static Color getForecolor(JRStyle style)

getBackcolor

public static Color getBackcolor(JRCommonElement element)

getBackcolor

public static Color getBackcolor(JRChartPlot plot)

getBackcolor

public static Color getBackcolor(JRStyle style)

getLineWidth

public static Float getLineWidth(JRPen pen,
                                 Float defaultLineWidth)

getLineWidth

public static Float getLineWidth(JRBoxPen boxPen,
                                 Float defaultLineWidth)

getLineStyleValue

public static LineStyleEnum getLineStyleValue(JRPen pen)

getLineStyleValue

public static LineStyleEnum getLineStyleValue(JRBoxPen boxPen)

getLineColor

public static Color getLineColor(JRPen pen,
                                 Color defaultColor)

getLineColor

public static Color getLineColor(JRBoxPen boxPen,
                                 Color defaultColor)

getFillValue

public static FillEnum getFillValue(JRCommonGraphicElement element)

getFillValue

public static FillEnum getFillValue(JRStyle style)

getRadius

public static int getRadius(JRCommonRectangle rectangle)

getRadius

public static Integer getRadius(JRStyle style)

getScaleImageValue

public static ScaleImageEnum getScaleImageValue(JRCommonImage image)

getScaleImageValue

public static ScaleImageEnum getScaleImageValue(JRStyle style)

getHorizontalAlignmentValue

public static HorizontalAlignEnum getHorizontalAlignmentValue(JRAlignment alignment)

getHorizontalAlignmentValue

public static HorizontalAlignEnum getHorizontalAlignmentValue(JRStyle style)

getVerticalAlignmentValue

public static VerticalAlignEnum getVerticalAlignmentValue(JRAlignment alignment)

getVerticalAlignment

public static Byte getVerticalAlignment(JRStyle style)

getVerticalAlignmentValue

public static VerticalAlignEnum getVerticalAlignmentValue(JRStyle style)

getLineSpacingSize

public static Float getLineSpacingSize(JRParagraph paragraph)

getFirstLineIndent

public static Integer getFirstLineIndent(JRParagraph paragraph)

getLeftIndent

public static Integer getLeftIndent(JRParagraph paragraph)

getRightIndent

public static Integer getRightIndent(JRParagraph paragraph)

getSpacingBefore

public static Integer getSpacingBefore(JRParagraph paragraph)

getSpacingAfter

public static Integer getSpacingAfter(JRParagraph paragraph)

getTabStopWidth

public static Integer getTabStopWidth(JRParagraph paragraph)

getTabStops

public static TabStop[] getTabStops(JRParagraph paragraph)

getRotationValue

public static RotationEnum getRotationValue(JRCommonText element)

getRotationValue

public static RotationEnum getRotationValue(JRStyle style)

getLineSpacingValue

public static LineSpacingEnum getLineSpacingValue(JRCommonText element)
Deprecated. Replaced by getLineSpacing(JRParagraph).


getLineSpacingValue

public static LineSpacingEnum getLineSpacingValue(JRStyle style)
Deprecated. Replaced by getLineSpacing(JRParagraph).


getLineSpacing

public static LineSpacingEnum getLineSpacing(JRParagraph paragraph)

getMarkup

public static String getMarkup(JRCommonText element)

getMarkup

public static String getMarkup(JRStyle style)

getPattern

public static String getPattern(JRTextField element)

getPattern

public static String getPattern(JRStyle style)

isBlankWhenNull

public static boolean isBlankWhenNull(JRTextField element)

isBlankWhenNull

public static Boolean isBlankWhenNull(JRStyle style)

getFontName

public static String getFontName(JRFont font)

getFontName

public static String getFontName(JRStyle style)

isBold

public static boolean isBold(JRFont font)

isBold

public static Boolean isBold(JRStyle style)

isItalic

public static boolean isItalic(JRFont font)

isItalic

public static Boolean isItalic(JRStyle style)

isUnderline

public static boolean isUnderline(JRFont font)

isUnderline

public static Boolean isUnderline(JRStyle style)

isStrikeThrough

public static boolean isStrikeThrough(JRFont font)

isStrikeThrough

public static Boolean isStrikeThrough(JRStyle style)

getFontSize

public static int getFontSize(JRFont font)

getFontSize

public static Integer getFontSize(JRStyle style)

getPdfFontName

public static String getPdfFontName(JRFont font)

getPdfFontName

public static String getPdfFontName(JRStyle style)

getPdfEncoding

public static String getPdfEncoding(JRFont font)

getPdfEncoding

public static String getPdfEncoding(JRStyle style)

isPdfEmbedded

public static boolean isPdfEmbedded(JRFont font)

isPdfEmbedded

public static Boolean isPdfEmbedded(JRStyle style)

getPadding

public static Integer getPadding(JRLineBox box)

getTopPadding

public static Integer getTopPadding(JRLineBox box)

getLeftPadding

public static Integer getLeftPadding(JRLineBox box)

getBottomPadding

public static Integer getBottomPadding(JRLineBox box)

getRightPadding

public static Integer getRightPadding(JRLineBox box)

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.


getTitleColor

public static Color getTitleColor(JRChart chart)

getSubtitleColor

public static Color getSubtitleColor(JRChart chart)

getLegendColor

public static Color getLegendColor(JRChart chart)

getLegendBackgroundColor

public static Color getLegendBackgroundColor(JRChart chart)

getCategoryAxisLabelColor

public static Color getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat,
                                              JRChartPlot plot)

getCategoryAxisTickLabelColor

public static Color getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat,
                                                  JRChartPlot plot)

getCategoryAxisLineColor

public static Color getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat,
                                             JRChartPlot plot)

getValueAxisLabelColor

public static Color getValueAxisLabelColor(JRValueAxisFormat axisFormat,
                                           JRChartPlot plot)

getValueAxisTickLabelColor

public static Color getValueAxisTickLabelColor(JRValueAxisFormat axisFormat,
                                               JRChartPlot plot)

getValueAxisLineColor

public static Color getValueAxisLineColor(JRValueAxisFormat axisFormat,
                                          JRChartPlot plot)

getXAxisLabelColor

public static Color getXAxisLabelColor(JRXAxisFormat axisFormat,
                                       JRChartPlot plot)

getXAxisTickLabelColor

public static Color getXAxisTickLabelColor(JRXAxisFormat axisFormat,
                                           JRChartPlot plot)

getXAxisLineColor

public static Color getXAxisLineColor(JRXAxisFormat axisFormat,
                                      JRChartPlot plot)

getYAxisLabelColor

public static Color getYAxisLabelColor(JRYAxisFormat axisFormat,
                                       JRChartPlot plot)

getYAxisTickLabelColor

public static Color getYAxisTickLabelColor(JRYAxisFormat axisFormat,
                                           JRChartPlot plot)

getYAxisLineColor

public static Color getYAxisLineColor(JRYAxisFormat axisFormat,
                                      JRChartPlot plot)

getTimeAxisLabelColor

public static Color getTimeAxisLabelColor(JRTimeAxisFormat axisFormat,
                                          JRChartPlot plot)

getTimeAxisTickLabelColor

public static Color getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat,
                                              JRChartPlot plot)

getTimeAxisLineColor

public static Color getTimeAxisLineColor(JRTimeAxisFormat axisFormat,
                                         JRChartPlot plot)


Copyright © 2012. All Rights Reserved.