actionListeners
Class ChartSpecificDisplaySettingsDialogActionListener

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

public class ChartSpecificDisplaySettingsDialogActionListener
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, ChartFrame).

When a ChartDisplaySettingsPanel is instantiated with a ChartFrame object as the last argument, the settings made in the panel are applied to that specific Chart, rather than 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:
DefaultDisplaySettingsDialogActionListener

Constructor Summary
ChartSpecificDisplaySettingsDialogActionListener(Main mainWindow, DisplaySettingsDialog dialog, Chart chart, ChartFrame chartFrame)
          Instantiates a new chart specific 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

ChartSpecificDisplaySettingsDialogActionListener

public ChartSpecificDisplaySettingsDialogActionListener(Main mainWindow,
                                                        DisplaySettingsDialog dialog,
                                                        Chart chart,
                                                        ChartFrame chartFrame)
Instantiates a new chart specific display settings dialog action listener.

Parameters:
mainWindow - the main window
dialog - the dialog
chart - the chart
chartFrame - the chart frame
Method Detail

actionPerformed

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