public class MainFrame extends JFrame implements WindowListener, IMainFrame, ActionListener
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
private JPanel |
applicationPanel |
private BoardPanel |
boardPanel |
private static Class<?> |
caller |
private AbstractMenuBar |
coreMenuBar |
private JTabbedPane |
itemContent |
private JPanel |
leftRightPanel |
private static org.apache.log4j.Logger |
logger |
private LookPanel |
lookPanel |
private MainPanel |
mainPanel |
private ManagerPanel |
managerPanel |
private JPanel |
managerTankPanel |
private PlotPanel |
plotPanel |
private Timer |
propertyWriteTimer |
private static long |
serialVersionUID |
private StatusPanel |
statusPanel |
private TablePanel |
tablePanel |
private TankPanel |
tankPanel |
private TextPanel |
textPanel |
private int |
timerDelay |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_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_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
MainFrame()
This is the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
closeIQMAndExit()
This method closes the windows, initiates the deletion of temporary files
and quits IQM.
|
void |
constructDefaultElements()
Constructs the default elements of the standard UI.
|
private void |
createAndAssemble()
Creates the user interface of IQM.
|
private JPanel |
createItemContent()
This method constructs the look and tank container.
|
private JPanel |
createLeftRightPanel() |
private JPanel |
createManagerContainer() |
JPanel |
getApplicationPanel() |
BoardPanel |
getBoardPanel() |
AbstractMenuBar |
getCoreMenuBar() |
JTabbedPane |
getItemContent()
Gets the item content.
|
LookPanel |
getLookPanel()
Gets the current look panel in this frame.
|
MainPanel |
getMainPanel()
Gets the current main panel.
|
ManagerPanel |
getManagerPanel()
Gets the current manager panel.
|
JPanel |
getManagerTankPanel() |
PlotPanel |
getPlotPanel()
Get the current plot panel.
|
int |
getSelectedTabIndex()
Get the selected tab.
|
StatusPanel |
getStatusPanel()
Gets the status panel.
|
TablePanel |
getTablePanel()
Gets the current table panel.
|
TankPanel |
getTankPanel()
Gets the current tank panel.
|
TextPanel |
getTextPanel()
Gets the current text panel.
|
void |
handleComponentPropertyEvent()
Handles the timer for writing the time stamp 1 second after each resize
or move event.
|
void |
initialize()
Initializes the frame.
|
void |
initializeDefaults()
Initializes the default elements of the standard UI.
|
void |
resetTitleBar()
Resets the title bar to the default value, as if no item is displayed.
|
void |
setBoardPanel(BoardPanel boardPanel) |
void |
setCoreMenuBar(AbstractMenuBar coreMenuBar) |
void |
setItemContent(JTabbedPane itemContent) |
void |
setLookPanel(LookPanel lookPanel) |
void |
setMainPanel(MainPanel mainPanel) |
void |
setManagerPanel(ManagerPanel managerPanel) |
void |
setManagerTankPanel(JPanel managerTankPanel) |
void |
setPanel(JPanel iqmPanel) |
void |
setPlotPanel(PlotPanel iqmPlotPanel) |
void |
setSelectedTabIndex(int i)
Set the selected tab.
|
void |
setStatusPanel(StatusPanel statusPanel) |
void |
setTablePanel(TablePanel iqmTablePanel) |
void |
setTankPanel(TankPanel iqmTankPanel) |
void |
setTextPanel(TextPanel iqmTextPanel) |
void |
windowActivated(WindowEvent arg0)
Writes the current properties of the frame.
|
void |
windowClosed(WindowEvent arg0)
Custom windowClosed handler.
|
void |
windowClosing(WindowEvent arg0)
Custom windowClosing handler.
|
void |
windowDeactivated(WindowEvent arg0)
Unused.
|
void |
windowDeiconified(WindowEvent arg0)
Unused.
|
void |
windowIconified(WindowEvent arg0)
Unused.
|
void |
windowOpened(WindowEvent arg0)
Unused.
|
void |
writeWindowProperties() |
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, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, toFrontadd, 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, validateTreeaction, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTitlegetFont, postEventprivate static final long serialVersionUID
private static Class<?> caller
private static final org.apache.log4j.Logger logger
private JPanel applicationPanel
private JPanel leftRightPanel
private JPanel managerTankPanel
private JTabbedPane itemContent
private AbstractMenuBar coreMenuBar
private MainPanel mainPanel
private BoardPanel boardPanel
private ManagerPanel managerPanel
private LookPanel lookPanel
private PlotPanel plotPanel
private TablePanel tablePanel
private TextPanel textPanel
private TankPanel tankPanel
private StatusPanel statusPanel
private final int timerDelay
private Timer propertyWriteTimer
public MainFrame()
initializeDefaults() explicitly.
If other elements than the default (core) shall be displayed, they must
be set using the setter methods. After that, one has to explicitly call
initializeCustoms().
public void initializeDefaults()
public void constructDefaultElements()
private void createAndAssemble()
public void handleComponentPropertyEvent()
public void initialize()
IMainFrameinitialize in interface IMainFramepublic JPanel getApplicationPanel()
public void setPanel(JPanel iqmPanel)
private JPanel createLeftRightPanel()
private JPanel createItemContent()
private JPanel createManagerContainer()
public void closeIQMAndExit()
throws Exception
IMainFramecloseIQMAndExit in interface IMainFrameExceptionpublic void setMainPanel(MainPanel mainPanel)
public MainPanel getMainPanel()
IMainFramegetMainPanel in interface IMainFramepublic void setBoardPanel(BoardPanel boardPanel)
public BoardPanel getBoardPanel()
public void setManagerPanel(ManagerPanel managerPanel)
public ManagerPanel getManagerPanel()
IMainFramegetManagerPanel in interface IMainFramepublic void setLookPanel(LookPanel lookPanel)
public LookPanel getLookPanel()
IMainFramegetLookPanel in interface IMainFramepublic void setPlotPanel(PlotPanel iqmPlotPanel)
public PlotPanel getPlotPanel()
IMainFramegetPlotPanel in interface IMainFramepublic TablePanel getTablePanel()
IMainFramegetTablePanel in interface IMainFramepublic void setTablePanel(TablePanel iqmTablePanel)
public TextPanel getTextPanel()
IMainFramegetTextPanel in interface IMainFramepublic void setTextPanel(TextPanel iqmTextPanel)
public void setTankPanel(TankPanel iqmTankPanel)
public TankPanel getTankPanel()
IMainFramegetTankPanel in interface IMainFramepublic StatusPanel getStatusPanel()
IMainFramegetStatusPanel in interface IMainFramepublic void setStatusPanel(StatusPanel statusPanel)
public JTabbedPane getItemContent()
IMainFramegetItemContent in interface IMainFrameJTabbedPane containerpublic void setItemContent(JTabbedPane itemContent)
public JPanel getManagerTankPanel()
public void setManagerTankPanel(JPanel managerTankPanel)
public void windowActivated(WindowEvent arg0)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent arg0)
windowClosed in interface WindowListenerWindowListener.windowClosed(WindowEvent)public void windowClosing(WindowEvent arg0)
windowClosing in interface WindowListenerWindowListener.windowClosing(WindowEvent)public void resetTitleBar()
IMainFrameresetTitleBar in interface IMainFramepublic void windowDeactivated(WindowEvent arg0)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent arg0)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent arg0)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent arg0)
windowOpened in interface WindowListenerpublic void setSelectedTabIndex(int i)
ITabSwitchSupportsetSelectedTabIndex in interface ITabSwitchSupporti - the tab indexpublic int getSelectedTabIndex()
ITabSwitchSupportgetSelectedTabIndex in interface ITabSwitchSupportpublic AbstractMenuBar getCoreMenuBar()
public void setCoreMenuBar(AbstractMenuBar coreMenuBar)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void writeWindowProperties()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.