Generated by
JDiff

java.awt.geom Documentation Differences

This file contains all the changes in documentation in the package java.awt.geom as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class AffineTransform

The AffineTransform class represents a 2D affine transform that performs a linear mapping from 2D coordinates to other 2D coordinates that preserves the "straightness" and "parallelness" of lines. Affine transformations can be constructed using sequences of translations scales flips rotations and shears.

Such a coordinate transformation can be represented by a 3 row by 3 column matrix with an implied last row of [ 0 0 1 ]. This matrix transforms source coordinates (x  y) into destination coordinates (x'  y') by considering them to be a column vector and multiplying the coordinate vector by the matrix according to the following process:

 [ x'] [ m00 m01 m02 ] [ x ] [ m00x + m01y + m02 ] [ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ] [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] 
@version 10 Feb1.62 199702/02/00 @author Jim Graham

Class Area, Rectangle getBounds()

Returns a bounding Rectangle that completely encloses this Area.

The Area class will attempt to return the tightest bounding box possible for the Shape. The bounding box will not be padded to include the control points of curves in the outline of the Shape but should tightly fit the actual geometry of the outline itself. Since the returned object represents the bounding box with integers the bounding box can only be as tight as the nearest integer coordinates that encompass the geometry of the Shape. @return the bounding Rectangle for the Area.

Class Area, Rectangle2D getBounds2D()

Returns a high precision bounding Rectangle2D that completely encloses this Area.

The Area class will attempt to return the tightest bounding box possible for the Shape. The bounding box will not be padded to include the control points of curves in the outline of the Shape but should tightly fit the actual geometry of the outline itself. @return the bounding Rectangle2D for the Area.

Class Area, boolean isSingular()

Tests whether this Area is comprised of a single closed subpath. This method returns true if the path contains 0 or 1 subpaths or false if the path contains more than 1 subpath. The subpaths are counted by the number of SEG_MOVETO segments that appear in the path. @return true if the Area is comprised of a single basic geometry; false otherwise.

Class CubicCurve2D

The CubicCurve2D class defines a cubic parametric curve segment in (x   y) coordinate space.

This class is only the abstract superclass for all objects which store a 2D cubic curve segment. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.25 199702/02/00 @author Jim Graham

Class CubicCurve2D, Object clone()

Creates a new object of the same class as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2
Class CubicCurve2D, int solveCubic(double[])

Solves the cubic whose coefficients are in the eqn array and places the non-complex roots back into the same array returning the number of roots. The solved cubic is represented by the equation:
 eqn = {c b a d} dx^3 + ax^2 + bx + c = 0 
A return value of -1 is used to distinguish a constant equation that might be always 0 or never 0 from an equation that has no zeroes. @param eqn an array containing coefficients for a cubic @return the number of roots or -1 if the equation is a constant.

Class Dimension2D

The Dimension2D class is to encapsulate a width and a height dimension.

This class is only the abstract superclass for all objects that store a 2D dimension. The actual storage representation of the sizes is left to the subclass. @version 1.10 Feb 199702/02/00 @author Jim Graham

Class Dimension2D, Object clone()

Creates a new object of the same class as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2

Class Ellipse2D

The Ellipse2D class describes an ellipse that is defined by a bounding rectangle.

This class is only the abstract superclass for all objects which store a 2D ellipse. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.13 199702/02/00 @author Jim Graham


Class GeneralPath

The GeneralPath class represents a geometric path constructed from straight lines and quadratic and cubic (Bézier) curves. It can contain multiple subpaths.

The winding rule specifies how the interior of a path is determined. There are two types of winding rules: EVEN_ODD and NON_ZERO.

An EVEN_ODD winding rule means that enclosed regions of the path alternate between interior and exterior areas as traversed from the outside of the path towards a point inside the region.

A NON_ZERO winding rule means that if a ray is drawn in any direction from a given point to infinity and the places where the path intersects the ray are examined the point is inside of the path if and only if the number of times that the path crosses the ray from left to right does not equal the number of times that the path crosses the ray from right to left. @version 10 Feb1.54 199702/02/00 @author Jim Graham

Class GeneralPath, Object clone()

Creates a new object of the same class as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2

Class IllegalPathStateException

The IllegalPathStateException represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed such as appending a path segment to a GeneralPath without an initial moveto. @version 13 Oct1.9 199702/02/00
Class IllegalPathStateException, constructor IllegalPathStateException()

Constructs an IllegalPathStateException with no detail message. @since JDK11.2
Class IllegalPathStateException, constructor IllegalPathStateException(String)

Constructs an IllegalPathStateException with the specified detail message. @param s the detail message @since JDK11.2

Class Line2D

This Line2D represents a line segment in (x  y) coordinate space.

This class is only the abstract superclass for all objects that store a 2D line segment. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.21 199702/02/00 @author Jim Graham

Class Line2D, Object clone()

Creates a new object of the same class as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2

Class NoninvertibleTransformException

The NoninvertibleTransformException class represents an exception that is thrown if an operation is performed requiring the inverse of an AffineTransform object but the AffineTransform is in a non-invertible state. @version 10 Feb1.15 199702/02/00
Class NoninvertibleTransformException, constructor NoninvertibleTransformException(String)

Constructs an instance of NoninvertibleTransformException with the specified detail message. @param s the detail message @since JDK11.2

Class PathIterator

The PathIterator interface provides the mechanism for objects that implement the Shape interface to return the geometry of their boundary by allowing a caller to retrieve the path of that boundary a segment at a time. This interface allows these objects to retrieve the path of their boundary a segment at a time by using 1st through 3rd order Bézier curves which are lines and quadratic or cubic Bézier splines.

Multiple subpaths can be expressed by using a "MOVETO" segment to create a discontinuity in the geometry to move from the end of one subpath to the beginning of the next.

Each subpath can be closed manually by ending the last segment in the subpath on the same coordinate as the beginning "MOVETO" segment for that subpath or by using a "CLOSE" segment to append a line segment from the last point back to the first. Be aware that manually closing an outline as opposed to using a "CLOSE" segment to close the path might result in different line style decorations being used at the end points of the subpath. For example the BasicStroke object uses a line "JOIN" decoration to connect the first and last points if a "CLOSE" segment is encountered whereas simply ending the path on the same coordinate as the beginning coordinate results in line "CAP" decorations being used at the ends. @see java.awt.Shape @see java.awt.BasicStroke @version 1.7 0612 02/2902/9800 @author Jim Graham


Class Point2D

The Point2D class defines a point representing a location in (x  y) coordinate space.

This class is only the abstract superclass for all objects that store a 2D coordinate. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.14 199702/02/00 @author Jim Graham


Class Point2D.Double, constructor Point2D.Double()

Constructs and initializes a Point2D with coordinates (0  0). @since JDK11.2
Class Point2D.Double, constructor Point2D.Double(double, double)

Constructs and initializes a Point2D with the specified coordinates. @param x  y the coordinates to which to set the newly constructed Point2D @since JDK11.2
Class Point2D.Double, double getX()

Returns the X coordinate of this Point2D in double precision. @return the X coordinate of this Point2D. @since JDK11.2
Class Point2D.Double, double getY()

Returns the Y coordinate of this Point2D in double precision. @return the Y coordinate of this Point2D. @since JDK11.2
Class Point2D.Double, void setLocation(double, double)

Sets the location of this Point2D to the specified double coordinates. @param x  y the coordinates to which to set this Point2D @since JDK11.2
Class Point2D.Double, String toString()

Returns a String that represents the value of this Point2D. @return a string representation of this Point2D. @since JDK11.2
Class Point2D.Double, double x

The X coordinate of this Point2D. @since JDK11.2
Class Point2D.Double, double y

The Y coordinate of this Point2D. @since JDK11.2

Class Point2D.Float, constructor Point2D.Float()

Constructs and initializes a Point2D with coordinates (0  0). @since JDK11.2
Class Point2D.Float, constructor Point2D.Float(float, float)

Constructs and initializes a Point2D with the specified coordinates. @param x  y the coordinates to which to set the newly constructed Point2D @since JDK11.2
Class Point2D.Float, double getX()

Returns the X coordinate of this Point2D in double precision. @return the X coordinate of this Point2D. @since JDK11.2
Class Point2D.Float, double getY()

Returns the Y coordinate of this Point2D in double precision. @return the Y coordinate of this Point2D. @since JDK11.2
Class Point2D.Float, void setLocation(double, double)

Sets the location of this Point2D to the specified double coordinates. @param x  y the coordinates to which to set this Point2D @since JDK11.2
Class Point2D.Float, void setLocation(float, float)

Sets the location of this Point2D to the specified float coordinates. @param x  y the coordinates to which to set this Point2D @since JDK11.2
Class Point2D.Float, String toString()

Returns a String that represents the value of this Point2D. @return a string representation of this Point2D. @since JDK11.2
Class Point2D.Float, float x

The X coordinate of this Point2D. @since JDK11.2
Class Point2D.Float, float y

The Y coordinate of this Point2D. @since JDK11.2

Class Point2D, Object clone()

Creates a new object of the same class and with the same contents as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2
Class Point2D, boolean equals(Object)

Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields representing their position in the coordinate space are the same. @param obj an object to be compared with this Point2D @return true if the object to be compared is an instance of Point2D and has the same values; false otherwise. @since JDK11.2
Class Point2D, double getX()

Returns the X coordinate of this Point2D in double precision. @return the X coordinate of this Point2D. @since JDK11.2
Class Point2D, double getY()

Returns the Y coordinate of this Point2D in double precision. @return the Y coordinate of this Point2D. @since JDK11.2
Class Point2D, void setLocation(Point2D)

Sets the location of this Point2D to the same coordinates as the specified Point2D object. @param p the specified Point2D the which to set this Point2D @since JDK11.2
Class Point2D, void setLocation(double, double)

Sets the location of this Point2D to the specified float coordinates. @param x  y the coordinates of this Point2D @since JDK11.2

Class QuadCurve2D

The QuadCurve2D class defines a quadratic parametric curve segment in (x  y) coordinate space.

This class is only the abstract superclass for all objects that store a 2D quadratic curve segment. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.22 199702/02/00 @author Jim Graham

Class QuadCurve2D, Object clone()

Creates a new object of the same class and with the same contents as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2
Class QuadCurve2D, int solveQuadratic(double[])

Solves the quadratic whose coefficients are in the eqn array and places the non-complex roots back into the same array returning the number of roots. The quadratic solved is represented by the equation:
 eqn = {C B A}; ax^2 + bx + c = 0 
A return value of -1 is used to distinguish a constant equation which might be always 0 or never 0 from an equation that has no zeroes. @param equ the array that contains the quadratic coefficients @return the number of roots or -1 if the equation is a constant

Class Rectangle2D

The Rectangle2D class describes a rectangle defined by a location (x  y) and dimension (w x h).

This class is only the abstract superclass for all objects that store a 2D rectangle. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.22 199702/02/00 @author Jim Graham


Class Rectangle2D.Double

The Double class defines a rectangle specified in double coordinates. @since JDK11.2
Class Rectangle2D.Double, constructor Rectangle2D.Double()

Constructs a new Rectangle2D initialized to location (0  0) and size (0  0). @since JDK11.2
Class Rectangle2D.Double, constructor Rectangle2D.Double(double, double, double, double)

Constructs and initializes a Rectangle2D from the specified double coordinates. @param x  y the coordinates of the upper left corner of the newly constructed Rectangle2D @param width the width of the newly constructed Rectangle2D @param height the height of the newly constructed Rectangle2D @since JDK11.2
Class Rectangle2D.Double, Rectangle2D createIntersection(Rectangle2D)

Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D to be intersected with this Rectangle2D @return the largest Rectangle2D contained in both the specified Rectangle2D and in this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, Rectangle2D createUnion(Rectangle2D)

Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D to be combined with this Rectangle2D @return the smallest Rectangle2D containing both the specified Rectangle2D and this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, Rectangle2D getBounds2D()

Returns the high precision bounding box of this Rectangle2D. @return the bounding box of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double getHeight()

Returns the height of this Rectangle2D in double precision. @return the height of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double getWidth()

Returns the width of this Rectangle2D in double precision. @return the width of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double getX()

Returns the X coordinate of this Rectangle2D in double precision. @return the X coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double getY()

Returns the Y coordinate of this Rectangle2D in double precision. @return the Y coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, boolean isEmpty()

Determines whether or not this Rectangle2D is empty. @return true if this Rectangle2D is empty; false otherwise. @since JDK11.2
Class Rectangle2D.Double, int outcode(double, double)

Determines where the specified double coordinates lie with respect to this Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of this Rectangle2D whether or not the specified coordinates are on the same side of the edge as the rest of this Rectangle2D. @param x  y the specified coordinates @return the logical OR of all appropriate out codes. @see Rectangle2D#OUT_LEFT @see Rectangle2D#OUT_TOP @see Rectangle2D#OUT_RIGHT @see Rectangle2D#OUT_BOTTOM @since JDK11.2
Class Rectangle2D.Double, void setRect(Rectangle2D)

Sets this Rectangle2D to be the same as the specified Rectangle2D. @param r the specified Rectangle2D @since JDK11.2
Class Rectangle2D.Double, void setRect(double, double, double, double)

Sets the location and size of this Rectangle2D to the specified double values. @param x  y the coordinates to which to set the upper left corner of this Rectangle2D @param w the value to use to set the width of this Rectangle2D @param h the value to use to set the height of this Rectangle2D @since JDK11.2
Class Rectangle2D.Double, String toString()

Returns the String representation of this Rectangle2D. @return a String representing this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double height

The height of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double width

The width of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double x

The x coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Double, double y

The y coordinate of this Rectangle2D. @since JDK11.2

Class Rectangle2D.Float

The Float class defines a rectangle specified in float coordinates. @since JDK11.2
Class Rectangle2D.Float, constructor Rectangle2D.Float()

Constructs a new Rectangle2D initialized to location (0.0  0.0) and size (0.0  0.0). @since JDK11.2
Class Rectangle2D.Float, constructor Rectangle2D.Float(float, float, float, float)

Constructs and initializes a Rectangle2D from the specified float coordinates. @param x  y the coordinates of the upper left corner of the newly constructed Rectangle2D @param w the width of the newly constructed Rectangle2D @param h the height of the newly constructed Rectangle2D @since JDK11.2
Class Rectangle2D.Float, Rectangle2D createIntersection(Rectangle2D)

Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D that is intersected with this Rectangle2D @return the largest Rectangle2D contained in both the specified Rectangle2D and in this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, Rectangle2D createUnion(Rectangle2D)

Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D to be combined with this Rectangle2D @return the smallest Rectangle2D containing both the specified Rectangle2D and this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, Rectangle2D getBounds2D()

Returns the high precision bounding box of this Rectangle2D. @return the bounding box of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, double getHeight()

Returns the height of this Rectangle2D in double precision. @return the height of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, double getWidth()

Returns the width of this Rectangle2D in double precision. @return the width of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, double getX()

Returns the X coordinate of this Rectangle2D in double precision. @return the X coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, double getY()

Returns the Y coordinate of this Rectangle2D in double precision. @return the Y coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, boolean isEmpty()

Determines whether or not this Rectangle2D is empty. @return true if this Rectangle2D is empty; false otherwise. @since JDK11.2
Class Rectangle2D.Float, int outcode(double, double)

Determines where the specified float coordinates lie with respect to this Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of this Rectangle2D whether or not the specified coordinates are on the same side of the edge as the rest of this Rectangle2D. @param x  y the specified coordinates @return the logical OR of all appropriate out codes. @see Rectangle2D#OUT_LEFT @see Rectangle2D#OUT_TOP @see Rectangle2D#OUT_RIGHT @see Rectangle2D#OUT_BOTTOM @since JDK11.2
Class Rectangle2D.Float, void setRect(Rectangle2D)

Sets this Rectangle2D to be the same as the specified Rectangle2D. @param r the specified Rectangle2D @since JDK11.2
Class Rectangle2D.Float, void setRect(double, double, double, double)

Sets the location and size of this Rectangle2D to the specified double values. @param x  y the coordinates to which to set the location of the upper left corner of this Rectangle2D @param w the value to use to set the width of this Rectangle2D @param h the value to use to set the height of this Rectangle2D @since JDK11.2
Class Rectangle2D.Float, void setRect(float, float, float, float)

Sets the location and size of this Rectangle2D to the specified float values. @param x  y the coordinates to which to set the location of the upper left corner of this Rectangle2D @param w the value to use to set the width of this Rectangle2D @param h the value to use to set the height of this Rectangle2D @since JDK11.2
Class Rectangle2D.Float, String toString()

Returns the String representation of this Rectangle2D. @return a String representing this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, float height

The height of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, float width

The width of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, float x

The x coordinate of this Rectangle2D. @since JDK11.2
Class Rectangle2D.Float, float y

The y coordinate of this Rectangle2D. @since JDK11.2

Class Rectangle2D, boolean contains(double, double)

Tests if a specified coordinate is inside the boundary of this Rectangle2D. @param x  y the coordinates to test @return true if the specified coordinates are inside the boundary of this Rectangle2D; false otherwise. @since JDK11.2
Class Rectangle2D, boolean contains(double, double, double, double)

Tests if the interior of this Rectangle2D entirely contains the specified set of rectangular coordinates. @param x  y the coordinates of the upper left corner of the specified set of rectangular coordinates @param w the width of the specified set of rectangular coordinates @param h the height of the specified set of rectangular coordinates @return true if this Rectangle2D entirely contains specified set of rectangular coordinates; false otherwise. @since JDK11.2
Class Rectangle2D, Rectangle2D createIntersection(Rectangle2D)

Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D to be intersected with this Rectangle2D @return the largest Rectangle2D contained in both the specified Rectangle2D and in this Rectangle2D. @since JDK11.2
Class Rectangle2D, Rectangle2D createUnion(Rectangle2D)

Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D. @param r the Rectangle2D to be combined with this Rectangle2D @return the smallest Rectangle2D containing both the specified Rectangle2D and this Rectangle2D. @since JDK11.2
Class Rectangle2D, boolean equals(Object)

Determines whether or not the specified Object is equal to this Rectangle2D. The specified Object is equal to this Rectangle2D if it is an instance of Rectangle2D and if its location and size are the same as this Rectangle2D. @param obj an Object to be compared with this Rectangle2D. @return true if obj is an instance of Rectangle2D and has the same values; false otherwise. @since JDK11.2
Class Rectangle2D, Rectangle2D getBounds2D()

Returns the high precision bounding box of this Rectangle2D. @return the bounding box of this Rectangle2D. @since JDK11.2
Class Rectangle2D, PathIterator getPathIterator(AffineTransform)

Returns an iteration object that defines the boundary of this Rectangle2D. The iterator for this class is multi-threaded safe which means that this Rectangle2D class guarantees that modifications to the geometry of this Rectangle2D object do not affect any iterations of that geometry that are already in process. @param at an optional AffineTransform to be applied to the coordinates as they are returned in the iteration or null if untransformed coordinates are desired @return the PathIterator object that returns the geometry of the outline of this Rectangle2D one segment at a time. @since JDK11.2
Class Rectangle2D, PathIterator getPathIterator(AffineTransform, double)

Returns an iteration object that defines the boundary of the flattened Rectangle2D. Since rectangles are already flat the flatness parameter is ignored. The iterator for this class is multi-threaded safe which means that this Rectangle2D class guarantees that modifications to the geometry of this Rectangle2D object do not affect any iterations of that geometry that are already in process. @param at an optional AffineTransform to be applied to the coordinates as they are returned in the iteration or null if untransformed coordinates are desired @param flatness the maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve. Since rectangles are already flat the flatness parameter is ignored. @return the PathIterator object that returns the geometry of the outline of this Rectangle2D one segment at a time. @since JDK11.2
Class Rectangle2D, void intersect(Rectangle2D, Rectangle2D, Rectangle2D)

Intersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object. @param src1 the first of a pair of Rectangle2D objects to be intersected with each other @param src2 the second of a pair of Rectangle2D objects to be intersected with each other @param dest the Rectangle2D that holds the results of the intersection of src1 and src2 @since JDK11.2
Class Rectangle2D, boolean intersects(double, double, double, double)

Tests if the interior of this Rectangle2D intersects the interior of a specified set of rectangular coordinates. @param x  y the coordinates of the upper left corner of the specified set of rectangular coordinates @param w the width of the specified set of rectangular coordinates @param h the height of the specified set of rectangular coordinates @return true if this Rectangle2D intersects the interior of a specified set of rectangular coordinates; false otherwise. @since JDK11.2
Class Rectangle2D, boolean intersectsLine(Line2D)

Tests if the specified line segment intersects the interior of this Rectangle2D. @param l the specified Line2D to test for intersection with the interior of this Rectangle2D @return true if the specified Line2D intersects the interior of this Rectangle2D; false otherwise. @since JDK11.2
Class Rectangle2D, boolean intersectsLine(double, double, double, double)

Tests if the specified line segment intersects the interior of this Rectangle2D. @param x1  y1 the first endpoint of the specified line segment @param x2  y2 the second endpoint of the specified line segment @return true if the specified line segment intersects the interior of this Rectangle2D; false otherwise. @since JDK11.2
Class Rectangle2D, int outcode(Point2D)

Determines where the specified Point2D lies with respect to this Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of this Rectangle2D whether or not the specified Point2D is on the same side of the edge as the rest of this Rectangle2D. @param p the specified Point2D @return the logical OR of all appropriate out codes. @see #OUT_LEFT @see #OUT_TOP @see #OUT_RIGHT @see #OUT_BOTTOM @since JDK11.2
Class Rectangle2D, int outcode(double, double)

Determines where the specified coordinates lie with respect to this Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of this Rectangle2D whether or not the specified coordinates are on the same side of the edge as the rest of this Rectangle2D. @param x  y the specified coordinates @return the logical OR of all appropriate out codes. @see #OUT_LEFT @see #OUT_TOP @see #OUT_RIGHT @see #OUT_BOTTOM @since JDK11.2
Class Rectangle2D, void setFrame(double, double, double, double)

Sets the location and size of the outer bounds of this Rectangle2D to the specified rectangular values. @param x  y the coordinates to which to set the location of the upper left corner of the outer bounds of this Rectangle2D @param w the value to use to set the width of the outer bounds of this Rectangle2D @param h the value to use to set the height of the outer bounds of this Rectangle2D @since JDK11.2
Class Rectangle2D, void setRect(Rectangle2D)

Sets this Rectangle2D to be the same as the specified Rectangle2D. @param r the specified Rectangle2D @since JDK11.2
Class Rectangle2D, void setRect(double, double, double, double)

Sets the location and size of this Rectangle2D to the specified double values. @param x  y the coordinates to which to set the location of the upper left corner of this Rectangle2D @param w the value to use to set the width of this Rectangle2D @param h the value to use to set the height of this Rectangle2D @since JDK11.2
Class Rectangle2D, void union(Rectangle2D, Rectangle2D, Rectangle2D)

Unions the pair of source Rectangle2D objects and puts the result into the specified destination Rectangle2D object. @param src1 the first of a pair of Rectangle2D objects to be combined with each other @param src2 the second of a pair of Rectangle2D objects to be combined with each other @param dest the Rectangle2D that holds the results of the union of src1 and src2 @since JDK11.2
Class Rectangle2D, int OUT_BOTTOM

The bitmask that indicates that a point lies below this Rectangle2D. @since JDK11.2
Class Rectangle2D, int OUT_LEFT

The bitmask that indicates that a point lies to the left of this Rectangle2D. @since JDK11.2
Class Rectangle2D, int OUT_RIGHT

The bitmask that indicates that a point lies to the right of this Rectangle2D. @since JDK11.2
Class Rectangle2D, int OUT_TOP

The bitmask that indicates that a point lies above this Rectangle2D. @since JDK11.2

Class RectangularShape

RectangularShape is the base class for a number of Shape objects whose geometry is defined by a rectangular frame. This class does not directly specify any specific geometry by itself but merely provides manipulation methods inherited by a whole category of Shape objects. The manipulation methods provided by this class can be used to query and modify the rectangular frame which provides a reference for the subclasses to define their geometry. @version 10 Feb1.14 199702/02/00 @author Jim Graham
Class RectangularShape, Object clone()

Creates a new object of the same class and with the same contents as this object. @return a clone of this instance. @exception OutOfMemoryError if there is not enough memory. @see java.lang.Cloneable @since JDK11.2

Class RoundRectangle2D

The RoundRectangle2D class defines a rectangle with rounded corners defined by a location (x  y) a dimension (w x h) and the width and height of an arc with which to round the corners.

This class is the abstract superclass for all objects that store a 2D rounded rectangle. The actual storage representation of the coordinates is left to the subclass. @version 10 Feb1.14 199702/02/00 @author Jim Graham