Package org.loboevolution.img
Class StatusBar
java.lang.Object
org.loboevolution.img.StatusBar
- Direct Known Subclasses:
PixelInfoStatusBar
Abstract superclass for status bars of the image viewer.
Author Kazo Csaba
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract JComponent
Returns the status bar component that can be added to the image viewer GUI.final ImageViewer
Returns the image viewer that this status bar belongs to.protected void
register
(ImageViewer viewer) Called when this status bar is added to an image viewer.final void
setImageViewer
(ImageViewer imageViewer) Setter for the field imageViewer.protected void
unregister
(ImageViewer viewer) Called when this status bar is removed from an image viewer.
-
Constructor Details
-
StatusBar
public StatusBar()
-
-
Method Details
-
getComponent
Returns the status bar component that can be added to the image viewer GUI.- Returns:
- the status bar component
-
getImageViewer
Returns the image viewer that this status bar belongs to.- Returns:
- the current image viewer, or null if there is none
-
setImageViewer
Setter for the field imageViewer.
- Parameters:
imageViewer
- aImageViewer
object.
-
register
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
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
-