|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.awt.geom
as 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.
TheAffineTransform
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 ]@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
Rectangle
for 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
Rectangle2D
for theArea
.
Tests whether thisArea
is comprised of a single closed subpath. This method returnstrue
if the path contains 0 or 1 subpaths orfalse
if the path contains more than 1 subpath. The subpaths are counted by the number of SEG_MOVETO segments that appear in the path. @returntrue
if theArea
is comprised of a single basic geometry;false
otherwise.
TheClass CubicCurve2D, Object clone()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.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 theeqn
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 = 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()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
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
TheEllipse2D
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.13199702/02/00 @author Jim Graham
TheClass GeneralPath, Object clone()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.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()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. @version13 Oct1.9199702/02/00
Constructs anClass IllegalPathStateException, constructor IllegalPathStateException(String)IllegalPathStateException
with no detail message. @sinceJDK11.2
Constructs anIllegalPathStateException
with the specified detail message. @param s the detail message @sinceJDK11.2
ThisClass Line2D, Object clone()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.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)NoninvertibleTransformException
class represents an exception that is thrown if an operation is performed requiring the inverse of an AffineTransform object but theAffineTransform
is in a non-invertible state. @version10 Feb1.15199702/02/00
Constructs an instance ofNoninvertibleTransformException
with the specified detail message. @param s the detail message @sinceJDK11.2
ThePathIterator
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
ThePoint2D
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.14199702/02/00 @author Jim Graham
Constructs and initializes aClass Point2D.Double, constructor Point2D.Double(double, double)Point2D
with coordinates (0 0). @sinceJDK11.2
Constructs and initializes aClass Point2D.Double, double getX()Point2D
with 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()Point2D
indouble
precision. @return the X coordinate of thisPoint2D
. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D.Double, void setLocation(double, double)Point2D
indouble
precision. @return the Y coordinate of thisPoint2D
. @sinceJDK11.2
Sets the location of thisClass Point2D.Double, String toString()Point2D
to the specifieddouble
coordinates. @param x y the coordinates to which to set thisPoint2D
@sinceJDK11.2
Returns aClass Point2D.Double, double xString
that 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)Point2D
with coordinates (0 0). @sinceJDK11.2
Constructs and initializes aClass Point2D.Float, double getX()Point2D
with 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()Point2D
indouble
precision. @return the X coordinate of thisPoint2D
. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D.Float, void setLocation(double, double)Point2D
indouble
precision. @return the Y coordinate of thisPoint2D
. @sinceJDK11.2
Sets the location of thisClass Point2D.Float, void setLocation(float, float)Point2D
to the specifieddouble
coordinates. @param x y the coordinates to which to set thisPoint2D
@sinceJDK11.2
Sets the location of thisClass Point2D.Float, String toString()Point2D
to the specifiedfloat
coordinates. @param x y the coordinates to which to set thisPoint2D
@sinceJDK11.2
Returns aClass Point2D.Float, float xString
that 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()Point2D
are equal if the values of theirx
andy
member fields representing their position in the coordinate space are the same. @param obj an object to be compared with thisPoint2D
@returntrue
if the object to be compared is an instance ofPoint2D
and has the same values;false
otherwise. @sinceJDK11.2
Returns the X coordinate of thisClass Point2D, double getY()Point2D
indouble
precision. @return the X coordinate of thisPoint2D
. @sinceJDK11.2
Returns the Y coordinate of thisClass Point2D, void setLocation(Point2D)Point2D
indouble
precision. @return the Y coordinate of thisPoint2D
. @sinceJDK11.2
Sets the location of thisClass Point2D, void setLocation(double, double)Point2D
to the same coordinates as the specifiedPoint2D
object. @param p the specifiedPoint2D
the which to set thisPoint2D
@sinceJDK11.2
Sets the location of thisPoint2D
to the specifiedfloat
coordinates. @param x y the coordinates of thisPoint2D
@sinceJDK11.2
TheClass QuadCurve2D, Object clone()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.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 theeqn
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 = 0A 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
TheRectangle2D
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.22199702/02/00 @author Jim Graham
TheClass Rectangle2D.Double, constructor Rectangle2D.Double()Double
class defines a rectangle specified in double coordinates. @sinceJDK11.2
Constructs a newClass Rectangle2D.Double, constructor Rectangle2D.Double(double, double, double, double)Rectangle2D
initialized to location (0 0) and size (0 0). @sinceJDK11.2
Constructs and initializes aClass Rectangle2D.Double, Rectangle2D createIntersection(Rectangle2D)Rectangle2D
from 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)Rectangle2D
object representing the intersection of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
to be intersected with thisRectangle2D
@return the largestRectangle2D
contained in both the specifiedRectangle2D
and in thisRectangle2D
. @sinceJDK11.2
Returns a newClass Rectangle2D.Double, Rectangle2D getBounds2D()Rectangle2D
object representing the union of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
to be combined with thisRectangle2D
@return the smallestRectangle2D
containing both the specifiedRectangle2D
and 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()Rectangle2D
in double precision. @return the height of thisRectangle2D
. @sinceJDK11.2
Returns the width of thisClass Rectangle2D.Double, double getX()Rectangle2D
in double precision. @return the width of thisRectangle2D
. @sinceJDK11.2
Returns the X coordinate of thisClass Rectangle2D.Double, double getY()Rectangle2D
in double precision. @return the X coordinate of thisRectangle2D
. @sinceJDK11.2
Returns the Y coordinate of thisClass Rectangle2D.Double, boolean isEmpty()Rectangle2D
in double precision. @return the Y coordinate of thisRectangle2D
. @sinceJDK11.2
Determines whether or not thisClass Rectangle2D.Double, int outcode(double, double)Rectangle2D
is empty. @returntrue
if thisRectangle2D
is empty;false
otherwise. @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 thisRectangle2D
whether 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)Rectangle2D
to be the same as the specifiedRectangle2D
. @param r the specifiedRectangle2D
@sinceJDK11.2
Sets the location and size of thisClass Rectangle2D.Double, String toString()Rectangle2D
to 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 heightString
representation of thisRectangle2D
. @return aString
representing 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()Float
class defines a rectangle specified in float coordinates. @sinceJDK11.2
Constructs a newClass Rectangle2D.Float, constructor Rectangle2D.Float(float, float, float, float)Rectangle2D
initialized to location (0.0 0.0) and size (0.0 0.0). @sinceJDK11.2
Constructs and initializes aClass Rectangle2D.Float, Rectangle2D createIntersection(Rectangle2D)Rectangle2D
from 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)Rectangle2D
object representing the intersection of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
that is intersected with thisRectangle2D
@return the largestRectangle2D
contained in both the specifiedRectangle2D
and in thisRectangle2D
. @sinceJDK11.2
Returns a newClass Rectangle2D.Float, Rectangle2D getBounds2D()Rectangle2D
object representing the union of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
to be combined with thisRectangle2D
@return the smallestRectangle2D
containing both the specifiedRectangle2D
and 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()Rectangle2D
in double precision. @return the height of thisRectangle2D
. @sinceJDK11.2
Returns the width of thisClass Rectangle2D.Float, double getX()Rectangle2D
in double precision. @return the width of thisRectangle2D
. @sinceJDK11.2
Returns the X coordinate of thisClass Rectangle2D.Float, double getY()Rectangle2D
in double precision. @return the X coordinate of thisRectangle2D
. @sinceJDK11.2
Returns the Y coordinate of thisClass Rectangle2D.Float, boolean isEmpty()Rectangle2D
in double precision. @return the Y coordinate of thisRectangle2D
. @sinceJDK11.2
Determines whether or not thisClass Rectangle2D.Float, int outcode(double, double)Rectangle2D
is empty. @returntrue
if thisRectangle2D
is empty;false
otherwise. @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 thisRectangle2D
whether 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)Rectangle2D
to 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)Rectangle2D
to 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()Rectangle2D
to 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 heightString
representation of thisRectangle2D
. @return aString
representing 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 @returntrue
if the specified coordinates are inside the boundary of thisRectangle2D
;false
otherwise. @sinceJDK11.2
Tests if the interior of thisClass Rectangle2D, Rectangle2D createIntersection(Rectangle2D)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 @returntrue
if thisRectangle2D
entirely contains specified set of rectangular coordinates;false
otherwise. @sinceJDK11.2
Returns a newClass Rectangle2D, Rectangle2D createUnion(Rectangle2D)Rectangle2D
object representing the intersection of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
to be intersected with thisRectangle2D
@return the largestRectangle2D
contained in both the specifiedRectangle2D
and in thisRectangle2D
. @sinceJDK11.2
Returns a newClass Rectangle2D, boolean equals(Object)Rectangle2D
object representing the union of thisRectangle2D
with the specifiedRectangle2D
. @param r theRectangle2D
to be combined with thisRectangle2D
@return the smallestRectangle2D
containing both the specifiedRectangle2D
and thisRectangle2D
. @sinceJDK11.2
Determines whether or not the specifiedClass Rectangle2D, Rectangle2D getBounds2D()Object
is equal to thisRectangle2D
. The specifiedObject
is equal to thisRectangle2D
if it is an instance ofRectangle2D
and if its location and size are the same as thisRectangle2D
. @param obj anObject
to be compared with thisRectangle2D
. @returntrue
ifobj
is an instance ofRectangle2D
and has the same values;false
otherwise. @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 thisRectangle2D
class guarantees that modifications to the geometry of thisRectangle2D
object do not affect any iterations of that geometry that are already in process. @param at an optionalAffineTransform
to be applied to the coordinates as they are returned in the iteration ornull
if untransformed coordinates are desired @return thePathIterator
object that returns the geometry of the outline of thisRectangle2D
one 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 theflatness
parameter is ignored. The iterator for this class is multi-threaded safe which means that thisRectangle2D
class guarantees that modifications to the geometry of thisRectangle2D
object do not affect any iterations of that geometry that are already in process. @param at an optionalAffineTransform
to be applied to the coordinates as they are returned in the iteration ornull
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 theflatness
parameter is ignored. @return thePathIterator
object that returns the geometry of the outline of thisRectangle2D
one segment at a time. @sinceJDK11.2
Intersects the pair of specified sourceClass Rectangle2D, boolean intersects(double, double, double, double)Rectangle2D
objects and puts the result into the specified destinationRectangle2D
object. @param src1 the first of a pair ofRectangle2D
objects to be intersected with each other @param src2 the second of a pair ofRectangle2D
objects to be intersected with each other @param dest theRectangle2D
that holds the results of the intersection ofsrc1
andsrc2
@sinceJDK11.2
Tests if the interior of thisClass Rectangle2D, boolean intersectsLine(Line2D)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 @returntrue
if thisRectangle2D
intersects the interior of a specified set of rectangular coordinates;false
otherwise. @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
@returntrue
if the specifiedLine2D
intersects the interior of thisRectangle2D
;false
otherwise. @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 @returntrue
if the specified line segment intersects the interior of thisRectangle2D
;false
otherwise. @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 thisRectangle2D
whether or not the specifiedPoint2D
is 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 thisRectangle2D
whether 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)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 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)Rectangle2D
to 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)Rectangle2D
to 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_BOTTOMRectangle2D
objects and puts the result into the specified destinationRectangle2D
object. @param src1 the first of a pair ofRectangle2D
objects to be combined with each other @param src2 the second of a pair ofRectangle2D
objects to be combined with each other @param dest theRectangle2D
that holds the results of the union ofsrc1
andsrc2
@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()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 ofShape
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. @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
TheRoundRectangle2D
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.14199702/02/00 @author Jim Graham