home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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