Java AWT

Previous Chapter 19
java.awt Reference
Next
 

Shape (New)

Name

Shape (New)

[Graphic: Figure from the text]

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 Rectangle that completely encloses the shape.

See Also

Polygon, Rectangle


Previous Home Next
Scrollbar Book Index SystemColor (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.