API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. Area View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      Area
Implements
 Shape
 Cloneable
Subclasses
Description
public class Area
  An Area object stores and manipulates a resolution-independent description of an enclosed area of 2-dimensional space.
See also:   
Constructors
public Area ()
  Default constructor which creates an empty area.
public Area (Shape s)
  The Area class creates an area geometry from the specified Shape object.
Methods
Hide/Show inherited methods
public void add (Area rhs)
  Adds the shape of the specified Area to the shape of this Area.
public Object clone ()
  Returns an exact copy of this Area object.
public boolean contains (double x, double y) [Specified in Shape]
  Tests if the specified coordinates are inside the boundary of the Shape.
public boolean contains (double x, double y, double w, double h) [Specified in Shape]
  Tests if the interior of the Shape entirely contains the specified rectangular area.
public boolean contains (Point2D p) [Specified in Shape]
  Tests if a specified Point2D is inside the boundary of the Shape.
public boolean contains (Rectangle2D r) [Specified in Shape]
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
public Area createTransformedArea (AffineTransform t)
  Creates a new Area object that contains the same geometry as this Area transformed by the specified AffineTransform.
public boolean equals (Area other)
  Tests whether the geometries of the two Area objects are equal.
public void exclusiveOr (Area rhs)
  Sets the shape of this Area to be the combined area of its current shape and the shape of the specified Area, minus their intersection.
public Rectangle getBounds () [Specified in Shape]
  Returns a bounding Rectangle that completely encloses this Area.
public Rectangle2D getBounds2D () [Specified in Shape]
  Returns a high precision bounding Rectangle2D that completely encloses this Area.
public PathIterator getPathIterator (AffineTransform at) [Specified in Shape]
  Creates a PathIterator for the outline of this Area object.
public PathIterator getPathIterator (AffineTransform at, double flatness) [Specified in Shape]
  Creates a PathIterator for the flattened outline of this Area object.
public void intersect (Area rhs)
  Sets the shape of this Area to the intersection of its current shape and the shape of the specified Area.
public boolean intersects (double x, double y, double w, double h) [Specified in Shape]
  Tests if the interior of the Shape intersects the interior of a specified rectangular area.
public boolean intersects (Rectangle2D r) [Specified in Shape]
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
public boolean isEmpty ()
  Tests whether this Area object encloses any area.
public boolean isPolygonal ()
  Tests whether this Area consists entirely of straight edged polygonal geometry.
public boolean isRectangular ()
  Tests whether this Area is rectangular in shape.
public boolean isSingular ()
  Tests whether this Area is comprised of a single closed subpath.
public void reset ()
  Removes all of the geometry from this Area and restores it to an empty area.
public void subtract (Area rhs)
  Subtracts the shape of the specified Area from the shape of this Area.
public void transform (AffineTransform t)
  Transforms the geometry of this Area using the specified AffineTransform.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar