Shape
Name
Shape
Description
Shape is an interface describing a two-dimensional geometric shape.
Interface Definition
public abstract interface java.awt.Shape {
// Interface Methods public abstract Rectangle getBounds();
}
Interface Methods
getBounds
public abstract Rectangle getBounds()
- Returns
- A
Rectanglethat completely encloses the shape.
See Also
Polygon, Rectangle