afreechart/src/main/java/org/afree/chart/axis/NumberAxis.java
/**
     * Returns a collection of tick units for integer values.
     * 
     * @return A collection of tick units for integer values.
     * 
     * @see #setStandardTickUnits(TickUnitSource)
     * @see #createStandardTickUnits()
     */
Returns a collection of tick units for integer values.

@return A collection of tick units for integer values.


Returns a collection of tick units for integer values . @return A collection of tick units for integer values .
public static TickUnitSource createIntegerTickUnits() {
        TickUnits units = new TickUnits();
        DecimalFormat df0 = new DecimalFormat("0");
        DecimalFormat df1 = new DecimalFormat("#,##0");
        units.add(new NumberTickUnit(1, df0, 2));
        units.add(new NumberTickUnit(2, df0, 2));
        units.add(new NumberTickUnit(5, df0, 5));
        units.add(new NumberTickUnit(10, df0, 2));
        units.add(new NumberTickUnit(20, df0, 2));
        units.add(new NumberTickUnit(50, df0, 5));
        units.add(new NumberTickUnit(100, df0, 2));
        units.add(new NumberTickUnit(200, df0, 2));
        units.add(new NumberTickUnit(500, df0, 5));
        units.add(new NumberTickUnit(1000, df1, 2));
        units.add(new NumberTickUnit(2000, df1, 2));
        units.add(new NumberTickUnit(5000, df1, 5));
        units.add(new NumberTickUnit(10000, df1, 2));
        units.add(new NumberTickUnit(20000, df1, 2));
        units.add(new NumberTickUnit(50000, df1, 5));
        units.add(new NumberTickUnit(100000, df1, 2));
        units.add(new NumberTickUnit(200000, df1, 2));
        units.add(new NumberTickUnit(500000, df1, 5));
        units.add(new NumberTickUnit(1000000, df1, 2));
        units.add(new NumberTickUnit(2000000, df1, 2));
        units.add(new NumberTickUnit(5000000, df1, 5));
        units.add(new NumberTickUnit(10000000, df1, 2));
        units.add(new NumberTickUnit(20000000, df1, 2));
        units.add(new NumberTickUnit(50000000, df1, 5));
        units.add(new NumberTickUnit(100000000, df1, 2));
        units.add(new NumberTickUnit(200000000, df1, 2));
        units.add(new NumberTickUnit(500000000, df1, 5));
        units.add(new NumberTickUnit(1000000000, df1, 2));
        units.add(new NumberTickUnit(2000000000, df1, 2));
        units.add(new NumberTickUnit(5000000000.0, df1, 5));
        units.add(new NumberTickUnit(10000000000.0, df1, 2));
        return units;
    }
public static TickUnitSource createIntegerTickUnits ( ) { TickUnits units = new TickUnits ( ) ; DecimalFormat df0 = new DecimalFormat ( "0" ) ; DecimalFormat df1 = new DecimalFormat ( "#,##0" ) ; units . add ( new NumberTickUnit ( 1 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 2 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 5 , df0 , 5 ) ) ; units . add ( new NumberTickUnit ( 10 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 20 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 50 , df0 , 5 ) ) ; units . add ( new NumberTickUnit ( 100 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 200 , df0 , 2 ) ) ; units . add ( new NumberTickUnit ( 500 , df0 , 5 ) ) ; units . add ( new NumberTickUnit ( 1000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 2000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 5000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 10000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 20000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 50000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 100000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 200000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 500000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 1000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 2000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 5000000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 10000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 20000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 50000000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 100000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 200000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 500000000 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 1000000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 2000000000 , df1 , 2 ) ) ; units . add ( new NumberTickUnit ( 5000000000.0 , df1 , 5 ) ) ; units . add ( new NumberTickUnit ( 10000000000.0 , df1 , 2 ) ) ; return units ; }
Returns a collection of tick units for integer values.
Returns a collection of tick units for integer values .