Package net.sf.jasperreports.engine.util
Class StyleResolver
- java.lang.Object
-
- net.sf.jasperreports.engine.util.StyleResolver
-
public class StyleResolver extends java.lang.Object- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_STYLES_INHERIT_FROM_DEFAULT
-
Constructor Summary
Constructors Constructor Description StyleResolver(JasperReportsContext jasperReportsContext)
-
Method Summary
-
-
-
Field Detail
-
PROPERTY_STYLES_INHERIT_FROM_DEFAULT
public static final java.lang.String PROPERTY_STYLES_INHERIT_FROM_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StyleResolver
public StyleResolver(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
getInstance
public static StyleResolver getInstance()
-
getBaseStyle
public JRStyle getBaseStyle(JRParagraph paragraph)
-
getBaseStyle
public JRStyle getBaseStyle(JRStyleContainer styleContainer)
-
getBaseStyleFromStyleContainer
protected static JRStyle getBaseStyleFromStyleContainer(JRStyleContainer styleContainer)
-
getMode
public ModeEnum getMode(JRCommonElement element, ModeEnum defaultMode)
-
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)
-
getLineStyleValue
public LineStyleEnum getLineStyleValue(JRPen pen)
-
getLineStyleValue
public LineStyleEnum getLineStyleValue(JRBoxPen boxPen)
-
getParentLineStyleValue
public LineStyleEnum getParentLineStyleValue(JRBoxPen boxPen)
-
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)
-
getFillValue
public FillEnum getFillValue(JRCommonGraphicElement element)
-
getRadius
public int getRadius(JRCommonRectangle rectangle)
-
getRadius
public java.lang.Integer getRadius(JRStyle style)
-
getScaleImageValue
public ScaleImageEnum getScaleImageValue(JRCommonImage image)
-
getScaleImageValue
public ScaleImageEnum getScaleImageValue(JRStyle style)
-
getHorizontalTextAlign
public HorizontalTextAlignEnum getHorizontalTextAlign(JRTextAlignment alignment)
-
getHorizontalImageAlign
public HorizontalImageAlignEnum getHorizontalImageAlign(JRImageAlignment alignment)
-
getHorizontalTextAlign
public HorizontalTextAlignEnum getHorizontalTextAlign(JRStyle style)
-
getHorizontalImageAlign
public HorizontalImageAlignEnum getHorizontalImageAlign(JRStyle style)
-
getVerticalTextAlign
public VerticalTextAlignEnum getVerticalTextAlign(JRTextAlignment alignment)
-
getVerticalImageAlign
public VerticalImageAlignEnum getVerticalImageAlign(JRImageAlignment alignment)
-
getVerticalTextAlign
public VerticalTextAlignEnum getVerticalTextAlign(JRStyle style)
-
getVerticalImageAlign
public VerticalImageAlignEnum getVerticalImageAlign(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)
-
getTabStops
public TabStop[] getTabStops(JRParagraph paragraph)
-
getRotationValue
public RotationEnum getRotationValue(JRCommonText element)
-
getRotation
public RotationEnum getRotation(JRCommonImage element)
-
getRotationValue
public RotationEnum getRotationValue(JRStyle style)
-
getLineSpacing
public LineSpacingEnum getLineSpacing(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)
-
getCategoryAxisLabelColor
public java.awt.Color getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getCategoryAxisTickLabelColor
public java.awt.Color getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getCategoryAxisLineColor
public java.awt.Color getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisLabelColor
public java.awt.Color getValueAxisLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisTickLabelColor
public java.awt.Color getValueAxisTickLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisLineColor
public java.awt.Color getValueAxisLineColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisLabelColor
public java.awt.Color getXAxisLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisTickLabelColor
public java.awt.Color getXAxisTickLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisLineColor
public java.awt.Color getXAxisLineColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisLabelColor
public java.awt.Color getYAxisLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisTickLabelColor
public java.awt.Color getYAxisTickLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisLineColor
public java.awt.Color getYAxisLineColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisLabelColor
public java.awt.Color getTimeAxisLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisTickLabelColor
public java.awt.Color getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisLineColor
public java.awt.Color getTimeAxisLineColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
-