public void setLineCapStyle ( final int lineCapStyle ) throws IOException { if ( inTextMode ) { throw new IllegalStateException ( "Error: setLineCapStyle is not allowed within a text block." ) ; } if ( lineCapStyle >= 0 && lineCapStyle <= 2 ) { writeOperand ( lineCapStyle ) ; writeOperator ( ( byte ) ' ' ) ; } else { throw new IllegalArgumentException ( "Error: unknown value for line cap style" ) ; } }
Set the line cap style .