Back to project page customhellochartdemo.
The source code is released under:
Apache License
If you think the Android project customhellochartdemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lecho.lib.hellocharts.model; //w w w . j a va2 s . c om /** * Single axis value, use it to manually set axis labels position. You can use label attribute to display text instead * of number but value formatter implementation have to handle it. * */ public class AxisValue { private float value; private char[] label; public AxisValue(float value) { this.value = value; } public AxisValue(float value, char[] label) { this.value = value; this.label = label; } public AxisValue(AxisValue axisValue) { this.value = axisValue.value; this.label = axisValue.label; } public float getValue() { return value; } public AxisValue setValue(float value) { this.value = value; return this; } public char[] getLabel() { return label; } /** * Set custom label for this axis value. * * @param label */ public AxisValue setLabel(char[] label) { this.label = label; return this; } }