Paints this component.
Paints this component. Buffer swapping is prevented while the front buffer is being painted.
Updates the back buffer by applying op
to its raster, then swaps
buffers and schedules a repaint.
Increase zoom level by zDelta
.
Increase zoom level by zDelta
.
Default magnification step size when zooming in and out.
Default magnification step size when zooming in and 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 double-buffered variant of ImagePanel. Meant to alleviate some of the screen-tearing seen using the old implementation. Note that there is currently no way to resize the internal buffers once they've been created.
The
imgType
argument should be one of the constants defined in java.awt.image.BufferedImage, e.g. BufferedImage.TYPE_3BYTE_BGR.