Skip to main content

AxisLabel Class

The axis labels options’ storage.

Declaration

public class AxisLabel
extends AxisLabelBase

Remarks

These options specify the label format, position and appearance settings.

Inherited Members

java.lang.Object.equals(java.lang.Object)(Object)
java.lang.Object.hashCode()()
java.lang.Object.notify()()
java.lang.Object.notifyAll()()
java.lang.Object.toString()()
java.lang.Object.wait()()
java.lang.Object.wait(long)(long)
java.lang.Object.wait(long, int)(long,int)

AxisLabel()

Initializes a new AxisLabel class instance with default parameters.

Declaration

public AxisLabel()

Methods

getPosition() Method

Returns the axis labels position.

Declaration

public AxisLabelPosition getPosition()

Returns

Type Description
AxisLabelPosition

The AxisLabelPosition enumeration value specifying the axis labels’ position.

getTextFormat() Method

Returns the axis labels text’s format pattern.

Declaration

public String getTextFormat()

Returns

Type Description
String

The String object specifying the formatting string.

Remarks

Refer to the Formatter class in the Android developer documentation to learn more about the format string syntax.

setPosition(AxisLabelPosition) Method

Specifies the axis labels position.

Declaration

public void setPosition(AxisLabelPosition value)

Parameters

Name Type Description
value AxisLabelPosition

The AxisLabelPosition enumeration value specifying axis labels’ position.

setTextFormat(String) Method

Specifies the axis labels’ text format pattern.

Declaration

public void setTextFormat(String format)

Parameters

Name Type Description
format String

The String object specifying the formatting string.

Remarks

Refer to the Formatter topic in the Android developer documentation to learn more about the format string syntax.