Java java.awt Shape fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Implementation

java.awt.Shape has the following implementations.
Click this link to see all its implementation.

Method

booleancontains(Point2D p)
Tests if a specified Point2D is inside the boundary of the Shape , as described by the definition of insideness.
booleancontains(Rectangle2D r)
Tests if the interior of the Shape entirely contains the specified Rectangle2D .
booleancontains(double x, double y)
Tests if the specified coordinates are inside the boundary of the Shape , as described by the definition of insideness.
booleancontains(double x, double y, double w, double h)
Tests if the interior of the Shape entirely contains the specified rectangular area.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
RectanglegetBounds()
Returns an integer Rectangle that completely encloses the Shape .
Rectangle2DgetBounds2D()
Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
ClassgetClass()
Returns the runtime class of this Object .
PathIteratorgetPathIterator(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.
PathIteratorgetPathIterator(AffineTransform at)
Returns an iterator object that iterates along the Shape boundary and provides access to the geometry of the Shape outline.
inthashCode()
Returns a hash code value for the object.
booleanintersects(double x, double y, double w, double h)
Tests if the interior of the Shape intersects the interior of a specified rectangular area.
booleanintersects(Rectangle2D r)
Tests if the interior of the Shape intersects the interior of a specified Rectangle2D .
StringtoString()
Returns a string representation of the object.