|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagejava.awt.geomas colored differences. Deletions are shownlike 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.
TheAffineTransformclass 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 ]@version10 Feb1.62199702/02/00 @author Jim Graham
Returns a bounding Rectangle that completely encloses thisClass Area, Rectangle2D getBounds2D()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
Rectanglefor theArea.
Returns a high precision bounding Rectangle2D that completely encloses thisClass Area, boolean isSingular()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
Rectangle2Dfor theArea.
Tests whether thisAreais comprised of a single closed subpath. This method returnstrueif the path contains 0 or 1 subpaths orfalseif the path contains more than 1 subpath. The subpaths are counted by the number of SEG_MOVETO segments that appear in the path. @returntrueif theAreais comprised of a single basic geometry;falseotherwise.
TheClass CubicCurve2D, Object clone()CubicCurve2Dclass 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.25199702/02/00 @author Jim Graham
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 @sinceClass CubicCurve2D, int solveCubic(double[])JDK11.2
Solves the cubic whose coefficients are in theeqnarray 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 = 0A 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.
TheClass Dimension2D, Object clone()Dimension2Dclass 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
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 @sinceJDK11.2
TheEllipse2Dclass 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.13199702/02/00 @author Jim Graham
TheClass GeneralPath, Object clone()GeneralPathclass 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.54199702/02/00 @author Jim Graham
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 @sinceJDK11.2
TheClass IllegalPathStateException, constructor IllegalPathStateException()IllegalPathStateExceptionrepresents 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. @version13 Oct1.9199702/02/00
Constructs anClass IllegalPathStateException, constructor IllegalPathStateException(String)IllegalPathStateExceptionwith no detail message. @sinceJDK11.2
Constructs anIllegalPathStateExceptionwith the specified detail message. @param s the detail message @sinceJDK11.2
ThisClass Line2D, Object clone()Line2Drepresents 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.21199702/02/00 @author Jim Graham
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 @sinceJDK11.2
TheClass NoninvertibleTransformException, constructor NoninvertibleTransformException(String)NoninvertibleTransformExceptionclass represents an exception that is thrown if an operation is performed requiring the inverse of an AffineTransform object but theAffineTransformis in a non-invertible state. @version10 Feb1.15199702/02/00
Constructs an instance ofNoninvertibleTransformExceptionwith the specified detail message. @param s the detail message @sinceJDK11.2
ThePathIteratorinterface 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
ThePoint2Dclass 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.14199702/02/00 @author Jim Graham
Constructs and initializes aClass Point2D.Double, constructor Point2D.Double(double, double)Point2Dwith coordinates (0 0). @sinceJDK11.2
Constructs and initializes aClass Point2D.Double, double getX()Point2Dwith the specified coordinates. @param x y the coordinates to which to set the newly constructedPoint2D@sinceJDK11.2
Returns the X coordinate of thisClass Point2D.Double, double getY()Point2Dindoubleprecision. @return the X coordinate of thisPoint2D. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D.Double, void setLocation(double, double)Point2Dindoubleprecision. @return the Y coordinate of thisPoint2D. @sinceJDK11.2
Sets the location of thisClass Point2D.Double, String toString()Point2Dto the specifieddoublecoordinates. @param x y the coordinates to which to set thisPoint2D@sinceJDK11.2
Returns aClass Point2D.Double, double xStringthat represents the value of thisPoint2D. @return a string representation of thisPoint2D. @sinceJDK11.2
The X coordinate of thisClass Point2D.Double, double yPoint2D. @sinceJDK11.2
The Y coordinate of thisPoint2D. @sinceJDK11.2
Constructs and initializes aClass Point2D.Float, constructor Point2D.Float(float, float)Point2Dwith coordinates (0 0). @sinceJDK11.2
Constructs and initializes aClass Point2D.Float, double getX()Point2Dwith the specified coordinates. @param x y the coordinates to which to set the newly constructedPoint2D@sinceJDK11.2
Returns the X coordinate of thisClass Point2D.Float, double getY()Point2Dindoubleprecision. @return the X coordinate of thisPoint2D. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D.Float, void setLocation(double, double)Point2Dindoubleprecision. @return the Y coordinate of thisPoint2D. @sinceJDK11.2
Sets the location of thisClass Point2D.Float, void setLocation(float, float)Point2Dto the specifieddoublecoordinates. @param x y the coordinates to which to set thisPoint2D@sinceJDK11.2
Sets the location of thisClass Point2D.Float, String toString()Point2Dto the specifiedfloatcoordinates. @param x y the coordinates to which to set thisPoint2D@sinceJDK11.2
Returns aClass Point2D.Float, float xStringthat represents the value of thisPoint2D. @return a string representation of thisPoint2D. @sinceJDK11.2
The X coordinate of thisClass Point2D.Float, float yPoint2D. @sinceJDK11.2
The Y coordinate of thisPoint2D. @sinceJDK11.2
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 @sinceClass Point2D, boolean equals(Object)JDK11.2
Determines whether or not two points are equal. Two instances ofClass Point2D, double getX()Point2Dare equal if the values of theirxandymember fields representing their position in the coordinate space are the same. @param obj an object to be compared with thisPoint2D@returntrueif the object to be compared is an instance ofPoint2Dand has the same values;falseotherwise. @sinceJDK11.2
Returns the X coordinate of thisClass Point2D, double getY()Point2Dindoubleprecision. @return the X coordinate of thisPoint2D. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D, void setLocation(Point2D)Point2Dindoubleprecision. @return the Y coordinate of thisPoint2D. @sinceJDK11.2
Sets the location of thisClass Point2D, void setLocation(double, double)Point2Dto the same coordinates as the specifiedPoint2Dobject. @param p the specifiedPoint2Dthe which to set thisPoint2D@sinceJDK11.2
Sets the location of thisPoint2Dto the specifiedfloatcoordinates. @param x y the coordinates of thisPoint2D@sinceJDK11.2
TheClass QuadCurve2D, Object clone()QuadCurve2Dclass 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.22199702/02/00 @author Jim Graham
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 @sinceClass QuadCurve2D, int solveQuadratic(double[])JDK11.2
Solves the quadratic whose coefficients are in theeqnarray 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 = 0A return value of-1is 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-1if the equation is a constant
TheRectangle2Dclass 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.22199702/02/00 @author Jim Graham
TheClass Rectangle2D.Double, constructor Rectangle2D.Double()Doubleclass defines a rectangle specified in double coordinates. @sinceJDK11.2
Constructs a newClass Rectangle2D.Double, constructor Rectangle2D.Double(double, double, double, double)Rectangle2Dinitialized to location (0 0) and size (0 0). @sinceJDK11.2
Constructs and initializes aClass Rectangle2D.Double, Rectangle2D createIntersection(Rectangle2D)Rectangle2Dfrom the specified double coordinates. @param x y the coordinates of the upper left corner of the newly constructedRectangle2D@param width the width of the newly constructedRectangle2D@param height the height of the newly constructedRectangle2D@sinceJDK11.2
Returns a newClass Rectangle2D.Double, Rectangle2D createUnion(Rectangle2D)Rectangle2Dobject representing the intersection of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dto be intersected with thisRectangle2D@return the largestRectangle2Dcontained in both the specifiedRectangle2Dand in thisRectangle2D. @sinceJDK11.2
Returns a newClass Rectangle2D.Double, Rectangle2D getBounds2D()Rectangle2Dobject representing the union of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dto be combined with thisRectangle2D@return the smallestRectangle2Dcontaining both the specifiedRectangle2Dand thisRectangle2D. @sinceJDK11.2
Returns the high precision bounding box of thisClass Rectangle2D.Double, double getHeight()Rectangle2D. @return the bounding box of thisRectangle2D. @sinceJDK11.2
Returns the height of thisClass Rectangle2D.Double, double getWidth()Rectangle2Din double precision. @return the height of thisRectangle2D. @sinceJDK11.2
Returns the width of thisClass Rectangle2D.Double, double getX()Rectangle2Din double precision. @return the width of thisRectangle2D. @sinceJDK11.2
Returns the X coordinate of thisClass Rectangle2D.Double, double getY()Rectangle2Din double precision. @return the X coordinate of thisRectangle2D. @sinceJDK11.2
Returns the Y coordinate of thisClass Rectangle2D.Double, boolean isEmpty()Rectangle2Din double precision. @return the Y coordinate of thisRectangle2D. @sinceJDK11.2
Determines whether or not thisClass Rectangle2D.Double, int outcode(double, double)Rectangle2Dis empty. @returntrueif thisRectangle2Dis empty;falseotherwise. @sinceJDK11.2
Determines where the specified double coordinates lie with respect to thisClass Rectangle2D.Double, void setRect(Rectangle2D)Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of thisRectangle2Dwhether or not the specified coordinates are on the same side of the edge as the rest of thisRectangle2D. @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 @sinceJDK11.2
Sets thisClass Rectangle2D.Double, void setRect(double, double, double, double)Rectangle2Dto be the same as the specifiedRectangle2D. @param r the specifiedRectangle2D@sinceJDK11.2
Sets the location and size of thisClass Rectangle2D.Double, String toString()Rectangle2Dto the specified double values. @param x y the coordinates to which to set the upper left corner of thisRectangle2D@param w the value to use to set the width of thisRectangle2D@param h the value to use to set the height of thisRectangle2D@sinceJDK11.2
Returns theClass Rectangle2D.Double, double heightStringrepresentation of thisRectangle2D. @return aStringrepresenting thisRectangle2D. @sinceJDK11.2
The height of thisClass Rectangle2D.Double, double widthRectangle2D. @sinceJDK11.2
The width of thisClass Rectangle2D.Double, double xRectangle2D. @sinceJDK11.2
The x coordinate of thisClass Rectangle2D.Double, double yRectangle2D. @sinceJDK11.2
The y coordinate of thisRectangle2D. @sinceJDK11.2
TheClass Rectangle2D.Float, constructor Rectangle2D.Float()Floatclass defines a rectangle specified in float coordinates. @sinceJDK11.2
Constructs a newClass Rectangle2D.Float, constructor Rectangle2D.Float(float, float, float, float)Rectangle2Dinitialized to location (0.0 0.0) and size (0.0 0.0). @sinceJDK11.2
Constructs and initializes aClass Rectangle2D.Float, Rectangle2D createIntersection(Rectangle2D)Rectangle2Dfrom the specified float coordinates. @param x y the coordinates of the upper left corner of the newly constructedRectangle2D@param w the width of the newly constructedRectangle2D@param h the height of the newly constructedRectangle2D@sinceJDK11.2
Returns a newClass Rectangle2D.Float, Rectangle2D createUnion(Rectangle2D)Rectangle2Dobject representing the intersection of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dthat is intersected with thisRectangle2D@return the largestRectangle2Dcontained in both the specifiedRectangle2Dand in thisRectangle2D. @sinceJDK11.2
Returns a newClass Rectangle2D.Float, Rectangle2D getBounds2D()Rectangle2Dobject representing the union of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dto be combined with thisRectangle2D@return the smallestRectangle2Dcontaining both the specifiedRectangle2Dand thisRectangle2D. @sinceJDK11.2
Returns the high precision bounding box of thisClass Rectangle2D.Float, double getHeight()Rectangle2D. @return the bounding box of thisRectangle2D. @sinceJDK11.2
Returns the height of thisClass Rectangle2D.Float, double getWidth()Rectangle2Din double precision. @return the height of thisRectangle2D. @sinceJDK11.2
Returns the width of thisClass Rectangle2D.Float, double getX()Rectangle2Din double precision. @return the width of thisRectangle2D. @sinceJDK11.2
Returns the X coordinate of thisClass Rectangle2D.Float, double getY()Rectangle2Din double precision. @return the X coordinate of thisRectangle2D. @sinceJDK11.2
Returns the Y coordinate of thisClass Rectangle2D.Float, boolean isEmpty()Rectangle2Din double precision. @return the Y coordinate of thisRectangle2D. @sinceJDK11.2
Determines whether or not thisClass Rectangle2D.Float, int outcode(double, double)Rectangle2Dis empty. @returntrueif thisRectangle2Dis empty;falseotherwise. @sinceJDK11.2
Determines where the specified float coordinates lie with respect to thisClass Rectangle2D.Float, void setRect(Rectangle2D)Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of thisRectangle2Dwhether or not the specified coordinates are on the same side of the edge as the rest of thisRectangle2D. @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 @sinceJDK11.2
Sets thisClass Rectangle2D.Float, void setRect(double, double, double, double)Rectangle2Dto be the same as the specifiedRectangle2D. @param r the specifiedRectangle2D@sinceJDK11.2
Sets the location and size of thisClass Rectangle2D.Float, void setRect(float, float, float, float)Rectangle2Dto the specified double values. @param x y the coordinates to which to set the location of the upper left corner of thisRectangle2D@param w the value to use to set the width of thisRectangle2D@param h the value to use to set the height of thisRectangle2D@sinceJDK11.2
Sets the location and size of thisClass Rectangle2D.Float, String toString()Rectangle2Dto the specified float values. @param x y the coordinates to which to set the location of the upper left corner of thisRectangle2D@param w the value to use to set the width of thisRectangle2D@param h the value to use to set the height of thisRectangle2D@sinceJDK11.2
Returns theClass Rectangle2D.Float, float heightStringrepresentation of thisRectangle2D. @return aStringrepresenting thisRectangle2D. @sinceJDK11.2
The height of thisClass Rectangle2D.Float, float widthRectangle2D. @sinceJDK11.2
The width of thisClass Rectangle2D.Float, float xRectangle2D. @sinceJDK11.2
The x coordinate of thisClass Rectangle2D.Float, float yRectangle2D. @sinceJDK11.2
The y coordinate of thisRectangle2D. @sinceJDK11.2
Tests if a specified coordinate is inside the boundary of thisClass Rectangle2D, boolean contains(double, double, double, double)Rectangle2D. @param x y the coordinates to test @returntrueif the specified coordinates are inside the boundary of thisRectangle2D;falseotherwise. @sinceJDK11.2
Tests if the interior of thisClass Rectangle2D, Rectangle2D createIntersection(Rectangle2D)Rectangle2Dentirely 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 @returntrueif thisRectangle2Dentirely contains specified set of rectangular coordinates;falseotherwise. @sinceJDK11.2
Returns a newClass Rectangle2D, Rectangle2D createUnion(Rectangle2D)Rectangle2Dobject representing the intersection of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dto be intersected with thisRectangle2D@return the largestRectangle2Dcontained in both the specifiedRectangle2Dand in thisRectangle2D. @sinceJDK11.2
Returns a newClass Rectangle2D, boolean equals(Object)Rectangle2Dobject representing the union of thisRectangle2Dwith the specifiedRectangle2D. @param r theRectangle2Dto be combined with thisRectangle2D@return the smallestRectangle2Dcontaining both the specifiedRectangle2Dand thisRectangle2D. @sinceJDK11.2
Determines whether or not the specifiedClass Rectangle2D, Rectangle2D getBounds2D()Objectis equal to thisRectangle2D. The specifiedObjectis equal to thisRectangle2Dif it is an instance ofRectangle2Dand if its location and size are the same as thisRectangle2D. @param obj anObjectto be compared with thisRectangle2D. @returntrueifobjis an instance ofRectangle2Dand has the same values;falseotherwise. @sinceJDK11.2
Returns the high precision bounding box of thisClass Rectangle2D, PathIterator getPathIterator(AffineTransform)Rectangle2D. @return the bounding box of thisRectangle2D. @sinceJDK11.2
Returns an iteration object that defines the boundary of thisClass Rectangle2D, PathIterator getPathIterator(AffineTransform, double)Rectangle2D. The iterator for this class is multi-threaded safe which means that thisRectangle2Dclass guarantees that modifications to the geometry of thisRectangle2Dobject do not affect any iterations of that geometry that are already in process. @param at an optionalAffineTransformto be applied to the coordinates as they are returned in the iteration ornullif untransformed coordinates are desired @return thePathIteratorobject that returns the geometry of the outline of thisRectangle2Done segment at a time. @sinceJDK11.2
Returns an iteration object that defines the boundary of the flattenedClass Rectangle2D, void intersect(Rectangle2D, Rectangle2D, Rectangle2D)Rectangle2D. Since rectangles are already flat theflatnessparameter is ignored. The iterator for this class is multi-threaded safe which means that thisRectangle2Dclass guarantees that modifications to the geometry of thisRectangle2Dobject do not affect any iterations of that geometry that are already in process. @param at an optionalAffineTransformto be applied to the coordinates as they are returned in the iteration ornullif 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 theflatnessparameter is ignored. @return thePathIteratorobject that returns the geometry of the outline of thisRectangle2Done segment at a time. @sinceJDK11.2
Intersects the pair of specified sourceClass Rectangle2D, boolean intersects(double, double, double, double)Rectangle2Dobjects and puts the result into the specified destinationRectangle2Dobject. @param src1 the first of a pair ofRectangle2Dobjects to be intersected with each other @param src2 the second of a pair ofRectangle2Dobjects to be intersected with each other @param dest theRectangle2Dthat holds the results of the intersection ofsrc1andsrc2@sinceJDK11.2
Tests if the interior of thisClass Rectangle2D, boolean intersectsLine(Line2D)Rectangle2Dintersects 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 @returntrueif thisRectangle2Dintersects the interior of a specified set of rectangular coordinates;falseotherwise. @sinceJDK11.2
Tests if the specified line segment intersects the interior of thisClass Rectangle2D, boolean intersectsLine(double, double, double, double)Rectangle2D. @param l the specified Line2D to test for intersection with the interior of thisRectangle2D@returntrueif the specifiedLine2Dintersects the interior of thisRectangle2D;falseotherwise. @sinceJDK11.2
Tests if the specified line segment intersects the interior of thisClass Rectangle2D, int outcode(Point2D)Rectangle2D. @param x1 y1 the first endpoint of the specified line segment @param x2 y2 the second endpoint of the specified line segment @returntrueif the specified line segment intersects the interior of thisRectangle2D;falseotherwise. @sinceJDK11.2
Determines where the specified Point2D lies with respect to thisClass Rectangle2D, int outcode(double, double)Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of thisRectangle2Dwhether or not the specifiedPoint2Dis on the same side of the edge as the rest of thisRectangle2D. @param p the specifiedPoint2D@return the logical OR of all appropriate out codes. @see #OUT_LEFT @see #OUT_TOP @see #OUT_RIGHT @see #OUT_BOTTOM @sinceJDK11.2
Determines where the specified coordinates lie with respect to thisClass Rectangle2D, void setFrame(double, double, double, double)Rectangle2D. This method computes a binary OR of the appropriate mask values indicating for each side of thisRectangle2Dwhether or not the specified coordinates are on the same side of the edge as the rest of thisRectangle2D. @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 @sinceJDK11.2
Sets the location and size of the outer bounds of thisClass Rectangle2D, void setRect(Rectangle2D)Rectangle2Dto 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 thisRectangle2D@param w the value to use to set the width of the outer bounds of thisRectangle2D@param h the value to use to set the height of the outer bounds of thisRectangle2D@sinceJDK11.2
Sets thisClass Rectangle2D, void setRect(double, double, double, double)Rectangle2Dto be the same as the specifiedRectangle2D. @param r the specifiedRectangle2D@sinceJDK11.2
Sets the location and size of thisClass Rectangle2D, void union(Rectangle2D, Rectangle2D, Rectangle2D)Rectangle2Dto the specified double values. @param x y the coordinates to which to set the location of the upper left corner of thisRectangle2D@param w the value to use to set the width of thisRectangle2D@param h the value to use to set the height of thisRectangle2D@sinceJDK11.2
Unions the pair of sourceClass Rectangle2D, int OUT_BOTTOMRectangle2Dobjects and puts the result into the specified destinationRectangle2Dobject. @param src1 the first of a pair ofRectangle2Dobjects to be combined with each other @param src2 the second of a pair ofRectangle2Dobjects to be combined with each other @param dest theRectangle2Dthat holds the results of the union ofsrc1andsrc2@sinceJDK11.2
The bitmask that indicates that a point lies below thisClass Rectangle2D, int OUT_LEFTRectangle2D. @sinceJDK11.2
The bitmask that indicates that a point lies to the left of thisClass Rectangle2D, int OUT_RIGHTRectangle2D. @sinceJDK11.2
The bitmask that indicates that a point lies to the right of thisClass Rectangle2D, int OUT_TOPRectangle2D. @sinceJDK11.2
The bitmask that indicates that a point lies above thisRectangle2D. @sinceJDK11.2
Class RectangularShape, Object clone()RectangularShapeis 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 ofShapeobjects. 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. @version10 Feb1.14199702/02/00 @author Jim Graham
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 @sinceJDK11.2
TheRoundRectangle2Dclass 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.14199702/02/00 @author Jim Graham