public void writeObject ( Object o , GraphicsDocument document , boolean asChild ) throws RenderException { document . writeElement ( "vml:shape" , asChild ) ; Point p = ( Point ) o ; String adj = document . getFormatter ( ) . format ( p . getX ( ) ) + "," + document . getFormatter ( ) . format ( p . getY ( ) ) ; document . writeAttribute ( "adj" , adj ) ; }
Writes the object to the specified document optionally creating a child element . The object in this case should be a point .