|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.print.text.LinePrinter
public class LinePrinter
Prints a single line
Field Summary | |
---|---|
protected int |
fontSize
Description of the Field |
Constructor Summary | |
---|---|
LinePrinter()
|
Method Summary | |
---|---|
int |
getLineHeight(java.awt.Graphics g)
Gets the LineHeight attribute of the LinePrinter object |
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 |
Field Detail |
---|
protected int fontSize
Constructor Detail |
---|
public LinePrinter()
Method Detail |
---|
public void setFontSize(int value)
value
- The new FontSize valuepublic int getLineHeight(java.awt.Graphics g)
g
- Description of Parameter
public void init(java.awt.Graphics g)
g
- the graphics objectpublic void print(java.awt.Graphics g, java.lang.String line, int x, int y, LineSet set, int index)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |