public static class Rectangle2D.Double extends Rectangle2D
Rectangle2D.Double, Rectangle2D.Float| Modifier and Type | Field and Description |
|---|---|
double |
height |
double |
width |
double |
x |
double |
y |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP| Constructor and Description |
|---|
Double() |
Double(double x,
double y,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
createIntersection(Rectangle2D r) |
Rectangle2D |
createUnion(Rectangle2D r) |
Rectangle2D |
getBounds2D() |
double |
getHeight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
isEmpty() |
int |
outcode(double px,
double py) |
void |
setRect(double x,
double y,
double width,
double height) |
void |
setRect(Rectangle2D r) |
String |
toString() |
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, unionclone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic double x
public double y
public double width
public double height
public Double()
public Double(double x,
double y,
double width,
double height)
public double getX()
getX in class RectangularShapepublic double getY()
getY in class RectangularShapepublic double getWidth()
getWidth in class RectangularShapepublic double getHeight()
getHeight in class RectangularShapepublic boolean isEmpty()
isEmpty in class RectangularShapepublic void setRect(double x,
double y,
double width,
double height)
setRect in class Rectangle2Dpublic void setRect(Rectangle2D r)
setRect in class Rectangle2Dpublic int outcode(double px,
double py)
outcode in class Rectangle2Dpublic Rectangle2D getBounds2D()
getBounds2D in interface ShapegetBounds2D in class Rectangle2Dpublic Rectangle2D createIntersection(Rectangle2D r)
createIntersection in class Rectangle2Dpublic Rectangle2D createUnion(Rectangle2D r)
createUnion in class Rectangle2DCopyright © 2016. All rights reserved.