public static float [ ] getDash ( String dashStr ) { if ( dashStr == null ) { return null ; } String [ ] dashSplit = dashStr . split ( "," ) ; //$NON-NLS-1$ int size = dashSplit . length ; float [ ] dash = new float [ size ] ; try { for ( int i = 0 ; i < dash . length ; i ++ ) { dash [ i ] = Float . parseFloat ( dashSplit [ i ] . trim ( ) ) ; } return dash ; } catch ( NumberFormatException e ) { return null ; } }
Returns a dash array from a dash string .