org.acm.seguin.print.text
Class PropertyLinePrinter

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

public class PropertyLinePrinter
extends LinePrinter

Prints a single line

Author:
Chris Seguin

Field Summary
 
Fields inherited from class org.acm.seguin.print.text.LinePrinter
fontSize
 
Constructor Summary
PropertyLinePrinter()
          Constructor for the PropertyLinePrinter object
 
Method Summary
 void init(java.awt.Graphics g)
          Initializes the graphics object to begin printing
 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
getLineHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyLinePrinter

public PropertyLinePrinter()
Constructor for the PropertyLinePrinter 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

init

public void init(java.awt.Graphics g)
Initializes the graphics object to begin printing

Overrides:
init in class LinePrinter
Parameters:
g - the graphics object

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