public static class Rectangle2D.Float extends Rectangle2D
Rectangle2D.Double, Rectangle2D.Float| Modifier and Type | Field and Description |
|---|---|
float |
height |
float |
width |
float |
x |
float |
y |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP| Constructor and Description |
|---|
Float() |
Float(float x,
float y,
float width,
float 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(float x,
float y,
float width,
float 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 Float()
public Float(float x,
float y,
float width,
float 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(float x,
float y,
float width,
float height)
public 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 © 2022. All rights reserved.