Download Java Application for Analysis of Lightweight
Transcript
viii. DrawVessel Extends javax.swing.JPanel, contains the override method paintComponent (Graphics d). This class displays a vessel model in a JPanel. It transforms pixel coordinates in the panel to vessel model coordinates for interaction with the graphical representation. ix. JDialogHelp Extends javax.swing.JDialog. This class is invoked by FISPATGUI and shows the help section. x. JFrameColorScheme Extends javax.swing.JFrame and part auto generated by netbeans GUI Builder. Invoked by JFrameVessel, shows the symbol explanation in explained in 6.3.4. xi. Pallette Stores colors, dashes and strokes as final statics used by DrawVessel and JFrameColorScheme. e. GUI.Listeners All classes in this package implements java.awt.event.ActionListener except TableListener and KeyListener. i. AlterCoordinatesActionListener A listener used on the popup menu that appears when the user alters the path of a network. The popup menu has the options Save, Cancel, Delete Coordinate and Delete Network which this class handles. ii. CreateNetworkListener This listener is used on the popup menu that appears when the user wants to create a new network or a new device. It handles the chosen option by invoking JFrameNewNetwork or JFrameNewDevice or resets if the user clicked on cancel. iii. DeviceListener This listener handles options from the devices submenus when the user has right clicked on room. The options are: Set Damaged, Go To, Edit, Delete and Cancel. iv. LabelListener Implements KeyListener. Invokes setIDLabel() in JFrameNewNetwork or JFrameNewDevice if an ID is typed in the JFrame. v. NetworkMenuListener This listener handles options from the network submenus when the user has right clicked on room. The options are: Set Damaged and exclude room if the network is a Ventilation object. vi. NonFunctioningByFire Listener added to the checkboxes with control options in JFrameVessel. Creates a new Control Options object if any of the checkboxes are checked/unchecked and passes the Control Options to JFrameVessel that set the to the Vessel Model. vii. TableListener Implements MouseListener. Listener added to the result table in simulate tab. Runs the double clicked simulation. f. Simulation This package contains classes that handle the single and exhaustive simulations. 53