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

Variable Index

 o defaultMsgLength
 o gC
 o showGraph
 o USE_ABOVE_GRAPH_AS_INPUT
Indicate the key index of "update current graph"

Constructor Index

 o ShowGraphWindow(JGAPFrame, Graph, String, String[], Color[])
Construct a ShowGraphWindow.

Method Index

 o actionPerformed(ActionEvent)
Invoked when an action occurs.
 o itemStateChanged(ItemEvent)
Invoked when an item action occurs.
 o paint(Graphics)
paint this window.
 o setCentralPanel()
Initite the centralPanel.

Variables

 o showGraph
 protected Graph showGraph
 o gC
 protected GraphCanvas gC[]
 o USE_ABOVE_GRAPH_AS_INPUT
 public static final int USE_ABOVE_GRAPH_AS_INPUT
Indicate the key index of "update current graph"

 o defaultMsgLength
 public static int defaultMsgLength

Constructors

 o 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.

Methods

 o setCentralPanel
 protected void setCentralPanel()
Initite the centralPanel.

Overrides:
setCentralPanel in class GenericFrame
 o itemStateChanged
 public void itemStateChanged(ItemEvent event)
Invoked when an item action occurs.

 o actionPerformed
 public void actionPerformed(ActionEvent event)
Invoked when an action occurs.

Overrides:
actionPerformed in class GenericFrame
 o paint
 public void paint(Graphics g)
paint this window.

Overrides:
paint in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index