Package net.sf.jasperreports.engine.util
Class StyleResolver
- java.lang.Object
-
- net.sf.jasperreports.engine.util.StyleResolver
-
public class StyleResolver extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static 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 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 Color getForecolor(JRCommonElement element)
-
getForecolor
public Color getForecolor(JRChartPlot plot)
-
getBackcolor
public Color getBackcolor(JRCommonElement element)
-
getBackcolor
public Color getBackcolor(JRChartPlot plot)
-
getLineStyleValue
public LineStyleEnum getLineStyleValue(JRPen pen)
-
getLineStyleValue
public LineStyleEnum getLineStyleValue(JRBoxPen boxPen)
-
getParentLineStyleValue
public LineStyleEnum getParentLineStyleValue(JRBoxPen boxPen)
-
getFillValue
public FillEnum getFillValue(JRCommonGraphicElement element)
-
getRadius
public int getRadius(JRCommonRectangle rectangle)
-
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 Float getLineSpacingSize(JRParagraph paragraph)
-
getFirstLineIndent
public Integer getFirstLineIndent(JRParagraph paragraph)
-
getLeftIndent
public Integer getLeftIndent(JRParagraph paragraph)
-
getRightIndent
public Integer getRightIndent(JRParagraph paragraph)
-
getSpacingBefore
public Integer getSpacingBefore(JRParagraph paragraph)
-
getSpacingAfter
public Integer getSpacingAfter(JRParagraph paragraph)
-
getTabStopWidth
public 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 String getMarkup(JRCommonText element)
-
getPattern
public String getPattern(JRTextField element)
-
isBlankWhenNull
public boolean isBlankWhenNull(JRTextField element)
-
isBold
public boolean isBold(JRFont font)
-
isItalic
public boolean isItalic(JRFont font)
-
isUnderline
public boolean isUnderline(JRFont font)
-
isStrikeThrough
public boolean isStrikeThrough(JRFont font)
-
getFontsize
public float getFontsize(JRFont font)
-
isPdfEmbedded
public boolean isPdfEmbedded(JRFont font)
-
getCategoryAxisLabelColor
public Color getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getCategoryAxisTickLabelColor
public Color getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getCategoryAxisLineColor
public Color getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisLabelColor
public Color getValueAxisLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisTickLabelColor
public Color getValueAxisTickLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getValueAxisLineColor
public Color getValueAxisLineColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisLabelColor
public Color getXAxisLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisTickLabelColor
public Color getXAxisTickLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getXAxisLineColor
public Color getXAxisLineColor(JRXAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisLabelColor
public Color getYAxisLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisTickLabelColor
public Color getYAxisTickLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getYAxisLineColor
public Color getYAxisLineColor(JRYAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisLabelColor
public Color getTimeAxisLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisTickLabelColor
public Color getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
getTimeAxisLineColor
public Color getTimeAxisLineColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
-
-