question: public static void write ( OMRect rect , Link link , LinkProperties props ) throws IOException { switch ( rect . getRenderType ( ) ) { case OMRect . RENDERTYPE_LATLON : LinkRectangle . write ( ( float ) rect . getNorthLat ( ) , ( float ) rect . getWestLon ( ) , ( float ) rect . getSouthLat ( ) , ( float ) rect . getEastLon ( ) , rect . getLineType ( ) , props , link . dos ) ; break ; case OMRect . RENDERTYPE_XY : LinkRectangle . write ( rect . getLeft ( ) , rect . getTop ( ) , rect . getRight ( ) , rect . getBottom ( ) , props , link . dos ) ; break ; case OMRect . RENDERTYPE_OFFSET : LinkRectangle . write ( ( float ) rect . getNorthLat ( ) , ( float ) rect . getWestLon ( ) , rect . getLeft ( ) , rect . getTop ( ) , rect . getRight ( ) , rect . getBottom ( ) , props , link . dos ) ; break ; default : Debug . error ( "LinkRectangle.write: rect rendertype unknown." ) ; } }
target:  Write an OMRect to the link.