Sets this panel's displayed image to img
and updates preferredSize to
be equal to img
's unscaled dimensions.
Zooming transformation
Panning transformation
Increase zoom level by zDelta
.
Increase zoom level by zDelta
.
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.
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 panel that displays an image. Preferred size is initially set to the current image's unscaled dimensions.