All Packages Class Hierarchy This Package Previous Next Index
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
|
+----tw.edu.ncnu.im.cnclab.JGAP.UI.EdgeDialog
EdgeDialog class is used to get the input of edges/
It provides the validity of the inputted data.
protected TextField fromField
protected TextField toField
protected TextField edgeWeightField
public static final int TRUE
public static final int NEVER_MIND
public static final int FALSE
protected static String defaultButtonPrompt[]
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal)
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal,
int chkEdgeExist)
TRUE if the inputed edge must exist;
NEVERMIND if need not care whether edge exist;
FALSE if the inputed edge must not exist.
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal,
int chkEdgeExist,
boolean inputEdgeWeight)
TRUE if the inputed edge must exist;
NEVERMIND if need not care whether edge exist;
FALSE if the inputed edge must not exist.
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int chkEdgeExist)
TRUE if the inputed edge must exist;
NEVERMIND if need not care whether edge exist;
FALSE if the inputed edge must not exist.
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int chkEdgeExist,
boolean inputEdgeWeight)
TRUE if the inputed edge must exist;
NEVERMIND if need not care whether edge exist;
FALSE if the inputed edge must not exist.
public EdgeDialog(Graph graph,
Frame dw,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int msgLength,
int chkEdgeExist,
boolean inputEdgeWeight)
TRUE if the inputed edge must exist;
NEVERMIND if need not care whether edge exist;
FALSE if the inputed edge must not exist.
protected void setCentralPanel()
protected boolean checkEdgeValid()
true if the inputed edge valid ; false otherwise.
public boolean checkFormat()
It returns true itself. Keep it alone if check is not required.
true if inputs is valid; false if otherwise.
public int getFromNode()
public int getToNode()
public double getEdgeWeight()
public Object[] getArg(Object additionalArg[])
Alogorithm.setArg(Object[])
Object[]{ specified_edge ,additionArg[0],additionArg[1],..});
otherwise , Object[]{ additionalArg[0], additionalArg[1],... };
All Packages Class Hierarchy This Package Previous Next Index