Class JaxoParticleButtons

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

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

    • JaxoParticleButtons

      public JaxoParticleButtons()
      Constructor: lays out the particle button panel.
  • Method Details

    • addActionListener

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

      public final void setDefault(int mode)
      Set the button corresponding to mode as default. If mode is not a particle mode, all buttons are set as not default.
      Parameters:
      mode - The button to set as default.
    • pressButton

      public final void pressButton(int mode)
      Sets the specified button as pressed. If mode is not a particle mode, all buttons are set as not pressed.
      Parameters:
      mode - The mode specifying the button to be pressed, as defined in JaxoConstants.
    • 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