-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.wormhole.interfaces.SlideInputManager,it.unibo.alchemist.boundary.wormhole.interfaces.ZoomManager
public final class ExponentialZoomManager extends AbstractSlideInputManager implements ZoomManager
An
ExpZoomManagerconverts the sliding of any physical/virtual device/control into a zoom rate through an exponential function (in this way I am sure to not see negative values ;-). Zoom = base ^ (amount of slides / normalization value).
-
-
Field Summary
Fields Modifier and Type Field Description public final static doubleDEF_BASE
-
Constructor Summary
Constructors Constructor Description ExponentialZoomManager(double z, double b)Same of ExponentialZoomManager but normalization value is 1. ExponentialZoomManager(double z, double b, double n)Initialize a new ExpZoomManagerinstance with the parameters in input.
-
Method Summary
Modifier and Type Method Description doublegetZoom()Gets the zoom rate. voidsetZoom(double rate)Sets the zoom rate. -
Methods inherited from class it.unibo.alchemist.boundary.wormhole.implementation.AbstractSlideInputManager
dec, inc -
Methods inherited from class it.unibo.alchemist.boundary.wormhole.interfaces.SlideInputManager
dec, inc -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExponentialZoomManager
ExponentialZoomManager(double z, double b)
Same of ExponentialZoomManager but normalization value is 1.- Parameters:
z- is the desired initial zoom rateb- is the base of the exponential function
-
ExponentialZoomManager
ExponentialZoomManager(double z, double b, double n)
Initialize a newExpZoomManagerinstance with the parameters in input.- Parameters:
z- is the desired initial zoom rateb- is the base of the exponential functionn- is the normalization value
-
-
-
-