public static Axis generateAxisFromCollection ( List < Float > axisValues ) { List < AxisValue > values = new ArrayList < AxisValue > ( ) ; int index = 0 ; for ( float value : axisValues ) { AxisValue axisValue = new AxisValue ( value ) ; values . add ( axisValue ) ; ++ index ; } Axis axis = new Axis ( values ) ; return axis ; }
Generates Axis with values from given list .