-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.wormhole.interfaces.SlideInputManager,it.unibo.alchemist.boundary.wormhole.interfaces.ZoomManager
public final class LinearZoomManager extends AbstractSlideInputManager implements ZoomManager
A LinearZoomManager converts the sliding of any physical/virtual device/control into a zoom rate through a linear function. Zoom = amount of slides * rate.
-
-
Constructor Summary
Constructors Constructor Description LinearZoomManager(double z)Same of LinearZoomManager but rate is 1, and minimum and maximum are +/- MAX_VALUE. LinearZoomManager(double zoom, double rate, double min, double max)Initialize a new LinearZoomManager instance with the parameters in input.
-
Method Summary
Modifier and Type Method Description doublegetZoom()Gets the zoom rate. voidsetZoom(double z)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
-
LinearZoomManager
LinearZoomManager(double z)
Same of LinearZoomManager but rate is 1, and minimum and maximum are +/- MAX_VALUE.- Parameters:
z- is the desired initial zoom
-
LinearZoomManager
LinearZoomManager(double zoom, double rate, double min, double max)
Initialize a new LinearZoomManager instance with the parameters in input.- Parameters:
zoom- is the desired initial zoomrate- is the linear factormin- minimum allowed zoommax- maximum allowed zoom
-
-
-
-