org.acm.seguin.print.text
Class PropertyLinePrinter
java.lang.Object
org.acm.seguin.print.text.LinePrinter
org.acm.seguin.print.text.PropertyLinePrinter
public class PropertyLinePrinter
- extends LinePrinter
Prints a single line
- Author:
- Chris Seguin
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyLinePrinter
public PropertyLinePrinter()
- Constructor for the PropertyLinePrinter object
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 deviceline
- The string to printx
- The x location on the graphics devicey
- The y location on the graphics deviceset
- The set of linesindex
- The line we are printing