java.lang.Object
io.github.palexdev.materialfx.utils.DragResizer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Installs the necessary Mouse handlers to the specifiedRegion
to make it resizable.setAllowedDirection
(DragResizer.Direction allowedDirection) setHeightConstraintFunction
(Function<Region, Double> heightConstraintFunction) setResizeMargin
(double resizeMargin) setWidthConstraintFunction
(Function<Region, Double> widthConstraintFunction)
-
Constructor Details
-
DragResizer
-
-
Method Details
-
makeResizable
Installs the necessary Mouse handlers to the specifiedRegion
to make it resizable. -
uninstall
-
getResizeMargin
public double getResizeMargin()- Returns:
- the margin around the
Region
that a user can click in to start resizing it
-
setResizeMargin
-
getWidthConstraintFunction
- Returns:
- the function used to compute the minimum width the region can reach, values won't go below the function's result
-
setWidthConstraintFunction
-
getHeightConstraintFunction
- Returns:
- the function used to compute the minimum height the region can reach, values won't go below the function's result
-
setHeightConstraintFunction
-
getAllowedDirection
- Returns:
- the allowed resize directions
-
setAllowedDirection
-