Class VLine

java.lang.Object
  extended byLine
      extended byVLine

public class VLine
extends Line

A VLine is a vertical Line.


Field Summary
 
Fields inherited from class Line
length, paintChar
 
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 Line
getLength, getPaintChar, paintOn, setLength, setPaintChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.