Class Shape
java.lang.Object
|
+--Shape
- Direct Known Subclasses:
- OvalShape, RectShape, RoundRectShape
- abstract class Shape
- extends java.lang.Object
Shape- Abstract class
A class representing shapes that can be displayed on a ShapeCanvas.
The subclasses of this class represent particular types of shapes.
When a shape is first constucted, it has height and width zero
and a default color of white.
- Since:
- 11/10/2000
Update History
--------------
Date By Description
---- -- -----------
11/10/00 Asha Mony Creation
Field Summary |
(package private) java.awt.Color |
color
|
(package private) int |
height
|
(package private) int |
left
|
(package private) int |
top
|
(package private) int |
width
|
Constructor Summary |
(package private) |
Shape()
|
Method Summary |
(package private) boolean |
containsPoint(int x,
int y)
|
(package private) abstract void |
draw(java.awt.Graphics g)
|
(package private) void |
moveBy(int dx,
int dy)
|
(package private) void |
reshape(int left,
int top,
int width,
int height)
|
(package private) void |
setColor(java.awt.Color color)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
left
int left
top
int top
width
int width
height
int height
color
java.awt.Color color
Shape
Shape()
reshape
void reshape(int left,
int top,
int width,
int height)
moveBy
void moveBy(int dx,
int dy)
setColor
void setColor(java.awt.Color color)
containsPoint
boolean containsPoint(int x,
int y)
draw
abstract void draw(java.awt.Graphics g)