Class VLine
java.lang.Object
Line
VLine
- public class VLine
- extends Line
A VLine is a vertical Line.
Constructor Summary |
VLine(int length,
char paintChar)
Construct a VLine having a paintChar and a length. |
Method Summary |
static void |
main(String[] argv)
Unit test for class VLine. |
void |
paintOn(Screen screen,
int x,
int y)
Paint this Line 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 |
VLine
public VLine(int length,
char paintChar)
- Construct a VLine having a paintChar and a length.
- Parameters:
length
- length in (character) pixels.paintChar
- character used for painting this Line.
main
public static void main(String[] argv)
- Unit test for class VLine.
paintOn
public void paintOn(Screen screen,
int x,
int y)
- Paint this Line on Screen s at position (x,y).
- Specified by:
paintOn
in class Line
- Parameters:
screen
- the Screen on which this Line is to be painted.x
- the x position for the line.y
- the y position for the line.