Class VisiFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----VisiFrame
- public class VisiFrame
- extends Frame
- implements ActionListener, ItemListener
Class definition for main display frame with menus, drawing
canvas, and message area.
- Version:
- $Revision: 1.9 $, $Date: 2000/10/30 17:05:23 $
- Author:
- John Cavanaugh
-
ABOUT
-
-
ABOUT_MENU
-
-
bottomLabel
- The label at the bottom of the frame, below the network display.
-
C_CLEAR_MENU
-
-
C_DEL_AREA_MENU
-
-
C_NEW_AREA_MENU
-
-
C_OPEN_MENU
-
-
C_REN_AREA_MENU
-
-
C_SAVE_AS_MENU
-
-
C_SAVE_MENU
-
-
canvas
- The canvas for displaying the network.
-
CONFIG_CLEAR
-
-
CONFIG_DELETE_AREA
-
-
CONFIG_NEW_AREA
-
-
CONFIG_OPEN
-
-
CONFIG_POS_AUTO
-
-
CONFIG_POS_CFG
-
-
CONFIG_RENAME_AREA
-
-
CONFIG_SAVE
-
-
CONFIG_SAVE_AS
-
-
CONNECT
-
-
CONNECT_MENU
-
-
dataDir
- Directory containing files for VisiDisplay.
-
DEBUG_01
-
-
DEBUG_01_MENU
-
-
DEBUG_02
-
-
DEBUG_02_MENU
-
-
DEBUG_03
-
-
DEBUG_03_MENU
-
-
DEBUG_04
-
-
DEBUG_04_MENU
-
-
DEBUG_05
-
-
DEBUG_05_MENU
-
-
DEFAULT_FRAME_TITLE
- Application name to display on the frame.
-
EXIT
-
-
EXIT_MENU
-
-
isApplet
- A flag indicating the execution mode.
-
main
- The application's main processing thread.
-
MENU_CNT
-
-
MENU_MAX
-
-
MENU_MIN
-
-
menuArray
- An array holding the menu items that can be
enabled and disabled
-
NET_INFO
-
-
NET_INFO_MENU
-
-
OPEN
-
-
OPEN_MENU
-
-
posCheckbox
-
-
SAVE_GIF
-
-
SAVE_GIF_MENU
-
-
SAVE_JPEG
-
-
SAVE_JPEG_MENU
-
-
view
- The view settings.
-
VIEW_MENU
-
-
VIEW_SETUP
-
-
VisiFrame(VisiMain, String, boolean)
- Constructs a frame.
-
actionPerformed(ActionEvent)
- Handle menu choices (for ActionListener interface).
-
addMenus(MenuBar, boolean)
- Set up menus in the menu bar.
-
disableMenu(int)
- Disable a menu item.
-
enableMenu(int)
- Enable a menu item.
-
exitApp()
- Terminate the application.
-
getCanvas()
- Get the display canvas.
-
getView()
- Get the user's display choices.
-
itemStateChanged(ItemEvent)
- Handle a checkbox menu item (for ItemListener interface).
-
setLabel(String)
- Set the text of the label on the bottom of the screen.
ABOUT
public static final String ABOUT
CONFIG_CLEAR
public static final String CONFIG_CLEAR
CONFIG_DELETE_AREA
public static final String CONFIG_DELETE_AREA
CONFIG_NEW_AREA
public static final String CONFIG_NEW_AREA
CONFIG_OPEN
public static final String CONFIG_OPEN
CONFIG_POS_AUTO
public static final String CONFIG_POS_AUTO
CONFIG_POS_CFG
public static final String CONFIG_POS_CFG
CONFIG_RENAME_AREA
public static final String CONFIG_RENAME_AREA
CONFIG_SAVE
public static final String CONFIG_SAVE
CONFIG_SAVE_AS
public static final String CONFIG_SAVE_AS
CONNECT
public static final String CONNECT
DEBUG_01
public static final String DEBUG_01
DEBUG_02
public static final String DEBUG_02
DEBUG_03
public static final String DEBUG_03
DEBUG_04
public static final String DEBUG_04
DEBUG_05
public static final String DEBUG_05
EXIT
public static final String EXIT
NET_INFO
public static final String NET_INFO
OPEN
public static final String OPEN
SAVE_GIF
public static final String SAVE_GIF
SAVE_JPEG
public static final String SAVE_JPEG
VIEW_SETUP
public static final String VIEW_SETUP
ABOUT_MENU
public static final int ABOUT_MENU
C_CLEAR_MENU
public static final int C_CLEAR_MENU
C_DEL_AREA_MENU
public static final int C_DEL_AREA_MENU
C_NEW_AREA_MENU
public static final int C_NEW_AREA_MENU
C_OPEN_MENU
public static final int C_OPEN_MENU
C_REN_AREA_MENU
public static final int C_REN_AREA_MENU
C_SAVE_MENU
public static final int C_SAVE_MENU
C_SAVE_AS_MENU
public static final int C_SAVE_AS_MENU
CONNECT_MENU
public static final int CONNECT_MENU
DEBUG_01_MENU
public static final int DEBUG_01_MENU
DEBUG_02_MENU
public static final int DEBUG_02_MENU
DEBUG_03_MENU
public static final int DEBUG_03_MENU
DEBUG_04_MENU
public static final int DEBUG_04_MENU
DEBUG_05_MENU
public static final int DEBUG_05_MENU
EXIT_MENU
public static final int EXIT_MENU
NET_INFO_MENU
public static final int NET_INFO_MENU
OPEN_MENU
public static final int OPEN_MENU
SAVE_GIF_MENU
public static final int SAVE_GIF_MENU
SAVE_JPEG_MENU
public static final int SAVE_JPEG_MENU
VIEW_MENU
public static final int VIEW_MENU
MENU_MIN
public static final int MENU_MIN
MENU_MAX
public static final int MENU_MAX
MENU_CNT
public static final int MENU_CNT
DEFAULT_FRAME_TITLE
public static final String DEFAULT_FRAME_TITLE
- Application name to display on the frame.
dataDir
private String dataDir
- Directory containing files for VisiDisplay.
isApplet
private boolean isApplet
- A flag indicating the execution mode. True if the code is
running as an applet in a browser, false if it is running
as a Java application.
canvas
private DisplayCanvas canvas
- The canvas for displaying the network.
view
private ViewSettings view
- The view settings. This is a set of controls that
determine how the network is displayed.
bottomLabel
private Label bottomLabel
- The label at the bottom of the frame, below the network display.
menuArray
private MenuItem menuArray[]
- An array holding the menu items that can be
enabled and disabled
main
private VisiMain main
- The application's main processing thread.
posCheckbox
public CheckboxMenuItem posCheckbox
VisiFrame
public VisiFrame(VisiMain main,
String dataDir,
boolean isApplet)
- Constructs a frame.
- Parameters:
- main - the main processing thread.
- dataDir - dirctory containing data files.
- isApplet - execution mode indicator.
setLabel
public void setLabel(String text)
- Set the text of the label on the bottom of the screen.
- Parameters:
- text - the message to be displayed.
enableMenu
public void enableMenu(int m)
- Enable a menu item.
- Parameters:
- m - the index of the menu item to be enabled.
disableMenu
public void disableMenu(int m)
- Disable a menu item.
- Parameters:
- m - the index of the menu item to be disabled.
addMenus
private void addMenus(MenuBar menuBar,
boolean active)
- Set up menus in the menu bar.
- Parameters:
- menuBar - the menu bar to add the menus to.
- active - a flag indicating whether the menus
are active.
exitApp
private void exitApp()
- Terminate the application.
getCanvas
public DisplayCanvas getCanvas()
- Get the display canvas.
- Returns:
- the display canvas.
getView
public ViewSettings getView()
- Get the user's display choices.
- Returns:
- the user's view settings.
actionPerformed
public void actionPerformed(ActionEvent e)
- Handle menu choices (for ActionListener interface).
- Parameters:
- e - the action event to be handled.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Handle a checkbox menu item (for ItemListener interface).