Example usage for Java java.awt.geom Area fields, constructors, methods, implement or subclass
The text is from its open source code.
AffineTransform | transform |
Area(Shape s) The Area class creates an area geometry from the specified Shape object. | |
Area() Default constructor which creates an empty area. |
void | add(Area rhs) Adds the shape of the specified Area to the shape of this Area . |
Object | clone() Returns an exact copy of this Area object. |
boolean | contains(double x, double y, double w, double h) |
boolean | contains(double x, double y) |
boolean | contains(Point2D p) |
boolean | contains(Rectangle2D r) |
Area | createTransformedArea(AffineTransform t) Creates a new Area object that contains the same geometry as this Area transformed by the specified AffineTransform . |
boolean | equals(Area other) Tests whether the geometries of the two Area objects are equal. |
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. |
Rectangle | getBounds() Returns a bounding Rectangle that completely encloses this Area . |
Rectangle2D | getBounds2D() Returns a high precision bounding Rectangle2D that completely encloses this Area . |
PathIterator | getPathIterator(AffineTransform at) Creates a PathIterator for the outline of this Area object. |
PathIterator | getPathIterator(AffineTransform at, double flatness) Creates a PathIterator for the flattened outline of this Area object. |
void | intersect(Area rhs) Sets the shape of this Area to the intersection of its current shape and the shape of the specified Area . |
boolean | intersects(Rectangle2D r) |
boolean | intersects(double x, double y, double w, double h) |
boolean | isEmpty() Tests whether this Area object encloses any area. |
boolean | isPolygonal() Tests whether this Area consists entirely of straight edged polygonal geometry. |
boolean | isRectangular() Tests whether this Area is rectangular in shape. |
boolean | isSingular() Tests whether this Area is comprised of a single closed subpath. |
void | reset() Removes all of the geometry from this Area and restores it to an empty area. |
void | subtract(Area rhs) Subtracts the shape of the specified Area from the shape of this Area . |