Class JaxoStatusBar

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, ChangeListener, JaxoLocalized

public class JaxoStatusBar extends JPanel implements JaxoLocalized, PropertyChangeListener, ChangeListener
Displays the status bar.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoStatusBar

      public JaxoStatusBar()
      Constructor: just calls this(null).
    • JaxoStatusBar

      public JaxoStatusBar(JaxoTab tab)
      Constructor: displays the panel containing the current mode and the panel containing the coordinates.
      Parameters:
      tab - A JaxoTab (may be null). If not null, the file flag text will be initialized with the saveFileName of the tab, and this flag panel is registered as a ChangeListener (for eventual tab changes).
  • Method Details

    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Applies a property change event.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the change event.
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Apply a change event.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - The change event.
    • getCurrentModeText

      public String getCurrentModeText()
      Returns the text that is currently shown in the mode panel.
      Returns:
      The current mode text.
    • getCurrentFileText

      public String getCurrentFileText()
      Returns the text that is currently shown in the file panel.
      Returns:
      The current file text.
    • getCurrentCoordinateText

      public String getCurrentCoordinateText()
      Returns the text that is currently shown in the coordinates panel.
      Returns:
      The current mouse location text.
    • updateLanguage

      public final void updateLanguage()
      Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
      Specified by:
      updateLanguage in interface JaxoLocalized