java.lang.Object
eu.hansolo.fx.geometry.BaseBounds
eu.hansolo.fx.geometry.RectBounds
-
Constructor Summary
ConstructorsConstructorDescriptionRectBounds(double minX, double minY, double maxX, double maxY) RectBounds(Rectangle other) RectBounds(RectBounds other) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double x, double y) voidadd(double x, double y, double z) voidadd(eu.hansolo.toolboxfx.geom.Point p) booleancontains(double x, double y) booleancontains(double x, double y, double width, double height) booleancontains(eu.hansolo.toolboxfx.geom.Point p) copy()deriveWithNewBounds(double minX, double minY, double maxX, double maxY) deriveWithNewBounds(BaseBounds other) deriveWithNewBounds(Rectangle other) deriveWithNewBoundsAndSort(double minX, double minY, double maxX, double maxY) deriveWithPadding(double horizontal, double vertical) deriveWithUnion(BaseBounds other) booleandisjoint(double x, double y, double width, double height) booleandisjoint(RectBounds other) booleandoublegetDepth()doubleeu.hansolo.toolboxfx.geom.PointgetMax(eu.hansolo.toolboxfx.geom.Point max) doublegetMaxX()doublegetMaxY()eu.hansolo.toolboxfx.geom.PointgetMin(eu.hansolo.toolboxfx.geom.Point min) doublegetMinX()doublegetMinY()doublegetMinZ()doublegetWidth()voidgrow(double h, double v) booleanintersects(double x, double y, double width, double height) booleanintersects(BaseBounds other) voidintersectWith(double minX, double minY, double maxX, double maxY) voidintersectWith(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) voidintersectWith(BaseBounds other) voidintersectWith(Rectangle other) booleanisEmpty()voidroundOut()final voidsetBounds(double minX, double minY, double maxX, double maxY) final voidsetBounds(RectBounds other) voidsetBoundsAndSort(double minX, double minY, double maxX, double maxY) voidsetBoundsAndSort(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) voidsetBoundsAndSort(eu.hansolo.toolboxfx.geom.Point p1, eu.hansolo.toolboxfx.geom.Point p2) voidsetMaxX(double maxX) voidsetMaxY(double maxY) voidsetMinX(double minX) voidsetMinY(double minY) protected voidtoString()voidtranslate(double x, double y, double z) voidunionWith(double minX, double minY, double maxX, double maxY) voidunionWith(RectBounds other) Methods inherited from class eu.hansolo.fx.geometry.BaseBounds
getInstance
-
Constructor Details
-
RectBounds
public RectBounds() -
RectBounds
public RectBounds(double minX, double minY, double maxX, double maxY) -
RectBounds
-
RectBounds
-
-
Method Details
-
copy
- Specified by:
copyin classBaseBounds
-
getWidth
public double getWidth()- Specified by:
getWidthin classBaseBounds
-
getHeight
public double getHeight()- Specified by:
getHeightin classBaseBounds
-
getDepth
public double getDepth() -
getMinX
public double getMinX()- Specified by:
getMinXin classBaseBounds
-
setMinX
public void setMinX(double minX) -
getMinY
public double getMinY()- Specified by:
getMinYin classBaseBounds
-
setMinY
public void setMinY(double minY) -
getMinZ
public double getMinZ() -
getMaxX
public double getMaxX()- Specified by:
getMaxXin classBaseBounds
-
setMaxX
public void setMaxX(double maxX) -
getMaxY
public double getMaxY()- Specified by:
getMaxYin classBaseBounds
-
setMaxY
public void setMaxY(double maxY) -
getMin
public eu.hansolo.toolboxfx.geom.Point getMin(eu.hansolo.toolboxfx.geom.Point min) - Specified by:
getMinin classBaseBounds
-
getMax
public eu.hansolo.toolboxfx.geom.Point getMax(eu.hansolo.toolboxfx.geom.Point max) - Specified by:
getMaxin classBaseBounds
-
deriveWithUnion
- Specified by:
deriveWithUnionin classBaseBounds
-
deriveWithNewBounds
- Specified by:
deriveWithNewBoundsin classBaseBounds
-
deriveWithNewBounds
- Specified by:
deriveWithNewBoundsin classBaseBounds
-
deriveWithNewBounds
- Specified by:
deriveWithNewBoundsin classBaseBounds
-
deriveWithNewBoundsAndSort
- Specified by:
deriveWithNewBoundsAndSortin classBaseBounds
-
setBounds
-
setBounds
public final void setBounds(double minX, double minY, double maxX, double maxY) -
setBoundsAndSort
public void setBoundsAndSort(double minX, double minY, double maxX, double maxY) - Specified by:
setBoundsAndSortin classBaseBounds
-
setBoundsAndSort
public void setBoundsAndSort(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) -
setBoundsAndSort
public void setBoundsAndSort(eu.hansolo.toolboxfx.geom.Point p1, eu.hansolo.toolboxfx.geom.Point p2) - Specified by:
setBoundsAndSortin classBaseBounds
-
unionWith
-
unionWith
public void unionWith(double minX, double minY, double maxX, double maxY) -
add
public void add(double x, double y, double z) -
add
public void add(double x, double y) - Specified by:
addin classBaseBounds
-
add
public void add(eu.hansolo.toolboxfx.geom.Point p) - Specified by:
addin classBaseBounds
-
intersects
public boolean intersects(double x, double y, double width, double height) - Specified by:
intersectsin classBaseBounds
-
intersects
-
intersectWith
- Specified by:
intersectWithin classBaseBounds
-
intersectWith
- Specified by:
intersectWithin classBaseBounds
-
intersectWith
public void intersectWith(double minX, double minY, double maxX, double maxY) - Specified by:
intersectWithin classBaseBounds
-
intersectWith
public void intersectWith(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) -
contains
public boolean contains(eu.hansolo.toolboxfx.geom.Point p) - Specified by:
containsin classBaseBounds
-
contains
public boolean contains(double x, double y) - Specified by:
containsin classBaseBounds
-
contains
public boolean contains(double x, double y, double width, double height) -
disjoint
public boolean disjoint(double x, double y, double width, double height) - Specified by:
disjointin classBaseBounds
-
disjoint
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classBaseBounds
-
roundOut
public void roundOut()- Specified by:
roundOutin classBaseBounds
-
grow
public void grow(double h, double v) -
deriveWithPadding
- Specified by:
deriveWithPaddingin classBaseBounds
-
makeEmpty
- Specified by:
makeEmptyin classBaseBounds
-
sortMinMax
protected void sortMinMax()- Specified by:
sortMinMaxin classBaseBounds
-
translate
public void translate(double x, double y, double z) - Specified by:
translatein classBaseBounds
-
equals
-
toString
-