public interface Shape
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Tests of the shape contains a specific coordinate.
|
void |
draw(java.awt.Graphics g)
Functions used to draw the shape.
|
boolean contains(int x, int y)
x
- x-coordinate to be tested.y
- y-coordinate to be tested.void draw(java.awt.Graphics g)
g
- Graphics context used for rendering.