Package org.loboevolution.img
Class ImageViewerUtil
java.lang.Object
org.loboevolution.img.ImageViewerUtil
Utility methods for image viewers.
Author Kazo Csaba
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
synchronizePixelInfoStatusBars
(ImageViewer... viewers) Synchronizes thePixelInfoStatusBar
s associated with the viewers.static void
synchronizeViewers
(Collection<ImageViewer> viewers) Synchronizes the view state of multiple image viewers with respect to scroll position and resize strategy, and other properties affecting display.static void
synchronizeViewers
(ImageViewer first, ImageViewer... others) Synchronizes the view state of multiple image viewers with respect to scroll position and resize strategy, and other properties affecting display.
-
Method Details
-
synchronizeViewers
Synchronizes the view state of multiple image viewers with respect to scroll position and resize strategy, and other properties affecting display.- Parameters:
first
- the first viewerothers
- the other viewers
-
synchronizeViewers
Synchronizes the view state of multiple image viewers with respect to scroll position and resize strategy, and other properties affecting display.- Parameters:
viewers
- the viewers to synchronize
-
synchronizePixelInfoStatusBars
Synchronizes thePixelInfoStatusBar
s associated with the viewers. Viewers with a different ornull
status bar are ignored. When this function returns, thePixelInfoStatusBar
s among the viewer status bars will share the samePixelModel
, and thus display the same pixel.The default status bar of ImageViewer is a
PixelInfoStatusBar
, so this function can be used to synchronize the default status bars of viewers.- Parameters:
viewers
- the viewers
-