public void addRect ( final float x , final float y , final float width , final float height ) throws IOException { if ( inTextMode ) { throw new IllegalStateException ( "Error: addRect is not allowed within a text block." ) ; } writeOperand ( x ) ; writeOperand ( y ) ; writeOperand ( width ) ; writeOperand ( height ) ; writeOperator ( ( byte ) ' ' , ( byte ) ' ' ) ; }
Add a rectangle to the current path .