Package net.sf.jasperreports.charts.util
Class JRAxisFormat
java.lang.Object
net.sf.jasperreports.charts.util.JRAxisFormat
- All Implemented Interfaces:
Serializable
Represents all the formatting options of a chart axis. The axis can be either a domain or
a range axis, and any options that do not apply to the current axis are simply ignored.
- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ColorThe color to use when writing the label of the axis.protected JRFontThe font to use when writing the label of the axis.protected ColorThe color to use when drawing the axis line and tick marks, if enabled.protected ColorThe color to use when writing the label of each tick mark.protected JRFontThe font to use when writing the label of each tick mark.protected StringThe mask to use for formatting the label of each tick mark.protected BooleanFlag to force rendering the tick labels rotated 90 degrees. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the color used when writing the label of the axis.Returns the font used when writing the label of the axis.Returns the color used when drawing the axis.Returns the color used when writing the label of each tick mark.Returns the font used when writing the label of each tick mark.Returns the formatting mask used when writing the label of each tick mark.voidsetLabelColor(Color labelColor) Sets the color used when writing the label of the axis.voidsetLabelFont(JRFont labelFont) Sets the font used when writing the label of the axis.voidsetLineColor(Color lineColor) Sets the color used when drawing the axis.voidsetTickLabelColor(Color tickLabelColor) Sets the color to use when writing the label of each tick mark.voidsetTickLabelFont(JRFont tickLabelFont) Sets the font to use when writing the label of each tick mark.voidsetTickLabelMask(String mask) Sets the formatting mask to user when writing the label of each tick mark.voidsetVerticalTickLabel(Boolean verticalTickLabels)
-
Field Details
-
labelColor
The color to use when writing the label of the axis. -
labelFont
The font to use when writing the label of the axis. -
tickLabelColor
The color to use when writing the label of each tick mark. Ignored if tick marks are disabled. -
tickLabelFont
The font to use when writing the label of each tick mark. Ignored if tick marks are disabled. -
tickLabelMask
The mask to use for formatting the label of each tick mark. Ignored if tick marks are disabled, or if the axis being formatted is not either numeric or a date axis. -
verticalTickLabels
Flag to force rendering the tick labels rotated 90 degrees. -
lineColor
The color to use when drawing the axis line and tick marks, if enabled.
-
-
Constructor Details
-
JRAxisFormat
public JRAxisFormat()Constructor.
-
-
Method Details
-
getLabelColor
Returns the color used when writing the label of the axis.- Returns:
- the color used when writing the label of the axis
-
setLabelColor
Sets the color used when writing the label of the axis.- Parameters:
labelColor- the color to use when writing the label of the axis
-
getLabelFont
Returns the font used when writing the label of the axis.- Returns:
- the font used when writing the label of the axis
-
setLabelFont
Sets the font used when writing the label of the axis.- Parameters:
labelFont- the font to use when writing the label of the axis
-
getLineColor
Returns the color used when drawing the axis. This color is used for both the axis line itself and any tick marks present on the axis.- Returns:
- the color used when drawing the axis.
-
setLineColor
Sets the color used when drawing the axis. This color is used for both the axis line itself and any tick marks present on the axis.- Parameters:
lineColor- the color to use when drawing the axis.
-
getTickLabelColor
Returns the color used when writing the label of each tick mark.- Returns:
- the color used when writing the label of each tick mark
-
setTickLabelColor
Sets the color to use when writing the label of each tick mark.- Parameters:
tickLabelColor- the color to use when writing the label of each tick mark
-
getTickLabelFont
Returns the font used when writing the label of each tick mark.- Returns:
- the font used when writing the label of each tick mark
-
setTickLabelFont
Sets the font to use when writing the label of each tick mark.- Parameters:
tickLabelFont- the font to use when writing the label of each tick mark
-
getTickLabelMask
Returns the formatting mask used when writing the label of each tick mark.- Returns:
- the formatting mask used when writing the label of each tick mark
-
setTickLabelMask
Sets the formatting mask to user when writing the label of each tick mark.- Parameters:
mask- the formatting mask to use when writing the label of each tick mark
-
getVerticalTickLabels
-
setVerticalTickLabel
-