| Modifier and Type | Field and Description |
|---|---|
| public static final Rectangle2D | EMPTY
An empty |
| private int | hash
Cache the hash code to make computing hashes faster. |
| private double | |
| private double | |
| private double | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | Rectangle2D(double
The x coordinate of the upper-left corner of the minX, double Rectangle2DThe y coordinate of the upper-left corner of the minY, double Rectangle2DThe width of the width, double Rectangle2DThe height of the height)Rectangle2DCreates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: true if the specified(x, y) coordinates are inside the
boundary of this Rectangle2D; false otherwisethe specified x coordinate to be tested x, double the specified y coordinate to be tested y)Tests if the specified |
| public boolean | Returns: true if the specified Rectangle2D,r, is inside the
boundary of this Rectangle2D; false otherwiseThe specified Rectangle2D r)Tests if the interior of this |
| public boolean | Returns: true if the interior of thisRectangle2D entirely contains
the specified rectangular area; false otherwisethe x coordinate of the upper-left corner of the specified
rectangular area x, double the y coordinate of the upper-left corner of the specified
rectangular area y, double the width of the specified rectangular area w, double the height of the specified rectangular area h)Tests if the interior of this |
| public boolean | Returns: true if this object is equal to the obj argument; false otherwisethe reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public double | |
| public double | Returns: the x coordinate of the lower-right cornerThe x coordinate of the lower-right corner of this |
| public double | Returns: the y coordinate of the lower-right cornerThe y coordinate of the lower-right corner of this |
| public double | Returns: the x coordinate of the upper-left cornerThe x coordinate of the upper-left corner of this |
| public double | Returns: the y coordinate of the upper-left cornerThe y coordinate of the upper-left corner of this |
| public double | |
| public int | Returns: a hash code for thisRectangle2D object.Overrides java. Returns a hash code for this |
| public boolean | Returns: true if the interior of thisRectangle2D and the interior
of the specified Rectangle2D, r, intersectThe specified Rectangle2D r)Tests if the interior of this |
| public boolean | Returns: true if the interior of thisRectangle2D and the interior
of the rectangular area intersectthe x coordinate of the upper-left corner of the specified
rectangular area x, double the y coordinate of the upper-left corner of the specified
rectangular area y, double the width of the specified rectangular area w, double the height of the specified rectangular area h)Tests if the interior of this |
| public String |
| EMPTY | back to summary |
|---|---|
| public static final Rectangle2D EMPTY An empty | |
| hash | back to summary |
|---|---|
| private int hash Cache the hash code to make computing hashes faster. | |
| height | back to summary |
|---|---|
| private double height | |
| maxX | back to summary |
|---|---|
| private double maxX | |
| maxY | back to summary |
|---|---|
| private double maxY | |
| minX | back to summary |
|---|---|
| private double minX | |
| minY | back to summary |
|---|---|
| private double minY | |
| width | back to summary |
|---|---|
| private double width | |
| Rectangle2D | back to summary |
|---|---|
| public Rectangle2D(double minX, double minY, double width, double height) Creates a new instance of
| |
| contains | back to summary |
|---|---|
| public boolean contains(Point2D p) Tests if the specified point is inside the boundary of
| |
| contains | back to summary |
|---|---|
| public boolean contains(double x, double y) Tests if the specified
| |
| contains | back to summary |
|---|---|
| public boolean contains(Rectangle2D r) Tests if the interior of this
| |
| contains | back to summary |
|---|---|
| public boolean contains(double x, double y, double w, double h) Tests if the interior of this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one. | |
| getHeight | back to summary |
|---|---|
| public double getHeight() The height of this
| |
| getMaxX | back to summary |
|---|---|
| public double getMaxX() The x coordinate of the lower-right corner of this
| |
| getMaxY | back to summary |
|---|---|
| public double getMaxY() The y coordinate of the lower-right corner of this
| |
| getMinX | back to summary |
|---|---|
| public double getMinX() The x coordinate of the upper-left corner of this
| |
| getMinY | back to summary |
|---|---|
| public double getMinY() The y coordinate of the upper-left corner of this
| |
| getWidth | back to summary |
|---|---|
| public double getWidth() The width of this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(Rectangle2D r) Tests if the interior of this
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(double x, double y, double w, double h) Tests if the interior of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this
| |