LinearZoomManager

A LinearZoomManager converts the sliding of any physical/virtual device/control into a zoom rate through a linear function. Zoom = amount of slides * rate.

Constructors

Link copied to clipboard
constructor(z: Double)
Same of LinearZoomManager but rate is 1, and minimum and maximum are +/- MAX_VALUE.
constructor(zoom: Double, rate: Double, min: Double, max: Double)
Initialize a new LinearZoomManager instance with the parameters in input.

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(z: Double)
Sets the zoom rate.