All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.JGAP.UI.ShowGraphWindow
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----tw.edu.ncnu.im.cnclab.UI.GenericFrame
|
+----tw.edu.ncnu.im.cnclab.JGAP.UI.ShowGraphWindow
- public class ShowGraphWindow
- extends GenericFrame
- implements ActionListener, ItemListener
The ShowGraphWindow class show the graph
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
-
defaultMsgLength
-
-
gC
-
-
showGraph
-
-
USE_ABOVE_GRAPH_AS_INPUT
- Indicate the key index of "update current graph"
-
ShowGraphWindow(JGAPFrame, Graph, String, String[], Color[])
- Construct a ShowGraphWindow.
-
actionPerformed(ActionEvent)
- Invoked when an action occurs.
-
itemStateChanged(ItemEvent)
- Invoked when an item action occurs.
-
paint(Graphics)
- paint this window.
-
setCentralPanel()
- Initite the centralPanel.
showGraph
protected Graph showGraph
gC
protected GraphCanvas gC[]
USE_ABOVE_GRAPH_AS_INPUT
public static final int USE_ABOVE_GRAPH_AS_INPUT
- Indicate the key index of "update current graph"
defaultMsgLength
public static int defaultMsgLength
ShowGraphWindow
public ShowGraphWindow(JGAPFrame parent,
Graph showGraph,
String algorName,
String legendPrompt[],
Color legendColor[])
- Construct a ShowGraphWindow.
- Parameters:
- parent - The main window of JGAP.
- showGraph - The graph to show.
- algorName - The name of the algorithm.
- legendPrompt - Indicate the type of edges.
- legendColor - The edge color indicate the type of edges.
setCentralPanel
protected void setCentralPanel()
- Initite the centralPanel.
- Overrides:
- setCentralPanel in class GenericFrame
itemStateChanged
public void itemStateChanged(ItemEvent event)
- Invoked when an item action occurs.
actionPerformed
public void actionPerformed(ActionEvent event)
- Invoked when an action occurs.
- Overrides:
- actionPerformed in class GenericFrame
paint
public void paint(Graphics g)
- paint this window.
- Overrides:
- paint in class Container
All Packages Class Hierarchy This Package Previous Next Index