ExponentialZoomManager

An ExpZoomManager converts 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).

Constructors

Link copied to clipboard
constructor(z: Double, b: Double)
Same of ExponentialZoomManager but normalization value is 1.
constructor(z: Double, b: Double, n: Double)
Initialize a new ExpZoomManager instance with the parameters in input.

Properties

Link copied to clipboard
val DEF_BASE: Double = 1.1
DEF_BASE = "DEFault BASE".

Functions

Link copied to clipboard
abstract fun dec(value: Double)
fun dec(val: Double)
Decreases the total amount of slides.
Link copied to clipboard
open fun getZoom(): Double
Gets the zoom rate.
Link copied to clipboard
abstract fun inc(value: Double)
fun inc(val: Double)
Increases the total amount of slides.
Link copied to clipboard
open fun setZoom(rate: Double)
Sets the zoom rate.