actionListeners
Class DefaultDisplaySettingsDialogActionListener

java.lang.Object
  extended by actionListeners.DefaultDisplaySettingsDialogActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class DefaultDisplaySettingsDialogActionListener
extends java.lang.Object
implements java.awt.event.ActionListener

ActionListener for the Ok button of a ChartDisplaySettingsPanel that was instantiated using the constructor form ChartDisplaySettingsPanel.ChartDisplaySettingsPanel(Main, DisplaySettingsDialog).

When a ChartDisplaySettingsPanel is instantiated without a ChartFrame object as the last argument, the settings made in the panel are applied to the default settings in the UserPreferences. In order to do this correctly when the Ok button is pressed, the button must use this dedicated ActionListener.

See Also:
ChartSpecificDisplaySettingsDialogActionListener

Constructor Summary
DefaultDisplaySettingsDialogActionListener(DisplaySettingsDialog dialog)
          Instantiates a new default display settings dialog action listener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDisplaySettingsDialogActionListener

public DefaultDisplaySettingsDialogActionListener(DisplaySettingsDialog dialog)
Instantiates a new default display settings dialog action listener.

Parameters:
dialog - the DisplaySettingsDialog
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener