Class DragResizer
- java.lang.Object
-
- net.officefloor.gef.common.resize.DragResizer
-
public class DragResizer extends java.lang.Object
Allows drag resizing of aRegion
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isInDraggableZone(javafx.scene.input.MouseEvent event)
Indicates if in the drag zone.static void
makeResizable(javafx.scene.layout.Region region, javafx.geometry.Orientation orientation)
Allows making theRegion
resizeable.protected void
mouseDragged(javafx.scene.input.MouseEvent event)
Handle dragging to resize.protected void
mouseOver(javafx.scene.input.MouseEvent event)
Handle mouse over.protected void
mousePressed(javafx.scene.input.MouseEvent event)
Handle start dragging.protected void
mouseReleased(javafx.scene.input.MouseEvent event)
Handle mouse released.
-
-
-
Method Detail
-
makeResizable
public static void makeResizable(javafx.scene.layout.Region region, javafx.geometry.Orientation orientation)
Allows making theRegion
resizeable.- Parameters:
region
-Region
.orientation
- Indicates whether resize horizontal or vertically.
-
isInDraggableZone
protected boolean isInDraggableZone(javafx.scene.input.MouseEvent event)
Indicates if in the drag zone.- Parameters:
event
-MouseEvent
.- Returns:
true
if in drag zone.
-
mouseOver
protected void mouseOver(javafx.scene.input.MouseEvent event)
Handle mouse over.- Parameters:
event
-MouseEvent
.
-
mousePressed
protected void mousePressed(javafx.scene.input.MouseEvent event)
Handle start dragging.- Parameters:
event
-MouseEvent
.
-
mouseDragged
protected void mouseDragged(javafx.scene.input.MouseEvent event)
Handle dragging to resize.- Parameters:
event
-MouseEvent
.
-
mouseReleased
protected void mouseReleased(javafx.scene.input.MouseEvent event)
Handle mouse released.- Parameters:
event
-MouseEvent
.
-
-