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 String
PROPERTY_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)
-
getBackcolor
public Color getBackcolor(JRCommonElement element)
-
getLineStyle
public LineStyleEnum getLineStyle(JRPen pen)
-
getLineStyle
public LineStyleEnum getLineStyle(JRBoxPen boxPen)
-
getParentLineStyle
public LineStyleEnum getParentLineStyle(JRBoxPen boxPen)
-
getFill
public FillEnum getFill(JRCommonGraphicElement element)
-
getRadius
public int getRadius(JRCommonRectangle rectangle)
-
getScaleImage
public ScaleImageEnum getScaleImage(JRCommonImage image)
-
getScaleImage
public ScaleImageEnum getScaleImage(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)
-
getRotation
public RotationEnum getRotation(JRCommonText element)
-
getRotation
public RotationEnum getRotation(JRCommonImage element)
-
getRotation
public RotationEnum getRotation(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)
-
-