Class AnimatedZoomOperator

java.lang.Object
com.example.brickpaint.AnimatedZoomOperator

public class AnimatedZoomOperator extends Object
Handles methods that manipulate the position and size of nodes within javafx
Author:
Fabian, matde
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnimatedZoomOperator

      public AnimatedZoomOperator(BrickKeys keys)
      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/out
      zoomFactor - Scaling value that determines how much the node is scaled with each call
      x - X cord from which to zoom about (Optional)
      y - Y cord from which to zoom about (Optional)