private int writeFrames(int i, AllMatches match) throws jplag.ExitException { HTMLFile f = openHTMLFile(root, "match" + i + ".html"); writeHTMLHeader(f, TagParser.parse(msg.getString("Report.Matches_for_X1_AND_X2"), new String[] { match.subName(0), match.subName(1) })); f.println("<FRAMESET ROWS=\"130,*\">\n <FRAMESET COLS=\"30%,70%\">"); f.println(" <FRAME SRC=\"match" + i + "-link.html\" NAME=\"link\" " + "FRAMEBORDER=0>"); f.println(" <FRAME SRC=\"match" + i + "-top.html\" NAME=\"top\" " + "FRAMEBORDER=0>"); f.println(" </FRAMESET>"); f.println(" <FRAMESET COLS=\"50%,50%\">"); f.println(" <FRAME SRC=\"match" + i + "-0.html\" NAME=\"0\">"); f.println(" <FRAME SRC=\"match" + i + "-1.html\" NAME=\"1\">"); f.println(" </FRAMESET>\n</FRAMESET>\n</HTML>"); f.close(); return f.bytesWritten(); }
private int writeLink(int i, AllMatches match) throws jplag.ExitException { HTMLFile f = openHTMLFile(root, "match" + i + "-link.html"); writeHTMLHeader(f, msg.getString("Report.Links")); f.println("<BODY>\n <H3 ALIGN=\"center\">" + TagParser.parse(msg.getString("Report.Matches_for_X1_AND_X2"), new String[] { match.subName(0), match.subName(1) }) + "</H3>"); f.println(" <H1 align=\"center\">" + match.roundedPercent() + "%</H1>\n<CENTER>"); f.println(" <A HREF=\"index.html#matches\" TARGET=\"_top\">" + msg.getString("Report.INDEX") + "</A> - "); f.println(" <A HREF=\"help-" + program.getCountryTag() + ".html\" TARGET=\"_top\">" + msg.getString("Report.HELP") + "</A></CENTER>"); f.println("</BODY>\n</HTML>"); f.close(); return f.bytesWritten(); }
for (int i = 0; i < this.program.get_threshold().length; i++) { float threshold = this.program.get_threshold()[i]; String clustertitle = TagParser.parse(msg.getString("Report.Clusters_for_Xpercent_treshold"), new String[] { threshold + "" }); f.println("<H3><A HREF=\"cluster" + threshold + ".html\">" + clustertitle + "</A></H3>"); increase = 5; for (float threshold = increase; threshold <= program.clusters.maxMergeValue; threshold += increase) { String clustertitle = TagParser.parse(msg.getString("Report.Clusters_for_Xpercent_treshold"), new String[] { threshold + "" }); f.println("<H3><A HREF=\"cluster" + (int) threshold + ".html\">" + clustertitle + "</A></H3>");
else if (this.program.getErrors() > 1) f.print(" <b>(" + TagParser.parse(msg.getString("Report.X_have_not_been_parsed_successfully"), new String[] { program.getErrors() + "" }) + ")</b>"); f.println("</TD></TR>"); if (options.output_file != null) { f.println(" " + TagParser.parse(msg.getString("Report.see_LOGBEG_log_file_LOGEND"), new String[] { "<a href=\"" + options.output_file.substring(options.output_file.lastIndexOf(File.separatorChar) + 1) + "\">", "</a>" }));