java.lang.Object
io.github.palexdev.materialfx.utils.DragResizer
public class DragResizer extends Object
-
Field Summary
Fields Modifier and Type Field Description static shortALL_DIRECTIONSstatic shortDOWNstatic shortLEFTstatic shortNOT_DRAGGINGstatic shortRIGHTstatic shortUP -
Constructor Summary
Constructors Constructor Description DragResizer(Region region, int allowedDirection) -
Method Summary
Modifier and Type Method Description voidmakeResizable()Adds the necessary listeners to the specified region to make it resizable.protected voidmouseOver(MouseEvent event)protected voidmouseReleased(MouseEvent event)voiduninstall()Removes all the listeners from the region thus making it not resizable anymore.
-
Field Details
-
NOT_DRAGGING
public static final short NOT_DRAGGING- See Also:
- Constant Field Values
-
UP
public static final short UP- See Also:
- Constant Field Values
-
DOWN
public static final short DOWN- See Also:
- Constant Field Values
-
RIGHT
public static final short RIGHT- See Also:
- Constant Field Values
-
LEFT
public static final short LEFT- See Also:
- Constant Field Values
-
ALL_DIRECTIONS
public static final short ALL_DIRECTIONS- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
makeResizable
public void makeResizable()Adds the necessary listeners to the specified region to make it resizable. -
uninstall
public void uninstall()Removes all the listeners from the region thus making it not resizable anymore. -
mouseReleased
-
mouseOver
-