Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
G
H
L
M
P
S
V
C
clear()
- Method in class
Screen
Clear the Screen, painting a blank at every pixel.
D
draw(Terminal)
- Method in class
Screen
Draw this Screen on a Terminal.
G
getLength()
- Method in class
Line
Get the length of this line.
getPaintChar()
- Method in class
Line
Get the paintChar of this Line.
getShape()
- Method in class
ShapeOnScreen
What Shape does this ShapeOnScreen represent?
getX()
- Method in class
ShapeOnScreen
The current x coordinate of this ShapeOnScreen.
getY()
- Method in class
ShapeOnScreen
The current y coordinate of this ShapeOnScreen.
H
HLine
- class
HLine
.
An HLine is a horizontal Line.
HLine(int, char)
- Constructor for class
HLine
Construct an HLine having a paintChar and a length.
L
Line
- class
Line
.
A Line has a length and a paintChar used to paint itself on a Screen.
Line(int, char)
- Constructor for class
Line
Construct a Line.
length
- Variable in class
Line
M
main(String[])
- Static method in class
HLine
Unit test for class HLine.
main(String[])
- Static method in class
ShapeOnScreen
Unit test.
main(String[])
- Static method in class
VLine
Unit test for class VLine.
P
paintAt(char, int, int)
- Method in class
Screen
Paint a character pixel at position (x,y).
paintChar
- Variable in class
Line
paintOn(Screen, int, int)
- Method in class
HLine
Paint this Line on Screen s at position (x,y).
paintOn(Screen, int, int)
- Method in class
Line
Paint this Line on Screen s at position (x,y).
paintOn(Screen)
- Method in class
Line
Paint this Line on Screen s at position (0,0).
paintOn(Screen, int, int)
- Method in class
VLine
Paint this Line on Screen s at position (x,y).
S
Screen
- class
Screen
.
A Screen is a (width*height) grid of (character) 'pixels' on which we may paint various shapes.
Screen(int, int)
- Constructor for class
Screen
Construct a screen.
ShapeOnScreen
- class
ShapeOnScreen
.
A ShapeOnScreen models a Shape to be painted at a given position on a Screen.
ShapeOnScreen(Shape, int, int)
- Constructor for class
ShapeOnScreen
Construct a ShapeOncreen.
setLength(int)
- Method in class
Line
Set the length of this line.
setPaintChar(char)
- Method in class
Line
Set the paintChar of this Line.
V
VLine
- class
VLine
.
A VLine is a vertical Line.
VLine(int, char)
- Constructor for class
VLine
Construct a VLine having a paintChar and a length.
C
D
G
H
L
M
P
S
V
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes