Package it.tidalwave.image.render
Class AnimatedScaleController
- java.lang.Object
-
- it.tidalwave.image.render.ScaleController
-
- it.tidalwave.image.render.AnimatedScaleController
-
public class AnimatedScaleController extends ScaleController
A specialScaleController
which performs smooth scale transitions.- Author:
- Fabrizio Giudici
-
-
Field Summary
-
Fields inherited from class it.tidalwave.image.render.ScaleController
imageRenderer
-
-
Constructor Summary
Constructors Constructor Description AnimatedScaleController(EditableImageRenderer imageRenderer)
Creates a new instance of this class, attached to the given renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRunning()
Returns true if the zoom animation is running.void
setScale(double scale, java.awt.Point pivot)
Sets the scale using a pivot point.-
Methods inherited from class it.tidalwave.image.render.ScaleController
fitToView, fitToView, getImageRenderer, getScale, getZoomFactor, setScale, setZoomFactor, showActualPixels, zoomIn, zoomOut
-
-
-
-
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 classScaleController
- Parameters:
scale
- the new scalepivot
- the pivot point (null means the center of the image)
-
-