actionListeners
Class ChartDisplaySettingsActionListener

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

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

ActionListener for a ChartDisplaySettingsPanel that allows to modify the Display Settings of a Chart.


Field Summary
private  java.awt.Color activeDesignColor
          The active design color.
private  java.awt.Color backGroundColor
          The Chart background color.
private  java.awt.Color filterColor
          The filter color.
private  java.awt.Color filteredDesignColor
          The filtered design color.
private  ChartDisplaySettingsPanel panel
          The panel on which the settings controls are located.
(package private) static boolean printLog
          Flag to enable debug message printing for this class.
private  boolean showDesignIDs
          The show design IDs flag.
private  boolean showFilteredDesigns
          The show filtered designs flag.
private  UserPreferences userPreferences
          The user preferences.
 
Constructor Summary
ChartDisplaySettingsActionListener(Main mainWindow, ChartDisplaySettingsPanel panel)
          Instantiates a new chart display settings action listener to edit default settings.
ChartDisplaySettingsActionListener(Main mainWindow, ChartDisplaySettingsPanel panel, Chart chart)
          Instantiates a new chart display settings action listener to edit settings for a specific chart.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.awt.Color getActiveDesignColor()
          Gets the active design color.
 java.awt.Color getBackGroundColor()
          Gets the back ground color.
 java.awt.Color getFilterColor()
          Gets the filter color.
 java.awt.Color getFilteredDesignColor()
          Gets the filtered design color.
 boolean isShowDesignIDs()
          Checks if design IDs are shown.
 boolean isShowFilteredDesigns()
          Checks if filtered designs are shown.
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

printLog

static final boolean printLog
Flag to enable debug message printing for this class.

See Also:
Constant Field Values

userPreferences

private UserPreferences userPreferences
The user preferences.


panel

private ChartDisplaySettingsPanel panel
The panel on which the settings controls are located.


backGroundColor

private java.awt.Color backGroundColor
The Chart background color.

See Also:
Chart.getBackGroundColor()

activeDesignColor

private java.awt.Color activeDesignColor
The active design color.

See Also:
Chart.getDefaultDesignColor(boolean)

filteredDesignColor

private java.awt.Color filteredDesignColor
The filtered design color.

See Also:
Chart.getDefaultDesignColor(boolean)

filterColor

private java.awt.Color filterColor
The filter color.

See Also:
Chart.getFilterColor()

showFilteredDesigns

private boolean showFilteredDesigns
The show filtered designs flag.

See Also:
Chart.isShowFilteredDesigns()

showDesignIDs

private boolean showDesignIDs
The show design IDs flag.

See Also:
Chart.isShowDesignIDs()
Constructor Detail

ChartDisplaySettingsActionListener

public ChartDisplaySettingsActionListener(Main mainWindow,
                                          ChartDisplaySettingsPanel panel)
Instantiates a new chart display settings action listener to edit default settings.

Parameters:
mainWindow - the main window
panel - the panel

ChartDisplaySettingsActionListener

public ChartDisplaySettingsActionListener(Main mainWindow,
                                          ChartDisplaySettingsPanel panel,
                                          Chart chart)
Instantiates a new chart display settings action listener to edit settings for a specific chart.

Parameters:
mainWindow - the main window
panel - the panel
chart - the chart
Method Detail

actionPerformed

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

log

private void log(java.lang.String message)
Prints debug information to stdout when printLog is set to true.

Parameters:
message - the message

getActiveDesignColor

public java.awt.Color getActiveDesignColor()
Gets the active design color.

Returns:
the active design color

getBackGroundColor

public java.awt.Color getBackGroundColor()
Gets the back ground color.

Returns:
the back ground color

getFilterColor

public java.awt.Color getFilterColor()
Gets the filter color.

Returns:
the filter color

getFilteredDesignColor

public java.awt.Color getFilteredDesignColor()
Gets the filtered design color.

Returns:
the filtered design color

isShowDesignIDs

public boolean isShowDesignIDs()
Checks if design IDs are shown.

Returns:
true, if design IDs are shown.

isShowFilteredDesigns

public boolean isShowFilteredDesigns()
Checks if filtered designs are shown.

Returns:
true, if filtered designs are shown.