Class JaxoMiscButtons

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

public class JaxoMiscButtons extends JPanel implements PropertyChangeListener, JaxoLocalized
Responsible for displaying and modifying the buttons of the misc button menu.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoMiscButtons

      public JaxoMiscButtons()
      Constructor: lays out the misc button panel.
  • Method Details

    • propertyChange

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

      public final void addActionListener(ActionListener l)
      Adds the given ActionListener to all buttons in this panel.
      Parameters:
      l - The ActionListener to add.
    • pressButton

      public final void pressButton(int mode)
      Sets the specified button as pressed. If mode is not a misc mode or a vertex mode, all buttons are set as not pressed.
      Parameters:
      mode - The mode specifying the button to be pressed, as defined in JaxoConstants.
    • setDefault

      public final void setDefault(int mode)
      Set the button corresponding to mode as default. If mode is not a misc mode, all buttons are set as not default.
      Parameters:
      mode - The button to set as default.
    • 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