|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextLine
A horizontal line of character text.
Constructor Summary | |
TextLine(String text)
Construct a TextLine. |
Method Summary | |
int |
getLength()
Get the length of this line. |
static void |
main(String[] args)
Unit test for class.TextLine, assuming Screen and Terminal work. |
void |
paintOn(Screen s)
Draw the TextLine to Screen s at position (0,0). |
void |
paintOn(Screen s,
int x,
int y)
Paint this TextLine on Screen s at position (x,y). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextLine(String text)
text
- the text of the line.Method Detail |
public int getLength()
public static void main(String[] args)
public void paintOn(Screen s)
s
- the Screen on which this line is to be painted.public void paintOn(Screen s, int x, int y)
s
- the Screen on which this line is to be painted.x
- the x position for the line.y
- the y position for the line.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |