API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. Shape View Source
Author(s)
Jim Graham
Since
1.2
Version
1.19 06/24/98
Serial
Hierarchy
 Shape
Subinterfaces
Description
public interface Shape
  The Shape interface provides definitions for objects that represent some form of geometric shape.
Methods
Hide/Show inherited methods
public boolean contains (double x, double y)
  Tests if the specified coordinates are inside the boundary of the Shape.
public boolean contains (double x, double y, double w, double h)
  Tests if the interior of the Shape entirely contains the specified rectangular area.
public boolean contains (Point2D p)
  Tests if a specified Point2D is inside the boundary of the Shape.
public boolean contains (Rectangle2D r)
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
public Rectangle getBounds ()
  Returns an integer Rectangle that completely encloses the Shape.
public Rectangle2D getBounds2D ()
  Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
public PathIterator getPathIterator (AffineTransform at)
  Returns an iterator object that iterates along the Shape boundary and provides access to the geometry of the Shape outline.
public PathIterator getPathIterator (AffineTransform at, double flatness)
  Returns an iterator object that iterates along the Shape boundary and provides access to a flattened view of the Shape outline geometry.
public boolean intersects (double x, double y, double w, double h)
  Tests if the interior of the Shape intersects the interior of a specified rectangular area.
public boolean intersects (Rectangle2D r)
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar