public class HubFrame
extends JFrame
implements chargerlib.ManagedWindow
Modifier and Type | Field and Description |
---|---|
(package private) JLabel |
AvailLabel |
(package private) chargerlib.CGButton |
BrowseButton |
(package private) JLabel |
CGLabel |
(package private) JLabel |
CharGerLogoLabel |
(package private) chargerlib.CGButton |
CloseAllButton |
(package private) JLabel |
CopyrightNotice |
static DatabaseFrame |
DataBaseLinkToolWindow |
(package private) JLabel |
EmailAddressLabel |
(package private) JLabel |
freeMemory |
(package private) JList |
GraphDisplayList |
(package private) JScrollPane |
GraphDisplayPane |
(package private) JTextField |
GraphFolderField |
(package private) JLabel |
GraphFolderLabel |
long |
GraphFolderLastModified
time value at which the graphs folder was modified; used in keeping the
graph list up to date.
|
(package private) Frame |
hub |
(package private) JLabel |
HubLabel |
(package private) JLabel |
icon |
(package private) JMenuBar |
mainMenuBar |
(package private) JMenuItem |
menuConvertCGXML |
(package private) JMenu |
menuFile |
(package private) JMenuItem |
menuFileNewGraph |
(package private) JMenuItem |
menuFileOpen |
(package private) JMenuItem |
menuFileOpenCGIF |
(package private) JMenuItem |
menuFilePreferences |
(package private) JMenu |
menuTools |
(package private) JMenuItem |
menuToolsCraftTool |
(package private) JMenuItem |
menuToolsDatabaseLinkingTool |
(package private) JMenuItem |
menuToolsQuit |
Action |
MMTeamAnalysisAction |
private boolean |
mShown |
(package private) chargerlib.CGButton |
NewWindowButton |
JMenuItem |
NewWindowItem |
(package private) chargerlib.CGButton |
OpenAllButton |
(package private) chargerlib.CGButton |
OpenButton |
(package private) chargerlib.CGButton |
QuitButton |
(package private) chargerlib.CGButton |
SaveAllAsCGIFButton |
(package private) JLabel |
totalMemory |
(package private) JLabel |
usedMemory |
(package private) JLabel |
VersionInfo |
(package private) JButton |
WebAddressButton |
(package private) JMenu |
windowMenu |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
HubFrame() |
Modifier and Type | Method and Description |
---|---|
void |
addModuleMenuItem(ModulePlugin module)
Method for adding external modules to the Tools menu.
|
void |
addNotify() |
void |
BrowseButtonActionPerformed(ActionEvent e) |
void |
CloseAllButtonActionPerformed(ActionEvent e) |
JPanel |
getAboutPanel() |
static List<Class<?>> |
getClassesInPackage(String packageName) |
String |
getFilename() |
JMenu |
getHelpMenu()
Create a fully populated help menu suitable for adding to a menu bar.
|
String |
getMenuItemLabel()
Part of the ManagedWindow interface
|
ArrayList<Class> |
getPluginClasses() |
JMenu |
getWindowMenu() |
void |
GraphDisplayListItemStateChanged(ListSelectionEvent e)
Doesn't do anything while user is making selections
|
void |
GraphDisplayListMouseClicked(MouseEvent e) |
void |
initComponents() |
void |
loadModulePlugins()
Gets an instance of the plugin class for every external module.
|
void |
menuFileNewGraphActionPerformed(ActionEvent e) |
void |
menuFileOpenActionPerformed(ActionEvent e)
Loads a graph into a new edit frame.
|
void |
menuFileOpenCGIFActionPerformed(ActionEvent e) |
void |
menuFilePreferencesActionPerformed(ActionEvent e) |
void |
menuToolsDatabaseLinkingToolActionPerformed(ActionEvent e) |
void |
menuToolsQuitActionPerformed(ActionEvent e) |
void |
NewWindowButtonActionPerformed(ActionEvent e) |
void |
OpenAllButtonActionPerformed(ActionEvent e) |
void |
OpenButtonActionPerformed(ActionEvent e)
Get all the selected file names, and convert them from objects to
strings, then open them
|
void |
openCGIFActionPerformed(ActionEvent e) |
void |
openNamedFiles(String[] files)
Opens a list of files, each in its own editor window.
|
void |
performActionBackToHub()
Go back to the master frame main window, forcing it to be updated.
|
void |
performActionMMTeamAnalysis()
Instantiates an MProject, which then spawns all the other windows and
classes needed for the MMAT.
|
void |
QuitButtonActionPerformed(ActionEvent e) |
void |
refresh()
Updates all the menus and displays in the master frame, but not
responsible for repaint.
|
void |
refreshFileList()
re-reads the directory to re-display the list of graph files in the user
directory
|
void |
refreshToolsMenu()
Called at startup, and whenever the mix of tools changes.
|
void |
SaveAllAsCGIFButtonActionPerformed()
Convenience method for calling FileToGraph repeatedly for all files in
the displaylist.
|
void |
thisFocusGained(FocusEvent e) |
void |
thisWindowActivated(WindowEvent e) |
void |
thisWindowClosing(WindowEvent e) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public JMenuItem NewWindowItem
public static DatabaseFrame DataBaseLinkToolWindow
public long GraphFolderLastModified
JLabel AvailLabel
JList GraphDisplayList
JScrollPane GraphDisplayPane
chargerlib.CGButton OpenAllButton
chargerlib.CGButton CloseAllButton
chargerlib.CGButton SaveAllAsCGIFButton
chargerlib.CGButton BrowseButton
chargerlib.CGButton OpenButton
JMenuBar mainMenuBar
JMenu menuFile
JMenuItem menuFileNewGraph
JMenuItem menuFileOpen
JMenuItem menuFileOpenCGIF
JMenuItem menuFilePreferences
JMenuItem menuToolsQuit
JMenuItem menuConvertCGXML
JMenu menuTools
JMenuItem menuToolsDatabaseLinkingTool
JMenuItem menuToolsCraftTool
public Action MMTeamAnalysisAction
JMenu windowMenu
chargerlib.CGButton NewWindowButton
chargerlib.CGButton QuitButton
JLabel CopyrightNotice
JLabel VersionInfo
JLabel GraphFolderLabel
JTextField GraphFolderField
JLabel EmailAddressLabel
JButton WebAddressButton
JLabel CharGerLogoLabel
JLabel HubLabel
JLabel CGLabel
JLabel totalMemory
JLabel usedMemory
JLabel freeMemory
JLabel icon
private boolean mShown
Frame hub
public void initComponents()
public void addNotify()
addNotify
in class Frame
public void thisWindowClosing(WindowEvent e)
public void refreshFileList()
public void thisFocusGained(FocusEvent e)
public void GraphDisplayListItemStateChanged(ListSelectionEvent e)
public void OpenButtonActionPerformed(ActionEvent e)
openNamedFiles(java.lang.String[])
public void openNamedFiles(String[] files)
files
- list of (relative) file pathspublic void NewWindowButtonActionPerformed(ActionEvent e)
public void QuitButtonActionPerformed(ActionEvent e)
public void refresh()
public JMenu getHelpMenu()
public JPanel getAboutPanel()
public void performActionMMTeamAnalysis()
public void performActionBackToHub()
public String getMenuItemLabel()
getMenuItemLabel
in interface chargerlib.ManagedWindow
ManagedWindow
public String getFilename()
getFilename
in interface chargerlib.ManagedWindow
public JMenu getWindowMenu()
getWindowMenu
in interface chargerlib.ManagedWindow
public void thisWindowActivated(WindowEvent e)
public void GraphDisplayListMouseClicked(MouseEvent e)
public void menuToolsDatabaseLinkingToolActionPerformed(ActionEvent e)
public void menuToolsQuitActionPerformed(ActionEvent e)
public void menuFilePreferencesActionPerformed(ActionEvent e)
public void menuFileOpenActionPerformed(ActionEvent e)
public void openCGIFActionPerformed(ActionEvent e)
public void menuFileNewGraphActionPerformed(ActionEvent e)
public void menuFileOpenCGIFActionPerformed(ActionEvent e)
public void OpenAllButtonActionPerformed(ActionEvent e)
public void SaveAllAsCGIFButtonActionPerformed()
public void CloseAllButtonActionPerformed(ActionEvent e)
public void BrowseButtonActionPerformed(ActionEvent e)
public void addModuleMenuItem(ModulePlugin module)
module
- Any class that implements the ModulePlugin interface.
Although it's expected that this class is a simple "boot" class
to invoke more interesting behavior, Charger's responsibility is
only to provide a menu item that invokes the startup() method. For example,
a module could be entirely in one class.charger.ModulePlugin
public void loadModulePlugins() throws ModuleException
ModuleException
charger.ModulePlugin
public void refreshToolsMenu()
public ArrayList<Class> getPluginClasses()
public static final List<Class<?>> getClassesInPackage(String packageName)