public static final class

ChartAxis.Label

extends Object
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartAxis.Label

Class Overview

Represents axis label.

Summary

Constants
int DRAWABLE_BOTTOM Drawable draws below of text.
int DRAWABLE_CENTER Drawable draws behind of text.
int DRAWABLE_LEFT Drawable draws left of text.
int DRAWABLE_RIGHT Drawable draws right of text.
int DRAWABLE_TOP Drawable draws above of text.
int OPTION_ALL Label has all options.
int OPTION_GRID_LINE Label has grid line.
int OPTION_NONE No specific options.
int OPTION_TICK Label has tick mark.
Public Constructors
ChartAxis.Label(String text, double position)
Initializes label with specified parameters.
ChartAxis.Label(String text, double position, int options)
Initializes label with specified parameters.
ChartAxis.Label(String text, Date position)
Initializes label with specified parameters.
ChartAxis.Label(String text, Calendar position)
Initializes label with specified parameters.
Public Methods
Drawable getDrawable()
Gets label drawable.
int getDrawableGravity()
Gets drawable gravity.
int getOptions()
Gets label options.
Paint getPaint()
Gets label paint.
double getPosition()
Represents label's position on axis.
String getText()
Represents label's text.
void setDrawable(Drawable drawable)
Sets label drawable.
void setDrawableGravity(int gravity)
Sets drawable gravity.
void setOptions(int options)
Sets label options.
void setPaint(Paint paint)
Sets label paint.
void setPosition(double position)
Sets label position.
void setText(String text)
Sets label text.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DRAWABLE_BOTTOM

Drawable draws below of text.

Constant Value: 33 (0x00000021)

public static final int DRAWABLE_CENTER

Drawable draws behind of text.

Constant Value: 17 (0x00000011)

public static final int DRAWABLE_LEFT

Drawable draws left of text.

Constant Value: 16 (0x00000010)

public static final int DRAWABLE_RIGHT

Drawable draws right of text.

Constant Value: 18 (0x00000012)

public static final int DRAWABLE_TOP

Drawable draws above of text.

Constant Value: 1 (0x00000001)

public static final int OPTION_ALL

Label has all options.

Constant Value: 3 (0x00000003)

public static final int OPTION_GRID_LINE

Label has grid line.

Constant Value: 2 (0x00000002)

public static final int OPTION_NONE

No specific options.

Constant Value: 0 (0x00000000)

public static final int OPTION_TICK

Label has tick mark.

Constant Value: 1 (0x00000001)

Public Constructors

public ChartAxis.Label (String text, double position)

Initializes label with specified parameters.

Parameters
text String representation of label.
position axis range related position.

public ChartAxis.Label (String text, double position, int options)

Initializes label with specified parameters.

Parameters
text String representation of label.
position axis range related position.
options labels options

public ChartAxis.Label (String text, Date position)

Initializes label with specified parameters.

Parameters
text String representation of label.
position axis range related position.

public ChartAxis.Label (String text, Calendar position)

Initializes label with specified parameters.

Parameters
text String representation of label.
position axis range related position.

Public Methods

public Drawable getDrawable ()

Gets label drawable.

public int getDrawableGravity ()

Gets drawable gravity.

public int getOptions ()

Gets label options.

Returns
  • label options

public Paint getPaint ()

Gets label paint.

Returns
  • custom label paint

public double getPosition ()

Represents label's position on axis. Value is related to axis' range.

public String getText ()

Represents label's text.

public void setDrawable (Drawable drawable)

Sets label drawable.

Parameters
drawable label drawable

public void setDrawableGravity (int gravity)

Sets drawable gravity.

Parameters
gravity drawable gravity

public void setOptions (int options)

Sets label options.

Parameters
options label options

public void setPaint (Paint paint)

Sets label paint.

public void setPosition (double position)

Sets label position.

Parameters
position label position

public void setText (String text)

Sets label text.

Parameters
text label text