Example usage for Java java.awt Shape fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | contains(Point2D p) Tests if a specified Point2D is inside the boundary of the Shape , as described by the definition of insideness. |
boolean | contains(Rectangle2D r) Tests if the interior of the Shape entirely contains the specified Rectangle2D . |
boolean | contains(double x, double y) Tests if the specified coordinates are inside the boundary of the Shape , as described by the definition of insideness. |
boolean | contains(double x, double y, double w, double h) Tests if the interior of the Shape entirely contains the specified rectangular area. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Rectangle | getBounds() Returns an integer Rectangle that completely encloses the Shape . |
Rectangle2D | getBounds2D() Returns a high precision and more accurate bounding box of the Shape than the getBounds method. |
Class> | getClass() Returns the runtime class of this Object . |
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. |
PathIterator | getPathIterator(AffineTransform at) Returns an iterator object that iterates along the Shape boundary and provides access to the geometry of the Shape outline. |
int | hashCode() Returns a hash code value for the object. |
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. |
boolean | intersects(Rectangle2D r) Tests if the interior of the Shape intersects the interior of a specified Rectangle2D . |
String | toString() Returns a string representation of the object. |