oakplot.CommandLine Class Reference

Inheritance diagram for oakplot.CommandLine:

Inheritance graph
[legend]
Collaboration diagram for oakplot.CommandLine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CommandLine ()
 CommandLine (int n)
synchronized void addEventListener (EventListener l)
synchronized void removeEventListener (EventListener l)
void eventReceived (Event event)

Protected Member Functions

void process (KeyEvent e)


Detailed Description

The CommandLine class is a JTextField which can remember the last n commands. The commands are parsed and then actioned. The CommandLine currently supports Gnuplot style commands. Any errors in the parsing of the commands are displayed back in the text field.

Author:
David Kao

Constructor & Destructor Documentation

oakplot.CommandLine.CommandLine (  ) 

Creates a new CommandLine which can change the properties of a Plottable object.

Parameters:
[in] cp CommandParser holding Plottable object
Author:
David Kao

oakplot.CommandLine.CommandLine ( int  n  ) 

Creates a new CommandLine which can change the properties of a Plot2D object. It will also hold n commands in its history

Parameters:
[in] plot Two dimensional plot
[in] n Number of historical commands
Author:
David Kao


Member Function Documentation

void oakplot.CommandLine.process ( KeyEvent  e  )  [protected]

Process key strokes entered in the CommandLine. Overrides the parent class HistoryTextField implementation.

Parameters:
[in] e KeyEvent e to process
Author:
David Kao


The documentation for this class was generated from the following file:

Generated on Sun Oct 4 22:11:55 2009 for KaoPlot by  doxygen 1.5.8