Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
C
D
G
H
I
L
M
O
P
R
S
T
U
W
A
actionPerformed(ActionEvent)
- Method in class
ShapeCanvas
Called to respond to action events.
addShape(Shape)
- Method in class
ShapeCanvas
C
color
- Variable in class
Shape
containsPoint(int, int)
- Method in class
Shape
containsPoint(int, int)
- Method in class
OvalShape
currentColor
- Variable in class
ShapeCanvas
D
draw(Graphics)
- Method in class
Shape
draw(Graphics)
- Method in class
RectShape
draw(Graphics)
- Method in class
OvalShape
draw(Graphics)
- Method in class
RoundRectShape
G
getInsets()
- Method in class
ShapeDraw
Says how much space to leave between the edges of the applet and the components in the applet.
H
height
- Variable in class
Shape
I
init()
- Method in class
ShapeDraw
Set up the applet's GUI.
itemStateChanged(ItemEvent)
- Method in class
ShapeCanvas
This is called to respond to item events.
L
left
- Variable in class
Shape
M
makeOffScreenCanvas()
- Method in class
ShapeCanvas
mouseClicked(MouseEvent)
- Method in class
ShapeCanvas
mouseDragged(MouseEvent)
- Method in class
ShapeCanvas
User has moved the mouse.
mouseEntered(MouseEvent)
- Method in class
ShapeCanvas
mouseExited(MouseEvent)
- Method in class
ShapeCanvas
mouseMoved(MouseEvent)
- Method in class
ShapeCanvas
mousePressed(MouseEvent)
- Method in class
ShapeCanvas
User has pressed the mouse.
mouseReleased(MouseEvent)
- Method in class
ShapeCanvas
User has released the mouse.
moveBy(int, int)
- Method in class
Shape
O
offScreenCanvas
- Variable in class
ShapeCanvas
offScreenGraphics
- Variable in class
ShapeCanvas
OvalShape
- class
OvalShape
.
OvalShape class This class represents oval shapes.
OvalShape()
- Constructor for class
OvalShape
P
paint(Graphics)
- Method in class
ShapeCanvas
In the paint method, everything is drawn to an off-screen canvas, and then that canvas is copied onto the screen.
prevDragX
- Variable in class
ShapeCanvas
prevDragY
- Variable in class
ShapeCanvas
R
RectShape
- class
RectShape
.
RectShape class This class represents rectangle shapes.
RectShape()
- Constructor for class
RectShape
reshape(int, int, int, int)
- Method in class
Shape
RoundRectShape
- class
RoundRectShape
.
RoundRectShape class This class represents rectangle shapes with rounded corners.
RoundRectShape()
- Constructor for class
RoundRectShape
S
setColor(Color)
- Method in class
Shape
Shape
- class
Shape
.
Shape- Abstract class A class representing shapes that can be displayed on a ShapeCanvas.
Shape()
- Constructor for class
Shape
shapeBeingDragged
- Variable in class
ShapeCanvas
ShapeCanvas
- class
ShapeCanvas
.
ShapeCanvas class This class represents a canvas that can display colored shapes and let the user drag them around.
ShapeCanvas()
- Constructor for class
ShapeCanvas
ShapeDraw
- class
ShapeDraw
.
The ShapeDraw applet lets the user add small colored shapes to a drawing area and then drag them around.
ShapeDraw()
- Constructor for class
ShapeDraw
shapes
- Variable in class
ShapeCanvas
T
top
- Variable in class
Shape
U
update(Graphics)
- Method in class
ShapeCanvas
Update method is called when canvas is to be redrawn.
W
width
- Variable in class
Shape
A
C
D
G
H
I
L
M
O
P
R
S
T
U
W
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES