public class RectangleDrawer
extends java.lang.Object
| Constructor and Description |
|---|
RectangleDrawer() |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.shape.Rectangle |
getRectangle() |
void |
handleMouseDragged(javafx.scene.input.MouseEvent event)
Handle a the mouse being dragged.
|
void |
handleMousePressed(javafx.scene.input.MouseEvent event)
Handle the mouse being pressed.
|
void |
reset()
Reset this Rectangle Drawer.
|
public void reset()
public void handleMousePressed(javafx.scene.input.MouseEvent event)
If primary or secondary, will move the rectangle.
If primary, will also move the bounds of the rectangle.
event - the mouse eventpublic void handleMouseDragged(javafx.scene.input.MouseEvent event)
Will move the rectangle.
event - the mouse event.public javafx.scene.shape.Rectangle getRectangle()