actionListeners
Class ChartFrameOptionsMenuActionListener

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

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

ActionListener that is used for a ChartFrameOptionsMenu.


Field Summary
private  Chart chart
          The chart.
private  ChartFrame chartFrame
          The chart frame.
private  Main mainWindow
          The main window.
(package private) static boolean printLog
          Flag to enable debug message printing for this class.
 
Constructor Summary
ChartFrameOptionsMenuActionListener(Main mainWindow, Chart chart, ChartFrame chartFrame)
          Instantiates a new chart frame options menu 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

mainWindow

private Main mainWindow
The main window.


printLog

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

See Also:
Constant Field Values

chart

private Chart chart
The chart.


chartFrame

private ChartFrame chartFrame
The chart frame.

Constructor Detail

ChartFrameOptionsMenuActionListener

public ChartFrameOptionsMenuActionListener(Main mainWindow,
                                           Chart chart,
                                           ChartFrame chartFrame)
Instantiates a new chart frame options menu action listener.

Parameters:
mainWindow - the main window
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

log

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

Parameters:
message - the message