All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.JGAP.UI.GraphDialog
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.GraphDialog
- public abstract class GraphDialog
- extends GenericDialog
- implements ActionListener
The GraphDialog class define the dialog about the graph.
It provides the validity of the inputted data.
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
- See Also:
- Graph
-
graph
-
-
node1
-
-
node2
-
-
GraphDialog(Graph, Frame, String, String, boolean)
- Construct a GraphDialog without message textField.
-
GraphDialog(Graph, Frame, String, String, boolean, int)
- Construct a GraphDialog.
-
GraphDialog(Graph, Frame, String, String, boolean, String[])
- Construct a GraphDialog without message.
-
GraphDialog(Graph, Frame, String, String, boolean, String[], int)
- Construct a GraphDialog.
-
getValidNode(TextField)
- Convert text of specified TextField to node.
-
getValidNode(TextField, String)
- Convert text of specified TextField to node.
graph
protected Graph graph
node1
protected int node1
node2
protected int node2
GraphDialog
protected GraphDialog(Graph graph,
Frame fr,
String title,
String promptText,
boolean isModal)
- Construct a GraphDialog without message textField.
- Parameters:
- graph - the graph that the GraphDialog to apply.
- fr - the parent window.
- title - the window title.
- promptText - the prompt text. '\n' can be used as separator.
- isModal - whether the dialog modal.
GraphDialog
protected GraphDialog(Graph graph,
Frame fr,
String title,
String promptText,
boolean isModal,
int msgLength)
- Construct a GraphDialog.
- Parameters:
- graph - the graph that the GraphDialog to apply.
- 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.
GraphDialog
protected GraphDialog(Graph graph,
Frame fr,
String title,
String promptText,
boolean isModal,
String buttonPrompt[])
- Construct a GraphDialog without message.
- Parameters:
- graph - the graph that the GraphDialog to apply.
- 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.
GraphDialog
protected GraphDialog(Graph graph,
Frame fr,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int msgLength)
- Construct a GraphDialog.
- 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.
getValidNode
public int getValidNode(TextField tf)
- Convert text of specified TextField to node.
- Parameters:
- tf - The specified TextField.
- Returns:
- The node converted from the specified Textfield;
NUL if such node exist.
- See Also:
- NUL
getValidNode
public int getValidNode(TextField tf,
String fieldStandFor)
- Convert text of specified TextField to node.
- Parameters:
- tf - The specified TextField
- Returns:
- The node converted from the specified Textfield;
NUL if such node exist.
- See Also:
- NUL
All Packages Class Hierarchy This Package Previous Next Index