Klasse BaseAxis
java.lang.Object
com.inet.report.chart.axis.BaseAxis
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
ContinuousDateAxis, DiscreteNumberAxis, GroupAxis
Basic class for a chart axis. This class contains the basic properties and methods for chart axes.
To resolve which axis type is used by each chart style please see the set function of the chart plot according to your style. E.g.
To resolve which axis type is used by each chart style please see the set function of the chart plot according to your style. E.g.
BarStyle belongs to the plot BarPlot.
This uses a GroupAxis as category axis (see BarPlot.setCategoryAxis(GroupAxis))
and a ContinuousNumberAxis as data axis (see BarPlot.setDataAxis(ContinuousNumberAxis)).- Seit:
- 8.0
- Siehe auch:
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intThe default axis color (the ABGR value representation).static final intThe default grid lines color (the ABGR value representation).static final intThe default axis label color (the ABGR value representation).static final FontThe default axis tick labels font.static final ChartTitleDefault title of this axis.static final StringXML token for a category axis element.static final StringXML token for a data axis element.static final StringXML token for a series axis element. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidCopies the properties of this axis to the new axis.intReturns the ABGR value representing the axis line color.Returns the relative position of this axis on the chart.intReturns the ABGR value representing the grid lines color.Get FormulaFields referenced by this Axis.
Can be from marker (if this is MarkerAxis) or from title.protected StringBuildergetSubProperties(int depth) Returns the serialized properties of subclasses.intReturns the color as ABGR value of tick labels on this axis.Returns the font of tick labels on this axis.Returns a tick label format of this axis.getTitle()Gets the title of this axisbooleanReturns whether or not the axis grid lines are visible.booleanReturns the orientation of the values on the axis.voidreadProperties(Element element, Chart2 chart) Loads the XML properties of a chart axis.voidsaveProperties(PrintWriter out, int depth, String axisType) Writes the axis properties to the output stream as XMLprotected voidsaveSubProperties(PrintWriter out, int depth) Writes the intern axis properties to output.voidsetAxisLineColor(int axisLineColor) Sets the ABGR components of the axis line color.voidsetAxisPosition(AxisPosition position) Sets the position of this axis on the chart or disables the axis from being shown, ifAxisPosition.NONEis passed.voidsetGridlineColor(int gridlineColor) Sets the ABGR components of the grid lines color.voidsetGridlinesVisible(boolean gridlinesVisible) Sets whether or not the axis grid lines are visible.voidsetInverseOrder(boolean inverseOrder) Sets the orientation of the values on the axis -true if inverse, false otherwisevoidsetTickLabelColor(int tickLabelColor) Sets the color as ABGR value of tick labels on this axis.voidsetTickLabelFont(Font tickLabelFont) Sets the font of tick labels on this axis.voidsetTickLabelFormat(ChartFormat tickLabelFormat) Sets the tick label format.voidsetTitle(ChartTitle title) Sets the title of this axis.
-
Felddetails
-
DEFAULT_TICK_LABEL_COLOR
public static final int DEFAULT_TICK_LABEL_COLORThe default axis label color (the ABGR value representation).- Siehe auch:
-
DEFAULT_TICK_LABEL_FONT
The default axis tick labels font. -
DEFAULT_GRIDLINE_COLOR
public static final int DEFAULT_GRIDLINE_COLORThe default grid lines color (the ABGR value representation). -
DEFAULT_AXIS_LINE_COLOR
public static final int DEFAULT_AXIS_LINE_COLORThe default axis color (the ABGR value representation). -
DEFAULT_TITLE
Default title of this axis. -
TOKEN_CATEGORY_AXIS
-
TOKEN_SERIES_AXIS
-
TOKEN_DATA_AXIS
-
-
Konstruktordetails
-
BaseAxis
public BaseAxis()Creates a instance of BaseAxis, sets the default properties. To disable the axis from being shown useAxisPosition.NONE.- Seit:
- 8.0
-
-
Methodendetails
-
isGridlinesVisible
public boolean isGridlinesVisible()Returns whether or not the axis grid lines are visible.- Gibt zurück:
- whether or not the axis grid lines are visible
- Seit:
- 8.0
- Siehe auch:
-
setGridlinesVisible
public void setGridlinesVisible(boolean gridlinesVisible) Sets whether or not the axis grid lines are visible.- Parameter:
gridlinesVisible- whether or not the axis grid lines are visible- Seit:
- 8.0
- Siehe auch:
-
getGridlineColor
public int getGridlineColor()Returns the ABGR value representing the grid lines color.- Gibt zurück:
- the grid lines color.
- Seit:
- 8.0
- Siehe auch:
-
setGridlineColor
public void setGridlineColor(int gridlineColor) Sets the ABGR components of the grid lines color.- Parameter:
gridlineColor- the color- Löst aus:
IllegalArgumentException- byRDC.COLOR_NO_COLOR.- Seit:
- 8.0
- Siehe auch:
-
getAxisLineColor
public int getAxisLineColor()Returns the ABGR value representing the axis line color.- Gibt zurück:
- the axis line color.
- Seit:
- 8.0
- Siehe auch:
-
isInverseOrder
public boolean isInverseOrder()Returns the orientation of the values on the axis.- Gibt zurück:
- true if inverse order, false otherwise
- Seit:
- 8.0
- Siehe auch:
-
setInverseOrder
public void setInverseOrder(boolean inverseOrder) Sets the orientation of the values on the axis -true if inverse, false otherwise- Parameter:
inverseOrder- the orientation of the values on the axis- Seit:
- 8.0
- Siehe auch:
-
setAxisLineColor
public void setAxisLineColor(int axisLineColor) Sets the ABGR components of the axis line color.- Parameter:
axisLineColor- the color- Löst aus:
IllegalArgumentException- byRDC.COLOR_NO_COLOR.- Seit:
- 8.0
- Siehe auch:
-
getTitle
Gets the title of this axis- Gibt zurück:
- the axis title
- Seit:
- 8.0
- Siehe auch:
-
setTitle
Sets the title of this axis. To disable the title use setAxisPosition(AxisPosition.NONE)- Parameter:
title- the axis title (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getTickLabelFont
Returns the font of tick labels on this axis.- Gibt zurück:
- the tick label font.
- Seit:
- 8.0
- Siehe auch:
-
setTickLabelFont
Sets the font of tick labels on this axis.- Parameter:
tickLabelFont- the axis tick labels font (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getTickLabelColor
public int getTickLabelColor()Returns the color as ABGR value of tick labels on this axis.- Gibt zurück:
- the ABGR value representing the label color.
- Seit:
- 8.0
- Siehe auch:
-
setTickLabelColor
public void setTickLabelColor(int tickLabelColor) Sets the color as ABGR value of tick labels on this axis.- Parameter:
tickLabelColor- ABGR components of the axis labels color- Löst aus:
IllegalArgumentException- byRDC.COLOR_NO_COLOR.- Seit:
- 8.0
- Siehe auch:
-
getTickLabelFormat
Returns a tick label format of this axis. The default value of this property isnull, that means the chart formats the axis values automatically.- Gibt zurück:
- the format or
nullto auto format - Seit:
- 8.0
- Siehe auch:
-
setTickLabelFormat
Sets the tick label format. The default value of this property isnull, that means the chart formats the axis values automatically. Note: for charts with number values on the axis, only formats extended fromNumberFormatare allowed, and date charts, only formats extended fromDateFormatare allowed.- Parameter:
tickLabelFormat- the format (nullpermitted)- Löst aus:
IllegalArgumentException- by date format for number values- Seit:
- 8.0
- Siehe auch:
-
getAxisPosition
Returns the relative position of this axis on the chart. A y-axis with positionAxisPosition.ON_MINwill be placed on the left side of chart.- Gibt zurück:
- the axis position
- Seit:
- 8.0
- Siehe auch:
-
setAxisPosition
Sets the position of this axis on the chart or disables the axis from being shown, ifAxisPosition.NONEis passed. A y-axis with positionAxisPosition.ON_MINwill be placed on the left side of chart.- Parameter:
position- the axis position (nullnot permitted)- Löst aus:
IllegalArgumentException- if position isnull.- Seit:
- 8.0
- Siehe auch:
-
copyTo
Copies the properties of this axis to the new axis.- Parameter:
that- the new axis to copy the properties to- Seit:
- 8.0
-
saveProperties
Writes the axis properties to the output stream as XML- Parameter:
out- the output stream to write todepth- the depth of whitespace indent to prefix each line withaxisType- type of this axis: "category", "series" or "data"- Seit:
- 8.0
-
getSubProperties
Returns the serialized properties of subclasses.- Parameter:
depth- the depth of XML indent- Gibt zurück:
- the properties.
- Seit:
- 8.0
-
saveSubProperties
Writes the intern axis properties to output. Overwrites this to save intern properties direct toPrintWriterwithout building aStringBuilder.- Parameter:
out- the outputdepth- the depth of XML indent- Seit:
- 8.0
-
readProperties
-
getReferencedObjects
-