net.sf.jasperreports.engine.util
public final class JRStyleResolver extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
appendStyle(JRStyle destStyle,
JRStyle srcStyle)
Merges two styles, by appending the properties of the source style to the ones of the destination style.
|
static java.awt.Color |
getBackcolor(JRChartPlot plot) |
static java.awt.Color |
getBackcolor(JRCommonElement element) |
static java.awt.Color |
getBackcolor(JRStyle style) |
static java.lang.Integer |
getBottomPadding(JRLineBox box) |
static java.awt.Color |
getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat,
JRChartPlot plot) |
static byte |
getFill(JRCommonGraphicElement element)
Deprecated.
Replaced by
getFillValue(JRCommonGraphicElement) . |
static java.lang.Byte |
getFill(JRStyle style)
Deprecated.
Replaced by
getFillValue(JRStyle) . |
static FillEnum |
getFillValue(JRCommonGraphicElement element) |
static FillEnum |
getFillValue(JRStyle style) |
static java.lang.String |
getFontName(JRFont font) |
static java.lang.String |
getFontName(JRStyle style) |
static int |
getFontSize(JRFont font) |
static java.lang.Integer |
getFontSize(JRStyle style) |
static java.awt.Color |
getForecolor(JRChartPlot plot) |
static java.awt.Color |
getForecolor(JRCommonElement element) |
static java.awt.Color |
getForecolor(JRStyle style) |
static byte |
getHorizontalAlignment(JRAlignment alignment)
Deprecated.
Replaced by
getHorizontalAlignmentValue(JRAlignment) . |
static java.lang.Byte |
getHorizontalAlignment(JRStyle style)
Deprecated.
Replaced by
getHorizontalAlignmentValue(JRStyle) . |
static HorizontalAlignEnum |
getHorizontalAlignmentValue(JRAlignment alignment) |
static HorizontalAlignEnum |
getHorizontalAlignmentValue(JRStyle style) |
static java.lang.Integer |
getLeftPadding(JRLineBox box) |
static java.awt.Color |
getLegendBackgroundColor(JRChart chart) |
static java.awt.Color |
getLegendColor(JRChart chart) |
static java.awt.Color |
getLineColor(JRBoxPen boxPen,
java.awt.Color defaultColor) |
static java.awt.Color |
getLineColor(JRPen pen,
java.awt.Color defaultColor) |
static byte |
getLineSpacing(JRCommonText element)
Deprecated.
Replaced by
getLineSpacingValue(JRCommonText) . |
static java.lang.Byte |
getLineSpacing(JRStyle style)
Deprecated.
Replaced by
getLineSpacingValue(JRStyle) . |
static LineSpacingEnum |
getLineSpacingValue(JRCommonText element) |
static LineSpacingEnum |
getLineSpacingValue(JRStyle style) |
static java.lang.Byte |
getLineStyle(JRBoxPen boxPen)
Deprecated.
Replaced by
getLineStyleValue(JRBoxPen) |
static java.lang.Byte |
getLineStyle(JRPen pen)
Deprecated.
Replaced by
getLineStyleValue(JRPen) . |
static LineStyleEnum |
getLineStyleValue(JRBoxPen boxPen) |
static LineStyleEnum |
getLineStyleValue(JRPen pen) |
static java.lang.Float |
getLineWidth(JRBoxPen boxPen,
java.lang.Float defaultLineWidth) |
static java.lang.Float |
getLineWidth(JRPen pen,
java.lang.Float defaultLineWidth) |
static java.lang.String |
getMarkup(JRCommonText element) |
static java.lang.String |
getMarkup(JRStyle style) |
static byte |
getMode(JRCommonElement element,
byte defaultMode)
Deprecated.
Replaced by
getMode(JRCommonElement, ModeEnum) . |
static ModeEnum |
getMode(JRCommonElement element,
ModeEnum defaultMode) |
static java.lang.Byte |
getMode(JRStyle style)
Deprecated.
Replaced by
getModeValue(JRStyle) . |
static ModeEnum |
getModeValue(JRStyle style) |
static java.lang.Integer |
getPadding(JRLineBox box) |
static java.lang.String |
getPattern(JRStyle style) |
static java.lang.String |
getPattern(JRTextField element) |
static java.lang.String |
getPdfEncoding(JRFont font) |
static java.lang.String |
getPdfEncoding(JRStyle style) |
static java.lang.String |
getPdfFontName(JRFont font) |
static java.lang.String |
getPdfFontName(JRStyle style) |
static int |
getRadius(JRCommonRectangle rectangle) |
static java.lang.Integer |
getRadius(JRStyle style) |
static java.lang.Integer |
getRightPadding(JRLineBox box) |
static byte |
getRotation(JRCommonText element)
Deprecated.
Replaced by
getRotationValue(JRCommonText) . |
static java.lang.Byte |
getRotation(JRStyle style)
Deprecated.
Replaced by
getRotationValue(JRStyle) . |
static RotationEnum |
getRotationValue(JRCommonText element) |
static RotationEnum |
getRotationValue(JRStyle style) |
static byte |
getScaleImage(JRCommonImage image)
Deprecated.
Replaced by
getScaleImageValue(JRCommonImage) |
static java.lang.Byte |
getScaleImage(JRStyle style)
Deprecated.
Replaced by
getScaleImageValue(JRStyle) |
static ScaleImageEnum |
getScaleImageValue(JRCommonImage image) |
static ScaleImageEnum |
getScaleImageValue(JRStyle style) |
static java.awt.Color |
getSubtitleColor(JRChart chart) |
static java.awt.Color |
getTimeAxisLabelColor(JRTimeAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getTimeAxisLineColor(JRTimeAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getTitleColor(JRChart chart) |
static java.lang.Integer |
getTopPadding(JRLineBox box) |
static java.awt.Color |
getValueAxisLabelColor(JRValueAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getValueAxisLineColor(JRValueAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getValueAxisTickLabelColor(JRValueAxisFormat axisFormat,
JRChartPlot plot) |
static byte |
getVerticalAlignment(JRAlignment alignment)
Deprecated.
Replaced by
getVerticalAlignmentValue(JRAlignment) . |
static java.lang.Byte |
getVerticalAlignment(JRStyle style) |
static VerticalAlignEnum |
getVerticalAlignmentValue(JRAlignment alignment) |
static VerticalAlignEnum |
getVerticalAlignmentValue(JRStyle style) |
static java.awt.Color |
getXAxisLabelColor(JRXAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getXAxisLineColor(JRXAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getXAxisTickLabelColor(JRXAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getYAxisLabelColor(JRYAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getYAxisLineColor(JRYAxisFormat axisFormat,
JRChartPlot plot) |
static java.awt.Color |
getYAxisTickLabelColor(JRYAxisFormat axisFormat,
JRChartPlot plot) |
static java.lang.Boolean |
isBlankWhenNull(JRStyle style) |
static boolean |
isBlankWhenNull(JRTextField element) |
static boolean |
isBold(JRFont font) |
static java.lang.Boolean |
isBold(JRStyle style) |
static boolean |
isItalic(JRFont font) |
static java.lang.Boolean |
isItalic(JRStyle style) |
static boolean |
isPdfEmbedded(JRFont font) |
static java.lang.Boolean |
isPdfEmbedded(JRStyle style) |
static boolean |
isStrikeThrough(JRFont font) |
static java.lang.Boolean |
isStrikeThrough(JRStyle style) |
static boolean |
isUnderline(JRFont font) |
static java.lang.Boolean |
isUnderline(JRStyle style) |
public static byte getMode(JRCommonElement element, byte defaultMode)
getMode(JRCommonElement, ModeEnum)
.public static java.lang.Byte getMode(JRStyle style)
getModeValue(JRStyle)
.public static ModeEnum getMode(JRCommonElement element, ModeEnum defaultMode)
public static java.awt.Color getForecolor(JRCommonElement element)
public static java.awt.Color getForecolor(JRChartPlot plot)
public static java.awt.Color getForecolor(JRStyle style)
public static java.awt.Color getBackcolor(JRCommonElement element)
public static java.awt.Color getBackcolor(JRChartPlot plot)
public static java.awt.Color getBackcolor(JRStyle style)
public static java.lang.Float getLineWidth(JRPen pen, java.lang.Float defaultLineWidth)
public static java.lang.Float getLineWidth(JRBoxPen boxPen, java.lang.Float defaultLineWidth)
public static java.lang.Byte getLineStyle(JRPen pen)
getLineStyleValue(JRPen)
.public static LineStyleEnum getLineStyleValue(JRPen pen)
public static java.lang.Byte getLineStyle(JRBoxPen boxPen)
getLineStyleValue(JRBoxPen)
public static LineStyleEnum getLineStyleValue(JRBoxPen boxPen)
public static java.awt.Color getLineColor(JRPen pen, java.awt.Color defaultColor)
public static java.awt.Color getLineColor(JRBoxPen boxPen, java.awt.Color defaultColor)
public static byte getFill(JRCommonGraphicElement element)
getFillValue(JRCommonGraphicElement)
.public static java.lang.Byte getFill(JRStyle style)
getFillValue(JRStyle)
.public static FillEnum getFillValue(JRCommonGraphicElement element)
public static int getRadius(JRCommonRectangle rectangle)
public static java.lang.Integer getRadius(JRStyle style)
public static byte getScaleImage(JRCommonImage image)
getScaleImageValue(JRCommonImage)
public static java.lang.Byte getScaleImage(JRStyle style)
getScaleImageValue(JRStyle)
public static ScaleImageEnum getScaleImageValue(JRCommonImage image)
public static ScaleImageEnum getScaleImageValue(JRStyle style)
public static byte getHorizontalAlignment(JRAlignment alignment)
getHorizontalAlignmentValue(JRAlignment)
.public static HorizontalAlignEnum getHorizontalAlignmentValue(JRAlignment alignment)
public static java.lang.Byte getHorizontalAlignment(JRStyle style)
getHorizontalAlignmentValue(JRStyle)
.public static HorizontalAlignEnum getHorizontalAlignmentValue(JRStyle style)
public static byte getVerticalAlignment(JRAlignment alignment)
getVerticalAlignmentValue(JRAlignment)
.public static VerticalAlignEnum getVerticalAlignmentValue(JRAlignment alignment)
public static java.lang.Byte getVerticalAlignment(JRStyle style)
public static VerticalAlignEnum getVerticalAlignmentValue(JRStyle style)
public static byte getRotation(JRCommonText element)
getRotationValue(JRCommonText)
.public static java.lang.Byte getRotation(JRStyle style)
getRotationValue(JRStyle)
.public static RotationEnum getRotationValue(JRCommonText element)
public static RotationEnum getRotationValue(JRStyle style)
public static byte getLineSpacing(JRCommonText element)
getLineSpacingValue(JRCommonText)
.public static java.lang.Byte getLineSpacing(JRStyle style)
getLineSpacingValue(JRStyle)
.public static LineSpacingEnum getLineSpacingValue(JRCommonText element)
public static LineSpacingEnum getLineSpacingValue(JRStyle style)
public static java.lang.String getMarkup(JRCommonText element)
public static java.lang.String getMarkup(JRStyle style)
public static java.lang.String getPattern(JRTextField element)
public static java.lang.String getPattern(JRStyle style)
public static boolean isBlankWhenNull(JRTextField element)
public static java.lang.Boolean isBlankWhenNull(JRStyle style)
public static java.lang.String getFontName(JRFont font)
public static java.lang.String getFontName(JRStyle style)
public static boolean isBold(JRFont font)
public static java.lang.Boolean isBold(JRStyle style)
public static boolean isItalic(JRFont font)
public static java.lang.Boolean isItalic(JRStyle style)
public static boolean isUnderline(JRFont font)
public static java.lang.Boolean isUnderline(JRStyle style)
public static boolean isStrikeThrough(JRFont font)
public static java.lang.Boolean isStrikeThrough(JRStyle style)
public static int getFontSize(JRFont font)
public static java.lang.Integer getFontSize(JRStyle style)
public static java.lang.String getPdfFontName(JRFont font)
public static java.lang.String getPdfFontName(JRStyle style)
public static java.lang.String getPdfEncoding(JRFont font)
public static java.lang.String getPdfEncoding(JRStyle style)
public static boolean isPdfEmbedded(JRFont font)
public static java.lang.Boolean isPdfEmbedded(JRStyle style)
public static java.lang.Integer getPadding(JRLineBox box)
public static java.lang.Integer getTopPadding(JRLineBox box)
public static java.lang.Integer getLeftPadding(JRLineBox box)
public static java.lang.Integer getBottomPadding(JRLineBox box)
public static java.lang.Integer getRightPadding(JRLineBox box)
public static void appendStyle(JRStyle destStyle, JRStyle srcStyle)
public static java.awt.Color getTitleColor(JRChart chart)
public static java.awt.Color getSubtitleColor(JRChart chart)
public static java.awt.Color getLegendColor(JRChart chart)
public static java.awt.Color getLegendBackgroundColor(JRChart chart)
public static java.awt.Color getCategoryAxisLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getCategoryAxisTickLabelColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getCategoryAxisLineColor(JRCategoryAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getValueAxisLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getValueAxisTickLabelColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getValueAxisLineColor(JRValueAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getXAxisLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getXAxisTickLabelColor(JRXAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getXAxisLineColor(JRXAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getYAxisLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getYAxisTickLabelColor(JRYAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getYAxisLineColor(JRYAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getTimeAxisLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getTimeAxisTickLabelColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
public static java.awt.Color getTimeAxisLineColor(JRTimeAxisFormat axisFormat, JRChartPlot plot)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com