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 voidsynchronizePixelInfoStatusBars(ImageViewer... viewers) Synchronizes thePixelInfoStatusBars associated with the viewers.static voidsynchronizeViewers(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 voidsynchronizeViewers(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 thePixelInfoStatusBars associated with the viewers. Viewers with a different ornullstatus bar are ignored. When this function returns, thePixelInfoStatusBars 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
-