Class AnimatedScaleController


  • public class AnimatedScaleController
    extends ScaleController
    A special ScaleController which performs smooth scale transitions.
    Author:
    Fabrizio Giudici
    • Constructor Detail

      • AnimatedScaleController

        public AnimatedScaleController​(EditableImageRenderer imageRenderer)
        Creates a new instance of this class, attached to the given renderer.
        Parameters:
        imageRenderer - the image renderer
    • Method Detail

      • isRunning

        public boolean isRunning()
        Returns true if the zoom animation is running.
        Returns:
        true if animation running
      • setScale

        public void setScale​(double scale,
                             java.awt.Point pivot)
        Sets the scale using a pivot point. A null pivot means that the pivot will be placed on the center of the image.
        Overrides:
        setScale in class ScaleController
        Parameters:
        scale - the new scale
        pivot - the pivot point (null means the center of the image)