public static void write(OMText text,Link link,LinkProperties props) throws IOException {
switch (text.getRenderType()) {
case OMText.RENDERTYPE_LATLON:
    write((float)text.getLat(),(float)text.getLon(),text.getData(),OMText.fontToXFont(text.getFont()),text.getJustify(),props,link.dos);
  break;
case OMText.RENDERTYPE_XY:
write(text.getX(),text.getY(),text.getData(),OMText.fontToXFont(text.getFont()),text.getJustify(),props,link.dos);
break;
case OMText.RENDERTYPE_OFFSET:
write((float)text.getLat(),(float)text.getLon(),text.getX(),text.getY(),text.getData(),OMText.fontToXFont(text.getFont()),text.getJustify(),props,link.dos);
break;
default :
Debug.error("LinkText.write: text rendertype unknown.");
}
}

public static void write ( OMText text , Link link , LinkProperties props ) throws IOException { switch ( text . getRenderType ( ) ) { case OMText . RENDERTYPE_LATLON : write ( ( float ) text . getLat ( ) , ( float ) text . getLon ( ) , text . getData ( ) , OMText . fontToXFont ( text . getFont ( ) ) , text . getJustify ( ) , props , link . dos ) ; break ; case OMText . RENDERTYPE_XY : write ( text . getX ( ) , text . getY ( ) , text . getData ( ) , OMText . fontToXFont ( text . getFont ( ) ) , text . getJustify ( ) , props , link . dos ) ; break ; case OMText . RENDERTYPE_OFFSET : write ( ( float ) text . getLat ( ) , ( float ) text . getLon ( ) , text . getX ( ) , text . getY ( ) , text . getData ( ) , OMText . fontToXFont ( text . getFont ( ) ) , text . getJustify ( ) , props , link . dos ) ; break ; default : Debug . error ( "LinkText.write: text rendertype unknown." ) ; } }
write a text to the link .
