public void writeContent(final OutputStream result) throws IOException
    {    	
    	result.write(DocWriter.getISOBytes("\\shpleft"));
    	result.write(intToByteArray(this.left));
    	result.write(DocWriter.getISOBytes("\\shptop"));
    	result.write(intToByteArray(this.top));
    	result.write(DocWriter.getISOBytes("\\shpright"));
    	result.write(intToByteArray(this.right));
    	result.write(DocWriter.getISOBytes("\\shpbottom"));
    	result.write(intToByteArray(this.bottom));
    	result.write(DocWriter.getISOBytes("\\shpz"));
    	result.write(intToByteArray(this.zOrder));
    	switch(this.xRelativePos) {
    	case POSITION_X_RELATIVE_PAGE: result.write(DocWriter.getISOBytes("\\shpbxpage")); break;
    	case POSITION_X_RELATIVE_MARGIN: result.write(DocWriter.getISOBytes("\\shpbxmargin")); break;
    	case POSITION_X_RELATIVE_COLUMN: result.write(DocWriter.getISOBytes("\\shpbxcolumn")); break;
    	}
    	if(this.ignoreXRelative) {
    		result.write(DocWriter.getISOBytes("\\shpbxignore"));
    	}
    	switch(this.yRelativePos) {
    	case POSITION_Y_RELATIVE_PAGE: result.write(DocWriter.getISOBytes("\\shpbypage")); break;
    	case POSITION_Y_RELATIVE_MARGIN: result.write(DocWriter.getISOBytes("\\shpbymargin")); break;
    	case POSITION_Y_RELATIVE_PARAGRAPH: result.write(DocWriter.getISOBytes("\\shpbypara")); break;
    	}
    	if(this.ignoreYRelative) {
    		result.write(DocWriter.getISOBytes("\\shpbyignore"));
    	}
    	if(this.shapeBelowText) {
    		result.write(DocWriter.getISOBytes("\\shpfblwtxt1"));
    	} else {
    		result.write(DocWriter.getISOBytes("\\shpfblwtxt0"));
    	}
    }
public void writeContent ( final OutputStream result ) throws IOException { result . write ( DocWriter . getISOBytes ( "\\shpleft" ) ) ; result . write ( intToByteArray ( this . left ) ) ; result . write ( DocWriter . getISOBytes ( "\\shptop" ) ) ; result . write ( intToByteArray ( this . top ) ) ; result . write ( DocWriter . getISOBytes ( "\\shpright" ) ) ; result . write ( intToByteArray ( this . right ) ) ; result . write ( DocWriter . getISOBytes ( "\\shpbottom" ) ) ; result . write ( intToByteArray ( this . bottom ) ) ; result . write ( DocWriter . getISOBytes ( "\\shpz" ) ) ; result . write ( intToByteArray ( this . zOrder ) ) ; switch ( this . xRelativePos ) { case POSITION_X_RELATIVE_PAGE : result . write ( DocWriter . getISOBytes ( "\\shpbxpage" ) ) ; break ; case POSITION_X_RELATIVE_MARGIN : result . write ( DocWriter . getISOBytes ( "\\shpbxmargin" ) ) ; break ; case POSITION_X_RELATIVE_COLUMN : result . write ( DocWriter . getISOBytes ( "\\shpbxcolumn" ) ) ; break ; } if ( this . ignoreXRelative ) { result . write ( DocWriter . getISOBytes ( "\\shpbxignore" ) ) ; } switch ( this . yRelativePos ) { case POSITION_Y_RELATIVE_PAGE : result . write ( DocWriter . getISOBytes ( "\\shpbypage" ) ) ; break ; case POSITION_Y_RELATIVE_MARGIN : result . write ( DocWriter . getISOBytes ( "\\shpbymargin" ) ) ; break ; case POSITION_Y_RELATIVE_PARAGRAPH : result . write ( DocWriter . getISOBytes ( "\\shpbypara" ) ) ; break ; } if ( this . ignoreYRelative ) { result . write ( DocWriter . getISOBytes ( "\\shpbyignore" ) ) ; } if ( this . shapeBelowText ) { result . write ( DocWriter . getISOBytes ( "\\shpfblwtxt1" ) ) ; } else { result . write ( DocWriter . getISOBytes ( "\\shpfblwtxt0" ) ) ; } }
Write this RtfShapePosition.