Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
C
D
G
R
S
T
C
Circle
- class
Circle
.
A Circle is a Shape.
Circle()
- Constructor for class
Circle
Initialize a red circle with radius 10, position 100,100
Circle(Color, int, int, int)
- Constructor for class
Circle
Initialize a new circle with specified Color, radius and position
D
display(Graphics)
- Method in class
Circle
produce a graphical representation of this
display(Graphics)
- Method in class
GString
produce a graphical representation of this
display(Graphics)
- Method in class
Rectangle
produce a graphical representation of this
display(Graphics)
- Method in class
Shape
display this using the given pen
display(Graphics)
- Method in class
Square
G
getColor()
- Method in class
Shape
getHeight()
- Method in class
Rectangle
getRadius()
- Method in class
Circle
getText()
- Method in class
GString
getWidth()
- Method in class
Rectangle
getWidth()
- Method in class
Square
getX()
- Method in class
Shape
getY()
- Method in class
Shape
GString
- class
GString
.
A GString (Graphical String) is a Shape.
GString(Color, String, int, int)
- Constructor for class
GString
Initialize a new GString with specified Color, text and position
R
Rectangle
- class
Rectangle
.
A Square is a Shape.
Rectangle()
- Constructor for class
Rectangle
Initialize a green Rectangle with width 10, height 20, position 100,100
Rectangle(Color, int, int, int, int)
- Constructor for class
Rectangle
Initialize a new Rectangle with specified Color, width, height and position
S
setColor(Color)
- Method in class
Shape
Set the Color of this and notify our observers
setHeight(int)
- Method in class
Rectangle
Set the height of this, tell our observer that we have changed
setPosition(int, int)
- Method in class
Shape
Set the position of this and then notify our observers
setRadius(int)
- Method in class
Circle
Set the radius of this circle and tell our observer that we have changed
setText(String)
- Method in class
GString
Set the text of this and tell our observer that we have changed
setWidth(int)
- Method in class
Rectangle
Set the width of this, tell our observer that we have changed
setWidth(int)
- Method in class
Square
setX(int)
- Method in class
Shape
Set the x coordinate of this and notify our observers
setY(int)
- Method in class
Shape
Set the y coordinate of this and notify our observers
Shape
- class
Shape
.
A Shape is a Subject (so can be observed) it has a position and a color (all of which can be modified).
Shape(Color, int, int)
- Constructor for class
Shape
Initialize a new Shape with specified Color and position
Square
- class
Square
.
Square()
- Constructor for class
Square
Square(Color, int, int, int)
- Constructor for class
Square
T
toString()
- Method in class
Circle
toString()
- Method in class
GString
toString()
- Method in class
Rectangle
toString()
- Method in class
Shape
toString()
- Method in class
Square
C
D
G
R
S
T
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES