public final class ImageViewerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
synchronizePixelInfoStatusBars(ImageViewer... viewers)
Synchronizes the
PixelInfoStatusBars 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.
|
public static void synchronizeViewers(ImageViewer first, ImageViewer... others)
first - the first viewerothers - the other viewerspublic static void synchronizeViewers(Collection<ImageViewer> viewers)
viewers - the viewers to synchronizepublic static void synchronizePixelInfoStatusBars(ImageViewer... viewers)
PixelInfoStatusBars associated with the viewers. Viewers with a different or null
status bar are ignored. When this function returns, the PixelInfoStatusBars among the viewer status bars
will share the same PixelModel, 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.
viewers - the viewersCopyright © 2012. All Rights Reserved.