java.lang.Object
io.github.palexdev.materialfx.beans.CustomBounds
JavaFX allows you to create custom
Bounds objects, see BoundingBox, the thing is
that it automatically computes the max X/Y/Z values. This can be quite unfortunate in some rare
cases because maybe you need some kind of special bounds, this bean is specifically for those
cases, it allows creating custom bounds.
An example of that is in the MFXNotificationCenterSystem class, there custom bounds
are created to take into account the coordinates of the bell icon and the entire width/height of the
notification center. Like I said tough, cases like that are quite rare.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomBounds(double minX, double minY, double maxX, double maxY, double width, double height) CustomBounds(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, double width, double height) -
Method Summary
-
Constructor Details
-
CustomBounds
public CustomBounds(double minX, double minY, double maxX, double maxY, double width, double height) -
CustomBounds
public CustomBounds(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, double width, double height)
-
-
Method Details
-
from
-
getMinX
public double getMinX() -
getMinY
public double getMinY() -
getMinZ
public double getMinZ() -
getMaxX
public double getMaxX() -
getMaxY
public double getMaxY() -
getMaxZ
public double getMaxZ() -
getWidth
public double getWidth() -
getHeight
public double getHeight()
-