From 20543e16068c45d32647bfb5c56ce9f06ab921d5 Mon Sep 17 00:00:00 2001 From: michelou Date: Fri, 22 Aug 2003 14:28:38 +0000 Subject: *** empty log message *** --- sources/ch/epfl/lamp/util/HTMLPrinter.java | 109 ++++++++++++++++++++--------- 1 file changed, 77 insertions(+), 32 deletions(-) (limited to 'sources/ch/epfl') diff --git a/sources/ch/epfl/lamp/util/HTMLPrinter.java b/sources/ch/epfl/lamp/util/HTMLPrinter.java index 0c447ad154..884b7b2703 100644 --- a/sources/ch/epfl/lamp/util/HTMLPrinter.java +++ b/sources/ch/epfl/lamp/util/HTMLPrinter.java @@ -8,11 +8,15 @@ package ch.epfl.lamp.util; -import java.io.*; +import java.io.Writer; import java.text.SimpleDateFormat; import java.util.Date; -/** This class provides methods to print HTML document. +/** + * This class provides methods to print HTML document. + * + * @author Stephane Micheloud + * @version 1.1 */ public class HTMLPrinter { @@ -402,18 +406,26 @@ public class HTMLPrinter { return printCTag("a"); } - /** Prints text 'text' in bold. */ + /** + * Prints text text in bold. + * @param text + */ public HTMLPrinter printBold(String text) { return printTag("b", text); } - /** Prints text 'text' in color 'color'. */ + /** + * Prints text text in color color. + * @param color + * @param text + */ public HTMLPrinter printFontColor(String color, String text) { return printTag("font", new XMLAttribute[]{ new XMLAttribute("color", color) }, text); } - /** Prints comment with contents 'text'. - * @param text + /** + * Prints comment with contents text. + * @param text */ public HTMLPrinter printComment(String text) { printer.print("