java.lang.Object
eu.hansolo.toolboxfx.geom.Rectangle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) booleancontains(double x, double y, double width, double height) copy()createIntersection(Rectangle rect) createUnion(Rectangle rect) booleandoubledoubledoubledoublegetWidth()doublegetX()doublegetY()inthashCode()static voidbooleanintersects(double x, double y, double width, double height) booleanisEmpty()voidset(double x, double y, double w, double h) voidvoidsetHeight(double height) voidsetWidth(double width) voidsetX(double x) voidsetY(double y) toString()static void
-
Field Details
-
x
public double x -
y
public double y -
width
public double width -
height
public double height
-
-
Constructor Details
-
Rectangle
public Rectangle() -
Rectangle
public Rectangle(double w, double h) -
Rectangle
public Rectangle(double x, double y, double w, double h)
-
-
Method Details
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getWidth
public double getWidth() -
setWidth
public void setWidth(double width) -
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
set
-
set
public void set(double x, double y, double w, double h) -
getCenterX
public double getCenterX() -
getCenterY
public double getCenterY() -
isEmpty
public boolean isEmpty() -
getBounds
-
intersects
public boolean intersects(double x, double y, double width, double height) -
createIntersection
-
createUnion
-
contains
public boolean contains(double x, double y) -
contains
public boolean contains(double x, double y, double width, double height) -
union
-
intersect
-
copy
-
equals
-
hashCode
public int hashCode() -
toString
-