ZoomEvent

class ZoomEvent : ChartEvent

A "zoom event" is triggered when a user zoom or dezoom on a Chart. A zoom event has a zoomOrigin which is relative to the charting zone, and a zoomFactor (dezooming < 100% < zooming).

Parameters

zoomFactorX

the zoom ratio in Percent on the X dimension.

zoomFactorY

the zoom ratio in Percent on the Y dimension.

zoomOriginX

the relative zoom origin in Percent along the X-axis.

zoomOriginY

the relative zoom origin in Percent along the Y-axis.

Constructors

ZoomEvent
Link copied to clipboard
common
fun ZoomEvent(zoomOriginX: Percent, zoomOriginY: Percent, zoomFactorX: Percent, zoomFactorY: Percent)

Properties

propagate
Link copied to clipboard
common
open override val propagate: Boolean
Indicates if this ChartEvent will be propagated to the listeners.
zoomFactorX
Link copied to clipboard
common
val zoomFactorX: Percent
the zoom ratio in Percent on the X dimension.
zoomFactorY
Link copied to clipboard
common
val zoomFactorY: Percent
the zoom ratio in Percent on the Y dimension.
zoomOriginX
Link copied to clipboard
common
val zoomOriginX: Percent
the relative zoom origin in Percent along the X-axis.
zoomOriginY
Link copied to clipboard
common
val zoomOriginY: Percent
the relative zoom origin in Percent along the Y-axis.