Class ImageViewerUtil

java.lang.Object
org.loboevolution.img.ImageViewerUtil

public final class ImageViewerUtil extends Object
Utility methods for image viewers. Author Kazo Csaba
  • Method Details

    • synchronizeViewers

      public 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.
      Parameters:
      first - the first viewer
      others - the other viewers
    • synchronizeViewers

      public 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.
      Parameters:
      viewers - the viewers to synchronize
    • synchronizePixelInfoStatusBars

      public static void synchronizePixelInfoStatusBars(ImageViewer... viewers)
      Synchronizes the 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.

      Parameters:
      viewers - the viewers