All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tw.edu.ncnu.im.cnclab.JGAP.UI.GetHistoryGraphDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----tw.edu.ncnu.im.cnclab.UI.GenericDialog
                                           |
                                           +----tw.edu.ncnu.im.cnclab.JGAP.UI.GetHistoryGraphDialog

public class GetHistoryGraphDialog
extends GenericDialog
implements ActionListener, ItemListener
The GetHistoryGraphDialog class define the dialog to get the graph from history list.

Version:
0.4 Jul 8, 1999
Author:
Ding-Yi Chen
See Also:
Graph

Constructor Index

 o GetHistoryGraphDialog(JGAPFrame, String, String, boolean, int)
Construct a GetHistoryGraphDialog.
 o GetHistoryGraphDialog(JGAPFrame, String, String, boolean, String[], int)
Construct a GetHistoryGraphDialog.

Method Index

 o getArg(Object[])
Return the parameters of the dialog get.
 o getGraph()
Get result of the dialog.
 o itemStateChanged(ItemEvent)
Invoked when an item action occurs.

Constructors

 o GetHistoryGraphDialog
 protected GetHistoryGraphDialog(JGAPFrame jf,
                                 String title,
                                 String promptText,
                                 boolean isModal,
                                 int msgLength)
Construct a GetHistoryGraphDialog.

Parameters:
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
msgLength - specify the length of the message textField.
 o GetHistoryGraphDialog
 protected GetHistoryGraphDialog(JGAPFrame jf,
                                 String title,
                                 String promptText,
                                 boolean isModal,
                                 String buttonPrompt[],
                                 int msgLength)
Construct a GetHistoryGraphDialog.

Parameters:
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
buttonPrompt - the prompt of buttons.
msgLength - specify the length of the message textField.

Methods

 o itemStateChanged
 public void itemStateChanged(ItemEvent event)
Invoked when an item action occurs.

 o getGraph
 public Graph getGraph()
Get result of the dialog.

Returns:
The graph to be selected.
 o getArg
 public Object[] getArg(Object additionalArg[])
Return the parameters of the dialog get.

Parameters:
additionalArg - Additional arguments for Alogorithm.setArg(Object[])
Returns:
The parameters of the dialog get.
Overrides:
getArg in class GenericDialog

All Packages  Class Hierarchy  This Package  Previous  Next  Index