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, union
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public 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 RectangularShape
public double getY()
getY
in class RectangularShape
public double getWidth()
getWidth
in class RectangularShape
public double getHeight()
getHeight
in class RectangularShape
public boolean isEmpty()
isEmpty
in class RectangularShape
public void setRect(double x, double y, double width, double height)
setRect
in class Rectangle2D
public void setRect(Rectangle2D r)
setRect
in class Rectangle2D
public int outcode(double px, double py)
outcode
in class Rectangle2D
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
getBounds2D
in class Rectangle2D
public Rectangle2D createIntersection(Rectangle2D r)
createIntersection
in class Rectangle2D
public Rectangle2D createUnion(Rectangle2D r)
createUnion
in class Rectangle2D
Copyright © 1998–2018. All rights reserved.