Default zoom/unzoom increment used by zoomIn
and zoomOut
.
Default zoom/unzoom increment used by zoomIn
and zoomOut
. When the
ZoomType is Additive, this value is added to or substracted from the
current zoomLevel
. In multiplicative mode, zoomLevel
is multipled by
zDelta
on zooming in or by its reciprocal on zooming out.
Increase zoom level by zDelta
.
Increase zoom level by zDelta
.
Decrease zoom level by zDelta
.
Decrease zoom level by zDelta
.
Controls how zDelta is applied to the current zoom level.
Controls how zDelta is applied to the current zoom level. In Additive, a delta is added to the current zoom level; in Multiplicative mode, the zoom level is multiplied by delta when zooming in, and by its reciprocal when zooming out.
Default zoom type is additive. If you change it to multiplicative, you should probably ensure that the default zDelta is something other than 1f, as multiplying by one probably won't do anything.
A mixin for GUI classes that support zoom operations. This trait defines a cogdebugger.FloatProperty
ZoomLevel
that clients can make use of to track and save zoom level.There are two ways to make something happen in response to
ZoomLevel
changing: one is tolistenTo
the property and add a reaction for cogdebugger.PropertyValueChanged events. The other is to install a Swing action on the property itself.