public final class

TickStyle

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

Class Overview

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

Summary

Public Constructors
TickStyle()
Public Methods
boolean areLabelsShown()
Whether labels are displayed on major tick marks
boolean areMajorTicksShown()
Whether major tick marks are displayed on the axis
boolean areMinorTicksShown()
Whether minor tick marks are displayed on the axis
int getLabelColor()
The color for label text.
TickMark.Orientation getLabelOrientation()
The orientation of labels on major tick marks.
int getLabelTextShadowColor()
The shadow color for label text.
float getLabelTextSize()
The size of the text for labels, in scaled pixels.
Typeface getLabelTypeface()
The type face for labels.
int getLineColor()
The color for tick mark lines.
float getLineLength()
The length of tick mark lines, in device independent pixels.
float getLineWidth()
The width of tick mark lines, in device independent pixels.
float getTickGap()
The gap between a tick label and its corresponding tick mark, in device independent pixels.
void setLabelColor(int labelColor)
The color for label text.
void setLabelOrientation(TickMark.Orientation tickLabelOrientation)
The orientation of labels on major tick marks.
void setLabelTextShadowColor(int labelTextShadowColor)
The shadow color for label text.
void setLabelTextSize(float labelTextSize)
The size of the text for labels, in scaled pixels.
void setLabelTypeface(Typeface labelTypeface)
The type face for labels.
void setLabelsShown(boolean showLabels)
Sets whether labels are displayed on major tick marks?
void setLineColor(int lineColor)
The color for tick mark lines.
void setLineLength(float lineLength)
The length of tick mark lines, in device independent pixels.
void setLineWidth(float lineWidth)
The width of tick mark lines, in device independent pixels.
void setMajorTicksShown(boolean showTicks)
Sets whether major tick marks are displayed on the axes?
void setMinorTicksShown(boolean showTicks)
Sets whether minor tick marks are displayed on the axes?
void setTickGap(float tickGap)
The gap between a tick label and its corresponding tick mark, in device independent pixels.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TickStyle ()

Public Methods

public boolean areLabelsShown ()

Whether labels are displayed on major tick marks

Returns
  • Whether labels are displayed on major tick marks

public boolean areMajorTicksShown ()

Whether major tick marks are displayed on the axis

Returns
  • Whether major tick marks are displayed on the axis

public boolean areMinorTicksShown ()

Whether minor tick marks are displayed on the axis

Returns
  • Whether minor tick marks are displayed on the axis

public int getLabelColor ()

The color for label text.

Returns
  • The int representation of the color for the tick label's text

public TickMark.Orientation getLabelOrientation ()

The orientation of labels on major tick marks.

Returns
  • The orientation of labels on major tick marks.

public int getLabelTextShadowColor ()

The shadow color for label text.

Returns
  • The int representation of the color for the shadow of the tick label's text

public float getLabelTextSize ()

The size of the text for labels, in scaled pixels.

Returns
  • The size of the text in the tick mark labels units, in scaled pixels.

public Typeface getLabelTypeface ()

The type face for labels.

Returns
  • The type face for the text in the tick mark labels

public int getLineColor ()

The color for tick mark lines.

Returns
  • The int representation of the color for the tick mark's lines

public float getLineLength ()

The length of tick mark lines, in device independent pixels.

Returns
  • The length of tick mark lines, in device independent pixels.

public float getLineWidth ()

The width of tick mark lines, in device independent pixels.

Returns
  • The width of tick mark lines, in device independent pixels.

public float getTickGap ()

The gap between a tick label and its corresponding tick mark, in device independent pixels.

Returns
  • The size of the gap, between a tick mark label and the corresponding tick mark, in device independent pixels.

public void setLabelColor (int labelColor)

The color for label text.

Parameters
labelColor the int representation of the color for the tick label's text
See Also

public void setLabelOrientation (TickMark.Orientation tickLabelOrientation)

The orientation of labels on major tick marks.

Parameters
tickLabelOrientation the orientation of labels on major tick marks.

public void setLabelTextShadowColor (int labelTextShadowColor)

The shadow color for label text.

Parameters
labelTextShadowColor the int representation of the color for the shadow of the tick label's text

public void setLabelTextSize (float labelTextSize)

The size of the text for labels, in scaled pixels.

Parameters
labelTextSize the size of the text in the tick mark labels units, in scaled pixels.

public void setLabelTypeface (Typeface labelTypeface)

The type face for labels.

Parameters
labelTypeface the type face for the text in the tick mark labels

public void setLabelsShown (boolean showLabels)

Sets whether labels are displayed on major tick marks?

Parameters
showLabels Whether labels are displayed on major tick marks
See Also

public void setLineColor (int lineColor)

The color for tick mark lines.

Parameters
lineColor the int representation of the color for the tick mark's lines
See Also

public void setLineLength (float lineLength)

The length of tick mark lines, in device independent pixels.

Parameters
lineLength the length of tick mark lines, in device independent pixels.
See Also

public void setLineWidth (float lineWidth)

The width of tick mark lines, in device independent pixels.

Parameters
lineWidth the width of tick mark lines, in device independent pixels.
See Also

public void setMajorTicksShown (boolean showTicks)

Sets whether major tick marks are displayed on the axes?

Parameters
showTicks Whether major tick marks are displayed on the axis

public void setMinorTicksShown (boolean showTicks)

Sets whether minor tick marks are displayed on the axes?

Parameters
showTicks Whether minor tick marks are displayed on the axis

public void setTickGap (float tickGap)

The gap between a tick label and its corresponding tick mark, in device independent pixels.

Parameters
tickGap the size of the gap, between a tick mark label and the corresponding tick mark, in device independent pixels.
See Also