ZoomHandler

class ZoomHandler(zoomEnabled: Boolean = true, initialZoom: Zoom = Zoom.max(Zoom.static(), Zoom.Content), minZoom: Zoom = Zoom.Content, maxZoom: Zoom = Zoom.max(Zoom.static(Defaults.MAX_ZOOM), Zoom.Content))

Houses information on a CartesianChart’s zoom factor. Allows for zoom customization.

Parameters

zoomEnabled

whether zoom is enabled.

initialZoom

represents the initial zoom factor.

minZoom

represents the minimum zoom factor.

maxZoom

represents the maximum zoom factor.

Constructors

Link copied to clipboard
constructor(zoomEnabled: Boolean = true, initialZoom: Zoom = Zoom.max(Zoom.static(), Zoom.Content), minZoom: Zoom = Zoom.Content, maxZoom: Zoom = Zoom.max(Zoom.static(Defaults.MAX_ZOOM), Zoom.Content))

Types

Link copied to clipboard
interface Listener

Facilitates listening for zoom events.

Properties

Link copied to clipboard

The current zoom factor.

Link copied to clipboard

The range of zoom factors.

Functions

Link copied to clipboard

Adds the provided Listener.

Link copied to clipboard

Removes the provided Listener.