Class StyleResolver


  • public class StyleResolver
    extends java.lang.Object
    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    • Field Detail

      • PROPERTY_STYLES_INHERIT_FROM_DEFAULT

        public static final java.lang.String PROPERTY_STYLES_INHERIT_FROM_DEFAULT
        See Also:
        Constant Field Values
    • Method Detail

      • getBaseStyle

        public JRStyle getBaseStyle​(JRStyle styleContainer)
      • getBaseStyleFromStyleContainer

        protected static JRStyle getBaseStyleFromStyleContainer​(JRStyleContainer styleContainer)
      • getForecolor

        public java.awt.Color getForecolor​(JRCommonElement element)
      • getForecolor

        public java.awt.Color getForecolor​(JRChartPlot plot)
      • getForecolor

        public java.awt.Color getForecolor​(JRStyle style)
      • getBackcolor

        public java.awt.Color getBackcolor​(JRCommonElement element)
      • getBackcolor

        public java.awt.Color getBackcolor​(JRChartPlot plot)
      • getBackcolor

        public java.awt.Color getBackcolor​(JRStyle style)
      • getLineWidth

        public java.lang.Float getLineWidth​(JRPen pen,
                                            java.lang.Float defaultLineWidth)
      • getLineWidth

        public java.lang.Float getLineWidth​(JRBoxPen boxPen,
                                            java.lang.Float defaultLineWidth)
      • getParentLineWidth

        public java.lang.Float getParentLineWidth​(JRBoxPen boxPen,
                                                  java.lang.Float defaultLineWidth)
      • getLineColor

        public java.awt.Color getLineColor​(JRPen pen,
                                           java.awt.Color defaultColor)
      • getLineColor

        public java.awt.Color getLineColor​(JRBoxPen boxPen,
                                           java.awt.Color defaultColor)
      • getParentLineColor

        public java.awt.Color getParentLineColor​(JRBoxPen boxPen,
                                                 java.awt.Color defaultColor)
      • getRadius

        public java.lang.Integer getRadius​(JRStyle style)
      • getLineSpacingSize

        public java.lang.Float getLineSpacingSize​(JRParagraph paragraph)
      • getFirstLineIndent

        public java.lang.Integer getFirstLineIndent​(JRParagraph paragraph)
      • getLeftIndent

        public java.lang.Integer getLeftIndent​(JRParagraph paragraph)
      • getRightIndent

        public java.lang.Integer getRightIndent​(JRParagraph paragraph)
      • getSpacingBefore

        public java.lang.Integer getSpacingBefore​(JRParagraph paragraph)
      • getSpacingAfter

        public java.lang.Integer getSpacingAfter​(JRParagraph paragraph)
      • getTabStopWidth

        public java.lang.Integer getTabStopWidth​(JRParagraph paragraph)
      • getMarkup

        public java.lang.String getMarkup​(JRCommonText element)
      • getMarkup

        public java.lang.String getMarkup​(JRStyle style)
      • getPattern

        public java.lang.String getPattern​(JRTextField element)
      • getPattern

        public java.lang.String getPattern​(JRStyle style)
      • isBlankWhenNull

        public boolean isBlankWhenNull​(JRTextField element)
      • isBlankWhenNull

        public java.lang.Boolean isBlankWhenNull​(JRStyle style)
      • getFontName

        public java.lang.String getFontName​(JRFont font)
      • getFontName

        public java.lang.String getFontName​(JRStyle style)
      • isBold

        public boolean isBold​(JRFont font)
      • isBold

        public java.lang.Boolean isBold​(JRStyle style)
      • isItalic

        public boolean isItalic​(JRFont font)
      • isItalic

        public java.lang.Boolean isItalic​(JRStyle style)
      • isUnderline

        public boolean isUnderline​(JRFont font)
      • isUnderline

        public java.lang.Boolean isUnderline​(JRStyle style)
      • isStrikeThrough

        public boolean isStrikeThrough​(JRFont font)
      • isStrikeThrough

        public java.lang.Boolean isStrikeThrough​(JRStyle style)
      • getFontsize

        public float getFontsize​(JRFont font)
      • getFontsize

        public java.lang.Float getFontsize​(JRStyle style)
      • getPdfFontName

        public java.lang.String getPdfFontName​(JRFont font)
      • getPdfFontName

        public java.lang.String getPdfFontName​(JRStyle style)
      • getPdfEncoding

        public java.lang.String getPdfEncoding​(JRFont font)
      • getPdfEncoding

        public java.lang.String getPdfEncoding​(JRStyle style)
      • isPdfEmbedded

        public boolean isPdfEmbedded​(JRFont font)
      • isPdfEmbedded

        public java.lang.Boolean isPdfEmbedded​(JRStyle style)
      • getPadding

        public java.lang.Integer getPadding​(JRLineBox box)
      • getTopPadding

        public java.lang.Integer getTopPadding​(JRLineBox box)
      • getLeftPadding

        public java.lang.Integer getLeftPadding​(JRLineBox box)
      • getBottomPadding

        public java.lang.Integer getBottomPadding​(JRLineBox box)
      • getRightPadding

        public java.lang.Integer getRightPadding​(JRLineBox box)
      • getTitleColor

        public java.awt.Color getTitleColor​(JRChart chart)
      • getSubtitleColor

        public java.awt.Color getSubtitleColor​(JRChart chart)
      • getLegendColor

        public java.awt.Color getLegendColor​(JRChart chart)
      • getLegendBackgroundColor

        public java.awt.Color getLegendBackgroundColor​(JRChart chart)
      • getXAxisTickLabelColor

        public java.awt.Color getXAxisTickLabelColor​(JRXAxisFormat axisFormat,
                                                     JRChartPlot plot)
      • getYAxisTickLabelColor

        public java.awt.Color getYAxisTickLabelColor​(JRYAxisFormat axisFormat,
                                                     JRChartPlot plot)