public static int sld2awtJoin ( String sldJoin ) { if ( sldJoin . equals ( lineJoinNames [ 1 ] ) ) { return BasicStroke . JOIN_BEVEL ; } else if ( sldJoin . equals ( "" ) || sldJoin . equals ( lineJoinNames [ 2 ] ) ) { return BasicStroke . JOIN_MITER ; } else if ( sldJoin . equals ( lineJoinNames [ 3 ] ) ) { return BasicStroke . JOIN_ROUND ; } else { throw new IllegalArgumentException ( "unsupported line join" ) ; } }
Convert a sld line join definition to the java awt value .