Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
G
H
I
M
P
S
T
U
B
Box
- class
Box
.
A Box has a width, a height and a paintChar used used to paint the Box on a Screen.
Box(int, int, char)
- Constructor for class
Box
Construct a box.
C
clear()
- Method in class
Screen
Clear the Screen, painting a blank at every pixel.
D
DemoShapes
- class
DemoShapes
.
A short demonstration program for HLine and Box.
DemoShapes()
- Constructor for class
DemoShapes
draw(Terminal)
- Method in class
Screen
Draw this Screen on a Terminal.
G
getHeight()
- Method in class
Box
Get the height of this Box.
getHeight()
- Method in class
Screen
How high is this Screen?
getLength()
- Method in class
HLine
Get the length of this line.
getLength()
- Method in class
TextLine
Get the length of this line.
getWidth()
- Method in class
Box
Get the width of this Box.
getWidth()
- Method in class
Screen
How wide is this Screen?
H
HLine
- class
HLine
.
A horizontal line has a length and a paintChar used used to paint the line on a Screen.
HLine(int, char)
- Constructor for class
HLine
Construct an HLine.
I
InteractiveShapes
- class
InteractiveShapes
.
Interactive program to study shapes.
InteractiveShapes()
- Constructor for class
InteractiveShapes
M
main(String[])
- Static method in class
Box
Unit test for class Box, assuming Screen and Terminal work.
main(String[])
- Static method in class
DemoShapes
Paint some shapes on a Screen and draw it to a Terminal.
main(String[])
- Static method in class
HLine
Unit test for class HLine, assuming Screen and Terminal work.
main(String[])
- Static method in class
InteractiveShapes
main(String[])
- Static method in class
TextLine
Unit test for class.TextLine, assuming Screen and Terminal work.
main(String[])
- Static method in class
UnitTests
Invoke unit test for each shape.
P
paintAt(char, int, int)
- Method in class
Screen
Paint a character pixel at position (x,y).
paintOn(Screen, int, int)
- Method in class
Box
Paint this Box on Screen s at position (x,y).
paintOn(Screen)
- Method in class
Box
Paint this Box on Screen s at position (0,0).
paintOn(Screen, int, int)
- Method in class
HLine
Paint this HLine on Screen s at position (x,y).
paintOn(Screen)
- Method in class
HLine
Paint this HLine on Screen s at position (0,0).
paintOn(Screen, int, int)
- Method in class
TextLine
Paint this TextLine on Screen s at position (x,y).
paintOn(Screen)
- Method in class
TextLine
Draw the TextLine to Screen s at position (0,0).
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.
setHeight(int)
- Method in class
Box
Set the height of this Box.
setLength(int)
- Method in class
HLine
Set the length of this line.
setWidth(int)
- Method in class
Box
Set the width of this Box.
T
TextLine
- class
TextLine
.
A horizontal line of character text.
TextLine(String)
- Constructor for class
TextLine
Construct a TextLine.
U
UnitTests
- class
UnitTests
.
This program invokes the unit tests for the individual shape classes.
UnitTests()
- Constructor for class
UnitTests
B
C
D
G
H
I
M
P
S
T
U
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes