Class StyleResolver
java.lang.Object
ch.unibas.medizin.dynamicreports.design.transformation.StyleResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetBackgroundColor(DRIReportStyle reportStyle, StyleTransform transform) getBackgroundColor.protected static BooleangetFontBold(DRDesignStyle style) getFontBold.protected static intgetFontHeight(DRDesignStyle style, int rows) getFontHeight.static doublegetFontHeight(DRFont font) getFontHeight.protected static BooleangetFontItalic(DRDesignStyle style) getFontItalic.protected static StringgetFontName(DRDesignStyle style) getFontName.protected static IntegergetFontSize(DRDesignStyle style) getFontSize.protected static BooleangetFontStrikeThrough.protected static BooleangetFontUnderline(DRDesignStyle style) getFontUnderline.protected static intgetFontWidth(DRDesignStyle style, int columns) getFontWidth.static doublegetFontWidth(DRFont font) getFontWidth.static HorizontalImageAlignmentgetHorizontalImageAlignment.static intgetHorizontalPadding.static HorizontalTextAlignmentgetHorizontalTextAlignment.static StringgetPattern(DRDesignStyle style) getPattern.protected static BooleangetPdfEmbedded(DRDesignStyle style) getPdfEmbedded.protected static StringgetPdfEncoding(DRDesignStyle style) getPdfEncoding.protected static StringgetPdfFontName(DRDesignStyle style) getPdfFontName.static intgetVerticalPadding(DRIDesignStyle style) getVerticalPadding.static ColormergeColors(Color color1, Color color2, float percent) mergeColors.
-
Constructor Details
-
StyleResolver
public StyleResolver()
-
-
Method Details
-
getFontWidth
getFontWidth.
- Parameters:
style- aDRDesignStyleobject.columns- an int.- Returns:
- an int.
-
getFontHeight
getFontHeight.
- Parameters:
style- aDRDesignStyleobject.rows- an int.- Returns:
- an int.
-
getFontWidth
-
getFontHeight
-
getFontName
getFontName.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Stringobject.
-
getFontSize
getFontSize.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Integerobject.
-
getFontBold
getFontBold.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Booleanobject.
-
getFontItalic
getFontItalic.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Booleanobject.
-
getFontUnderline
getFontUnderline.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Booleanobject.
-
getFontStrikeThrough
getFontStrikeThrough.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Booleanobject.
-
getPdfFontName
getPdfFontName.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Stringobject.
-
getPdfEncoding
getPdfEncoding.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Stringobject.
-
getPdfEmbedded
getPdfEmbedded.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Booleanobject.
-
getHorizontalPadding
getHorizontalPadding.
- Parameters:
style- aDRIDesignStyleobject.- Returns:
- an int.
-
getVerticalPadding
getVerticalPadding.
- Parameters:
style- aDRIDesignStyleobject.- Returns:
- an int.
-
getPattern
getPattern.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
Stringobject.
-
getHorizontalTextAlignment
getHorizontalTextAlignment.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
HorizontalTextAlignmentobject.
-
getHorizontalImageAlignment
getHorizontalImageAlignment.
- Parameters:
style- aDRDesignStyleobject.- Returns:
- a
HorizontalImageAlignmentobject.
-
getBackgroundColor
getBackgroundColor.
- Parameters:
reportStyle- aDRIReportStyleobject.transform- aStyleTransformobject.- Returns:
- a
Colorobject.
-
mergeColors
-