org.acm.seguin.print.xml
Class XMLLinePrinter

java.lang.Object
  extended by org.acm.seguin.print.text.LinePrinter
      extended by org.acm.seguin.print.xml.XMLLinePrinter

public class XMLLinePrinter
extends LinePrinter

Prints a single line

Author:
Chris Seguin

Constructor Summary
XMLLinePrinter()
          Constructor for the JavaLinePrinter object
 
Method Summary
 int getLineHeight(java.awt.Graphics g)
          Gets the LineHeight attribute of the LinePrinter object
 void print(java.awt.Graphics g, java.lang.String line, int x, int y, LineSet set, int index)
          Prints the line
 void setFontSize(int value)
          Sets the FontSize attribute of the LinePrinter object
 
Methods inherited from class org.acm.seguin.print.text.LinePrinter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLinePrinter

public XMLLinePrinter()
Constructor for the JavaLinePrinter object

Method Detail

setFontSize

public void setFontSize(int value)
Sets the FontSize attribute of the LinePrinter object

Overrides:
setFontSize in class LinePrinter
Parameters:
value - The new FontSize value

getLineHeight

public int getLineHeight(java.awt.Graphics g)
Gets the LineHeight attribute of the LinePrinter object

Overrides:
getLineHeight in class LinePrinter
Parameters:
g - Description of Parameter
Returns:
The LineHeight value

print

public void print(java.awt.Graphics g,
                  java.lang.String line,
                  int x,
                  int y,
                  LineSet set,
                  int index)
Prints the line

Overrides:
print in class LinePrinter
Parameters:
g - The graphics device
line - The string to print
x - The x location on the graphics device
y - The y location on the graphics device
set - The set of lines
index - The line we are printing