public static Axis generateAxisFromRange ( float start , float stop , float step ) { List < AxisValue > values = new ArrayList < AxisValue > ( ) ; for ( float value = start ; value <= stop ; value += step ) { AxisValue axisValue = new AxisValue ( value ) ; values . add ( axisValue ) ; } Axis axis = new Axis ( values ) ; return axis ; }
Generates Axis with values from start to stop inclusive .