Java java.awt.geom Area fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom Area fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom Area.

The text is from its open source code.

Field

AffineTransformtransform

Constructor

Area(Shape s)
The Area class creates an area geometry from the specified Shape object.
Area()
Default constructor which creates an empty area.

Method

voidadd(Area rhs)
Adds the shape of the specified Area to the shape of this Area .
Objectclone()
Returns an exact copy of this Area object.
booleancontains(double x, double y, double w, double h)
booleancontains(double x, double y)
booleancontains(Point2D p)
booleancontains(Rectangle2D r)
AreacreateTransformedArea(AffineTransform t)
Creates a new Area object that contains the same geometry as this Area transformed by the specified AffineTransform .
booleanequals(Area other)
Tests whether the geometries of the two Area objects are equal.
voidexclusiveOr(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.
RectanglegetBounds()
Returns a bounding Rectangle that completely encloses this Area .
Rectangle2DgetBounds2D()
Returns a high precision bounding Rectangle2D that completely encloses this Area .
PathIteratorgetPathIterator(AffineTransform at)
Creates a PathIterator for the outline of this Area object.
PathIteratorgetPathIterator(AffineTransform at, double flatness)
Creates a PathIterator for the flattened outline of this Area object.
voidintersect(Area rhs)
Sets the shape of this Area to the intersection of its current shape and the shape of the specified Area .
booleanintersects(Rectangle2D r)
booleanintersects(double x, double y, double w, double h)
booleanisEmpty()
Tests whether this Area object encloses any area.
booleanisPolygonal()
Tests whether this Area consists entirely of straight edged polygonal geometry.
booleanisRectangular()
Tests whether this Area is rectangular in shape.
booleanisSingular()
Tests whether this Area is comprised of a single closed subpath.
voidreset()
Removes all of the geometry from this Area and restores it to an empty area.
voidsubtract(Area rhs)
Subtracts the shape of the specified Area from the shape of this Area .