Class StatusBar

java.lang.Object
org.loboevolution.img.StatusBar
Direct Known Subclasses:
PixelInfoStatusBar

public abstract class StatusBar extends Object
Abstract superclass for status bars of the image viewer. Author Kazo Csaba
  • Constructor Details

    • StatusBar

      public StatusBar()
  • Method Details

    • getComponent

      public abstract JComponent getComponent()
      Returns the status bar component that can be added to the image viewer GUI.
      Returns:
      the status bar component
    • getImageViewer

      public final ImageViewer getImageViewer()
      Returns the image viewer that this status bar belongs to.
      Returns:
      the current image viewer, or null if there is none
    • setImageViewer

      public final void setImageViewer(ImageViewer imageViewer)

      Setter for the field imageViewer.

      Parameters:
      imageViewer - a ImageViewer object.
    • register

      protected void register(ImageViewer viewer)
      Called when this status bar is added to an image viewer. Subclasses can override this method to register listeners.
      Parameters:
      viewer - the new viewer associated with this status bar
    • unregister

      protected void unregister(ImageViewer viewer)
      Called when this status bar is removed from an image viewer. Subclasses can override this method to remove listeners.
      Parameters:
      viewer - the viewer that this status bar is removed from