afreechart/src/main/java/org/afree/chart/axis/NumberAxis.java
/**
     * Creates the standard tick units.
     * <P>
     * If you don't like these defaults, create your own instance of TickUnits
     * and then pass it to the setStandardTickUnits() method in the NumberAxis
     * class.
     * 
     * @return The standard tick units.
     * 
     * @see #setStandardTickUnits(TickUnitSource)
     * @see #createIntegerTickUnits()
     */
Creates the standard tick units.

If you don't like these defaults, create your own instance of TickUnits
and then pass it to the setStandardTickUnits() method in the NumberAxis
class.

@return The standard tick units.


Creates the standard tick units . If you don ' t like these defaults create your own instance of TickUnits and then pass it to the setStandardTickUnits () method in the NumberAxis class . @return The standard tick units .
public static TickUnitSource createStandardTickUnits() {
        TickUnits units = new TickUnits();
        DecimalFormat df0 = new DecimalFormat("0.00000000");
        DecimalFormat df1 = new DecimalFormat("0.0000000");
        DecimalFormat df2 = new DecimalFormat("0.000000");
        DecimalFormat df3 = new DecimalFormat("0.00000");
        DecimalFormat df4 = new DecimalFormat("0.0000");
        DecimalFormat df5 = new DecimalFormat("0.000");
        DecimalFormat df6 = new DecimalFormat("0.00");
        DecimalFormat df7 = new DecimalFormat("0.0");
        DecimalFormat df8 = new DecimalFormat("#,##0");
        DecimalFormat df9 = new DecimalFormat("#,###,##0");
        DecimalFormat df10 = new DecimalFormat("#,###,###,##0");
        units.add(new NumberTickUnit(0.0000001, df1, 2));
        units.add(new NumberTickUnit(0.000001, df2, 2));
        units.add(new NumberTickUnit(0.00001, df3, 2));
        units.add(new NumberTickUnit(0.0001, df4, 2));
        units.add(new NumberTickUnit(0.001, df5, 2));
        units.add(new NumberTickUnit(0.01, df6, 2));
        units.add(new NumberTickUnit(0.1, df7, 2));
        units.add(new NumberTickUnit(1, df8, 2));
        units.add(new NumberTickUnit(10, df8, 2));
        units.add(new NumberTickUnit(100, df8, 2));
        units.add(new NumberTickUnit(1000, df8, 2));
        units.add(new NumberTickUnit(10000, df8, 2));
        units.add(new NumberTickUnit(100000, df8, 2));
        units.add(new NumberTickUnit(1000000, df9, 2));
        units.add(new NumberTickUnit(10000000, df9, 2));
        units.add(new NumberTickUnit(100000000, df9, 2));
        units.add(new NumberTickUnit(1000000000, df10, 2));
        units.add(new NumberTickUnit(10000000000.0, df10, 2));
        units.add(new NumberTickUnit(100000000000.0, df10, 2));
        units.add(new NumberTickUnit(0.00000025, df0, 5));
        units.add(new NumberTickUnit(0.0000025, df1, 5));
        units.add(new NumberTickUnit(0.000025, df2, 5));
        units.add(new NumberTickUnit(0.00025, df3, 5));
        units.add(new NumberTickUnit(0.0025, df4, 5));
        units.add(new NumberTickUnit(0.025, df5, 5));
        units.add(new NumberTickUnit(0.25, df6, 5));
        units.add(new NumberTickUnit(2.5, df7, 5));
        units.add(new NumberTickUnit(25, df8, 5));
        units.add(new NumberTickUnit(250, df8, 5));
        units.add(new NumberTickUnit(2500, df8, 5));
        units.add(new NumberTickUnit(25000, df8, 5));
        units.add(new NumberTickUnit(250000, df8, 5));
        units.add(new NumberTickUnit(2500000, df9, 5));
        units.add(new NumberTickUnit(25000000, df9, 5));
        units.add(new NumberTickUnit(250000000, df9, 5));
        units.add(new NumberTickUnit(2500000000.0, df10, 5));
        units.add(new NumberTickUnit(25000000000.0, df10, 5));
        units.add(new NumberTickUnit(250000000000.0, df10, 5));
        units.add(new NumberTickUnit(0.0000005, df1, 5));
        units.add(new NumberTickUnit(0.000005, df2, 5));
        units.add(new NumberTickUnit(0.00005, df3, 5));
        units.add(new NumberTickUnit(0.0005, df4, 5));
        units.add(new NumberTickUnit(0.005, df5, 5));
        units.add(new NumberTickUnit(0.05, df6, 5));
        units.add(new NumberTickUnit(0.5, df7, 5));
        units.add(new NumberTickUnit(5L, df8, 5));
        units.add(new NumberTickUnit(50L, df8, 5));
        units.add(new NumberTickUnit(500L, df8, 5));
        units.add(new NumberTickUnit(5000L, df8, 5));
        units.add(new NumberTickUnit(50000L, df8, 5));
        units.add(new NumberTickUnit(500000L, df8, 5));
        units.add(new NumberTickUnit(5000000L, df9, 5));
        units.add(new NumberTickUnit(50000000L, df9, 5));
        units.add(new NumberTickUnit(500000000L, df9, 5));
        units.add(new NumberTickUnit(5000000000L, df10, 5));
        units.add(new NumberTickUnit(50000000000L, df10, 5));
        units.add(new NumberTickUnit(500000000000L, df10, 5));
        return units;
    }
public static TickUnitSource createStandardTickUnits ( ) { TickUnits units = new TickUnits ( ) ; DecimalFormat df0 = new DecimalFormat ( "0.00000000" ) ; DecimalFormat df1 = new DecimalFormat ( "0.0000000" ) ; DecimalFormat df2 = new DecimalFormat ( "0.000000" ) ; DecimalFormat df3 = new DecimalFormat ( "0.00000" ) ; DecimalFormat df4 = new DecimalFormat ( "0.0000" ) ; DecimalFormat df5 = new DecimalFormat ( "0.000" ) ; DecimalFormat df6 = new DecimalFormat ( "0.00" ) ; DecimalFormat df7 = new DecimalFormat ( "0.0" ) ; DecimalFormat df8 = new DecimalFormat ( "#,##0" ) ; DecimalFormat df9 = new DecimalFormat ( "#,###,##0" ) ; DecimalFormat df10 = new DecimalFormat ( "#,###,###,##0" ) ; units . add ( new NumberTickUnit ( 0.0000001 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.000001 , df2 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.00001 , df3 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.0001 , df4 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.001 , df5 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.01 , df6 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.1 , df7 , 2 ) ) ; units . add ( new NumberTickUnit ( 1 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 10 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 100 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 1000 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 10000 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 100000 , df8 , 2 ) ) ; units . add ( new NumberTickUnit ( 1000000 , df9 , 2 ) ) ; units . add ( new NumberTickUnit ( 10000000 , df9 , 2 ) ) ; units . add ( new NumberTickUnit ( 100000000 , df9 , 2 ) ) ; units . add ( new NumberTickUnit ( 1000000000 , df10 , 2 ) ) ; units . add ( new NumberTickUnit ( 10000000000.0 , df10 , 2 ) ) ; units . add ( new NumberTickUnit ( 100000000000.0 , df10 , 2 ) ) ; units . add ( new NumberTickUnit ( 0.00000025 , df0 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.0000025 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.000025 , df2 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.00025 , df3 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.0025 , df4 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.025 , df5 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.25 , df6 , 5 ) ) ; units . add ( new NumberTickUnit ( 2.5 , df7 , 5 ) ) ; units . add ( new NumberTickUnit ( 25 , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 250 , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 2500 , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 25000 , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 250000 , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 2500000 , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 25000000 , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 250000000 , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 2500000000.0 , df10 , 5 ) ) ; units . add ( new NumberTickUnit ( 25000000000.0 , df10 , 5 ) ) ; units . add ( new NumberTickUnit ( 250000000000.0 , df10 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.0000005 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.000005 , df2 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.00005 , df3 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.0005 , df4 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.005 , df5 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.05 , df6 , 5 ) ) ; units . add ( new NumberTickUnit ( 0.5 , df7 , 5 ) ) ; units . add ( new NumberTickUnit ( 5L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 50L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 500L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 5000L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 50000L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 500000L , df8 , 5 ) ) ; units . add ( new NumberTickUnit ( 5000000L , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 50000000L , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 500000000L , df9 , 5 ) ) ; units . add ( new NumberTickUnit ( 5000000000L , df10 , 5 ) ) ; units . add ( new NumberTickUnit ( 50000000000L , df10 , 5 ) ) ; units . add ( new NumberTickUnit ( 500000000000L , df10 , 5 ) ) ; return units ; }
Creates the standard tick units.
Creates the standard tick units .
// we can add the units in any order, the TickUnits collection will // sort them...