|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectactionListeners.ChartSpecificDisplaySettingsDialogActionListener
public class ChartSpecificDisplaySettingsDialogActionListener
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.
DefaultDisplaySettingsDialogActionListener| Field Summary | |
|---|---|
private Chart |
chart
The chart. |
private ChartFrame |
chartFrame
The chart frame. |
private DisplaySettingsDialog |
dialog
The dialog. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
| 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)
|
private void |
log(java.lang.String message)
Prints debug information to stdout when printLog is set to true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final boolean printLog
private DisplaySettingsDialog dialog
private Chart chart
private ChartFrame chartFrame
| Constructor Detail |
|---|
public ChartSpecificDisplaySettingsDialogActionListener(Main mainWindow,
DisplaySettingsDialog dialog,
Chart chart,
ChartFrame chartFrame)
mainWindow - the main windowdialog - the dialogchart - the chartchartFrame - the chart frame| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerprivate void log(java.lang.String message)
message - the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||