java.lang.Object
com.example.brickpaint.AnimatedZoomOperator
Handles methods that manipulate the position and size of nodes within javafx
- Author:
- Fabian, matde
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidzoom(javafx.scene.Group group, javafx.scene.Node node, double zoomFactor, double x, double y, javafx.scene.control.ScrollPane scrollPane) handles animating/scaling a node within a 2d axis based on mouse input
-
Constructor Details
-
AnimatedZoomOperator
default constructor- Parameters:
keys- The instance of BrickKeys used for keybinds
-
-
Method Details
-
zoom
public void zoom(javafx.scene.Group group, javafx.scene.Node node, double zoomFactor, double x, double y, javafx.scene.control.ScrollPane scrollPane) handles animating/scaling a node within a 2d axis based on mouse input- Parameters:
node- The node to zoom in/outzoomFactor- Scaling value that determines how much the node is scaled with each callx- X cord from which to zoom about (Optional)y- Y cord from which to zoom about (Optional)
-