Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
E
G
M
S
T
W
C
Canvas
- class
Canvas
.
Canvas is a class to allow for simple graphical drawing on a canvas.
Circle
- class
Circle
.
A circle that can be manipulated and that draws itself on a canvas.
Circle()
- Constructor for class
Circle
Create a new circle at default position with default color.
changeColor(String)
- Method in class
Circle
Change the color.
changeColor(String)
- Method in class
Square
Change the color.
changeColor(String)
- Method in class
Triangle
Change the color.
changeSize(int)
- Method in class
Circle
Change the size to the new size (in pixels).
changeSize(int)
- Method in class
Square
Change the size to the new size (in pixels).
changeSize(int, int)
- Method in class
Triangle
Change the size to the new size (in pixels).
D
draw(Object, String, Shape)
- Method in class
Canvas
Draw a given shape onto the canvas.
E
erase(Object)
- Method in class
Canvas
Erase a given shape's from the screen.
G
getCanvas()
- Static method in class
Canvas
Factory method to get the canvas singleton object.
M
makeInvisible()
- Method in class
Circle
Make this circle invisible.
makeInvisible()
- Method in class
Square
Make this square invisible.
makeInvisible()
- Method in class
Triangle
Make this triangle invisible.
makeVisible()
- Method in class
Circle
Make this circle visible.
makeVisible()
- Method in class
Square
Make this square visible.
makeVisible()
- Method in class
Triangle
Make this triangle visible.
moveDown()
- Method in class
Circle
Move the circle a few pixels down.
moveDown()
- Method in class
Square
Move the square a few pixels down.
moveDown()
- Method in class
Triangle
Move the triangle a few pixels down.
moveHorizontal(int)
- Method in class
Circle
Move the circle horizontally by 'distance' pixels.
moveHorizontal(int)
- Method in class
Square
Move the square horizontally by 'distance' pixels.
moveHorizontal(int)
- Method in class
Triangle
Move the triangle horizontally by 'distance' pixels.
moveLeft()
- Method in class
Circle
Move the circle a few pixels to the left.
moveLeft()
- Method in class
Square
Move the square a few pixels to the left.
moveLeft()
- Method in class
Triangle
Move the triangle a few pixels to the left.
moveRight()
- Method in class
Circle
Move the circle a few pixels to the right.
moveRight()
- Method in class
Square
Move the square a few pixels to the right.
moveRight()
- Method in class
Triangle
Move the triangle a few pixels to the right.
moveUp()
- Method in class
Circle
Move the circle a few pixels up.
moveUp()
- Method in class
Square
Move the square a few pixels up.
moveUp()
- Method in class
Triangle
Move the triangle a few pixels up.
moveVertical(int)
- Method in class
Circle
Move the circle vertically by 'distance' pixels.
moveVertical(int)
- Method in class
Square
Move the square vertically by 'distance' pixels.
moveVertical(int)
- Method in class
Triangle
Move the triangle vertically by 'distance' pixels.
S
Square
- class
Square
.
A square that can be manipulated and that draws itself on a canvas.
Square()
- Constructor for class
Square
Create a new square at default position with default color.
setForegroundColor(String)
- Method in class
Canvas
Set the foreground colour of the Canvas.
setVisible(boolean)
- Method in class
Canvas
Set the canvas visibility and brings canvas to the front of screen when made visible.
slowMoveHorizontal(int)
- Method in class
Circle
Slowly move the circle horizontally by 'distance' pixels.
slowMoveHorizontal(int)
- Method in class
Square
Slowly move the square horizontally by 'distance' pixels.
slowMoveHorizontal(int)
- Method in class
Triangle
Slowly move the triangle horizontally by 'distance' pixels.
slowMoveVertical(int)
- Method in class
Circle
Slowly move the circle vertically by 'distance' pixels.
slowMoveVertical(int)
- Method in class
Square
Slowly move the square vertically by 'distance' pixels.
slowMoveVertical(int)
- Method in class
Triangle
Slowly move the triangle vertically by 'distance' pixels.
T
Triangle
- class
Triangle
.
A triangle that can be manipulated and that draws itself on a canvas.
Triangle()
- Constructor for class
Triangle
Create a new triangle at default position with default color.
W
wait(int)
- Method in class
Canvas
Wait for a specified number of milliseconds before finishing.
C
D
E
G
M
S
T
W
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes