java.lang.Object
eu.hansolo.fx.geometry.Rectangle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int newx, int newy) voidbooleancontains(double cx, double cy) booleancontains(int cx, int cy) booleancontains(int cx, int cy, int cw, int ch) booleanbooleanvoidgrow(int h, int v) voidbooleanisEmpty()booleanvoidsetBounds(int x, int y, int width, int height) voidvoidvoidtranslate(int dx, int dy)
-
Field Details
-
x
public int x -
y
public int y -
width
public int width -
height
public int height
-
-
Constructor Details
-
Rectangle
public Rectangle() -
Rectangle
-
Rectangle
-
Rectangle
public Rectangle(double x, double y, double width, double height) -
Rectangle
public Rectangle(int x, int y, int width, int height) -
Rectangle
public Rectangle(int width, int height)
-
-
Method Details
-
setBounds
-
setBounds
public void setBounds(int x, int y, int width, int height) -
setBounds
-
contains
public boolean contains(double cx, double cy) -
contains
public boolean contains(int cx, int cy) -
contains
-
contains
public boolean contains(int cx, int cy, int cw, int ch) -
isOverlapping
-
intersection
-
intersectWith
-
translate
public void translate(int dx, int dy) -
toRectBounds
-
add
public void add(int newx, int newy) -
add
-
grow
public void grow(int h, int v) -
isEmpty
public boolean isEmpty() -
equals
-