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, union
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public Float()
public Float(float x, float y, float width, float 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(float x, float y, float width, float height)
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–2022. All rights reserved.