public final class

AxisStyle

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.AxisStyle

Class Overview

Visual style properties for the Axis. The axis style object controls the look and feel for the axis, tick marks and labels, grid lines and grid stripes. If you make any styling changes after the chart has been displayed, you should call chart.redrawChart().

Summary

Public Constructors
AxisStyle()
Public Methods
GridStripeStyle getGridStripeStyle()
Gets the GridStripeStyle object containing styling preferences for the grid stripes.
GridlineStyle getGridlineStyle()
Gets the GridlineStyle object containing styling preferences for the major gridlines.
float getInterSeriesPadding()
Gets the proportion of padding to use between bar/column series data points which share the same axis value.
float getInterSeriesSetPadding()
Gets the proportion of padding to use between each set of series.
int getLineColor()
Gets the color for the axis line.
float getLineWidth()
Gets the width of the axis line drawn on the chart, in device independent pixels.
TickStyle getTickStyle()
Gets the TickStyle object containing styling preferences for the tick marks.
AxisTitleStyle getTitleStyle()
Gets an AxisTitleStyle object containing styling preferences for the axis title.
void setGridStripeStyle(GridStripeStyle gridStripeStyle)
Sets the GridStripeStyle object containing styling preferences for the grid stripes.
void setGridlineStyle(GridlineStyle gridlineStyle)
Sets the GridlineStyle object containing styling preferences for the major gridlines.
void setInterSeriesPadding(float interSeriesPadding)
Sets the proportion of padding to use between bar/column series data points which share the same axis value.
void setInterSeriesSetPadding(float interSeriesSetPadding)
Gets the proportion of padding to use between each set of series.
void setLineColor(int lineColor)
Sets the color for the axis line.
void setLineWidth(float lineWidth)
Sets the width of the axis line drawn on the chart, in device independent pixels.
void setTickStyle(TickStyle tickStyle)
Sets the TickStyle object containing styling preferences for the tick marks.
void setTitleStyle(AxisTitleStyle titleStyle)
Sets the AxisTitleStyle object containing styling preferences for the axis title.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AxisStyle ()

Public Methods

public GridStripeStyle getGridStripeStyle ()

Gets the GridStripeStyle object containing styling preferences for the grid stripes. Grid stripes will only be visible on devices running build version 14 (ICS) and above.

Returns
  • The grid stripe style

public GridlineStyle getGridlineStyle ()

Gets the GridlineStyle object containing styling preferences for the major gridlines. Grid lines will only be visible on devices running build version 14 (ICS) and above.

Returns
  • The gridline style

public float getInterSeriesPadding ()

Gets the proportion of padding to use between bar/column series data points which share the same axis value.

Returns
  • A proportion of available space, from 0.0 to 1.0, but not including 1.0 (0.0 ≥ x < 1.0)

public float getInterSeriesSetPadding ()

Gets the proportion of padding to use between each set of series. Bar/column series which share the same axis are grouped into sets. A set is constructed at each data point. Therefore, series which share the same data point will be grouped into the same set.

Returns
  • A proportion of available space, from 0.0 to 1.0, but not including 1.0 (0.0 ≥ x < 1.0)

public int getLineColor ()

Gets the color for the axis line.

Returns
  • The int representation of the color for the axis line

public float getLineWidth ()

Gets the width of the axis line drawn on the chart, in device independent pixels.

Returns
  • The width of the axis line, in device independent pixels

public TickStyle getTickStyle ()

Gets the TickStyle object containing styling preferences for the tick marks.

Returns
  • The tick mark style

public AxisTitleStyle getTitleStyle ()

Gets an AxisTitleStyle object containing styling preferences for the axis title.

Returns
  • The axis title style

public void setGridStripeStyle (GridStripeStyle gridStripeStyle)

Sets the GridStripeStyle object containing styling preferences for the grid stripes. Grid stripes will only be visible on devices running build version 14 (ICS) and above.

Parameters
gridStripeStyle The grid stripe style

public void setGridlineStyle (GridlineStyle gridlineStyle)

Sets the GridlineStyle object containing styling preferences for the major gridlines. Grid lines will only be visible on devices running build version 14 (ICS) and above.

Parameters
gridlineStyle The gridline style

public void setInterSeriesPadding (float interSeriesPadding)

Sets the proportion of padding to use between bar/column series data points which share the same axis value.

Parameters
interSeriesPadding A proportion of available space, from 0.0 to 1.0, but not including 1.0 (0.0 ≥ x < 1.0)

public void setInterSeriesSetPadding (float interSeriesSetPadding)

Gets the proportion of padding to use between each set of series. Bar/column series which share the same axis are grouped into sets. A set is constructed at each data point. Therefore, series which share the same data point will be grouped into the same set.

Parameters
interSeriesSetPadding A proportion of available space, from 0.0 to 1.0, but not including 1.0 (0.0 ≥ x < 1.0)

public void setLineColor (int lineColor)

Sets the color for the axis line.

Parameters
lineColor The int representation of the color for the axis line
See Also

public void setLineWidth (float lineWidth)

Sets the width of the axis line drawn on the chart, in device independent pixels.

Parameters
lineWidth The width of the axis line, in device independent pixels
See Also

public void setTickStyle (TickStyle tickStyle)

Sets the TickStyle object containing styling preferences for the tick marks.

Parameters
tickStyle The tick mark style
See Also

public void setTitleStyle (AxisTitleStyle titleStyle)

Sets the AxisTitleStyle object containing styling preferences for the axis title.

Parameters
titleStyle The axis title style
See Also