public class

GridlineStyle

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

Class Overview

Visual style properties for a set of axis gridlines. If you make any styling changes after the chart has been displayed, you should call chart.redrawChart().

Summary

Public Constructors
GridlineStyle()
Public Methods
boolean areGridlinesDashed()
Whether the grid lines should be dashed.
boolean areGridlinesShown()
Whether to show grid lines from the major tick marks.
float[] getDashStyle()
The dash pattern of the line.
int getLineColor()
The color for grid lines.
float getLineWidth()
The width of the grid lines, in device independent pixels.
void setDashStyle(float[] dashStyle)
Sets the dash pattern of the line.
void setGridlinesDashed(boolean dashedGridlines)
Sets whether the grid lines should be dashed.
void setGridlinesShown(boolean showGridlines)
Sets whether to show grid lines from the major tick marks.
void setLineColor(int lineColor)
Sets the color for grid lines.
void setLineWidth(float lineWidth)
Sets the width of the grid lines, in device independent pixels.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GridlineStyle ()

Public Methods

public boolean areGridlinesDashed ()

Whether the grid lines should be dashed.

Returns
  • Whether the grid lines should be dashed.

public boolean areGridlinesShown ()

Whether to show grid lines from the major tick marks. Grid lines will only be visible on devices running build version 14 (ICS) and above.

Returns
  • Whether to show grid lines from the major tick marks.

public float[] getDashStyle ()

The dash pattern of the line. The pattern will wrap if the line needs more segments than provided.

Returns
  • An array of lengths for each adjacent section, in device independent pixels.

public int getLineColor ()

The color for grid lines.

Returns
  • The int representation of the color for the grid lines

public float getLineWidth ()

The width of the grid lines, in device independent pixels.

Returns
  • The width of the grid lines, in device independent pixels

public void setDashStyle (float[] dashStyle)

Sets the dash pattern of the line. The pattern will wrap if the line needs more segments than provided.

Parameters
dashStyle The dash pattern of the line, in device independent pixels.
See Also

public void setGridlinesDashed (boolean dashedGridlines)

Sets whether the grid lines should be dashed.

Parameters
dashedGridlines Whether the grid lines should be dashed

public void setGridlinesShown (boolean showGridlines)

Sets whether to show grid lines from the major tick marks. Grid lines will only be visible on devices running build version 14 (ICS) and above.

Parameters
showGridlines Whether to show grid lines from the major tick marks.

public void setLineColor (int lineColor)

Sets the color for grid lines.

Parameters
lineColor The color for grid lines
See Also

public void setLineWidth (float lineWidth)

Sets the width of the grid lines, in device independent pixels.

Parameters
lineWidth The width of the grid lines, in device independent pixels.
See Also