public static void drawToPng(final File dest,final AnnotatedTypeMirror type){
  try {
    final File dotFile=File.createTempFile(dest.getName(),".dot");
    drawToDot(dotFile,type);
    execDotToPng(dotFile,dest);
  }
 catch (  Exception exc) {
    throw new RuntimeException(exc);
  }
}

public static void drawToPng ( final File dest , final AnnotatedTypeMirror type ) { try { final File dotFile = File . createTempFile ( dest . getName ( ) , ".dot" ) ; drawToDot ( dotFile , type ) ; execDotToPng ( dotFile , dest ) ; } catch ( Exception exc ) { throw new RuntimeException ( exc ) ; } }
draws a dot file for type in a temporary directory then calls the " dot " program to convert that file into a png at the location dest . this method will fail if a temp file can ' t be created .
