org.acm.seguin.print.text
Class NumberedLinePrinter

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

public class NumberedLinePrinter
extends LinePrinter

Prints a single line

Author:
Chris Seguin

Field Summary
 
Fields inherited from class org.acm.seguin.print.text.LinePrinter
fontSize
 
Constructor Summary
NumberedLinePrinter()
           
 
Method Summary
 void print(java.awt.Graphics g, java.lang.String line, int x, int y, LineSet set, int index)
          Prints the line
 
Methods inherited from class org.acm.seguin.print.text.LinePrinter
getLineHeight, init, setFontSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberedLinePrinter

public NumberedLinePrinter()
Method Detail

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