package lecho.lib.hellocharts.model;

/**
 * Interface for all value formatters used for axes and value labels. Implementations of this interface should be fast,
 * use constants, char characters etc. Avoid string operations.
 * 
 * @author Leszek Wach
 * 
 */
public interface ValueFormatter {

	/**
	 * Formats values with given number of digits after decimal separator. Result is stored in given array. Method
	 * returns number of chars for formatted value. The formated value starts at index [formattedValue.length -
	 * nummChars] and ends at index [formatteValue.length-1].
	 */
	public int formatValue(char[] formattedValue, float[] values, char[] label);

	/**
	 * Used for auto-generated axes. Formats values with given number of digits after decimal separator. Result is
	 * stored in given array. Method returns number of chars for formatted value. The formated value starts at index
	 * [formattedValue.length - nummChars] and ends at index [formatteValue.length-1].
	 */
	public int formatAutoValue(char[] formattedValue, float[] values, int digits);
}

@@ -668,24 +668,29 @@
 **%0A%09 * Used 
+only 
 for auto-gen
@@ -701,16 +701,159 @@
 ed axes.
+ If you are not going to use your implementation for aut-generated axes you can%0A%09 * skip implementation of this method and just return 0. %3C/br%3E
  Formats
@@ -885,32 +885,36 @@
  of digits after
+%0A%09 *
  decimal separat
@@ -926,20 +926,16 @@
 esult is
-%0A%09 *
  stored 
@@ -997,32 +997,36 @@
 atted value. The
+%0A%09 *
  formated value 
@@ -1040,20 +1040,16 @@
 at index
-%0A%09 *
  %5Bformat

Update docs