com.neatech.climbplan.userinterface
Class MainScreen

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by com.neatech.climbplan.userinterface.MainScreen
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainScreen
extends JFrame

See Also:
Serialized Form

Nested Class Summary
private  class MainScreen.AboutMenuItemActionListener
           
private  class MainScreen.ActivityMenuItemActionListener
           
private  class MainScreen.CloseAllMenuItemActionListener
           
private  class MainScreen.CloseMenuItemActionListener
           
private  class MainScreen.ContentsMenuItemActionListener
           
private  class MainScreen.ElevationMenuItemActionListener
           
private  class MainScreen.ExitMenuItemActionListener
           
private  class MainScreen.MapMenuItemActionListener
           
private  class MainScreen.MountaineerMenuItemActionListener
           
private  class MainScreen.OrganizerMenuItemActionListener
           
private  class MainScreen.SaveAllMenuItemActionListener
           
private  class MainScreen.SaveMenuItemActionListener
           
private  class MainScreen.TabbedPaneRightMouseListener
           
private  class MainScreen.TeamMenuItemActionListener
           
private  class MainScreen.ThisComponentListener
           
private  class MainScreen.ThisWindowListener
           
private  class MainScreen.VectorMenuItemActionListener
           
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  JMenuItem aboutMenuItem
           
private  JMenuItem activityMenuItem
           
private  JMenu addMenu
           
private static double centerRatio
           
private static int clickToLoginStateAmount
           
private  JMenuItem closeAllMenuItem
           
private  JMenuItem closeMenuItem
           
private  JMenuItem contentsMenuItem
           
private  JMenuItem elevationMenuItem
           
private  JMenuItem exitMenuItem
           
private  JMenu fileMenu
           
private  JMenu helpMenu
           
private static double leftRatio
           
private static int loggedInStateAmount
           
private static org.apache.log4j.Logger logger
           
private  LoginPanel loginPanel
           
private static int loginStateAmount
           
private static MainScreen mainScreen
           
private  JMenuItem mapMenuItem
           
private  JMenuBar menuBar
           
private  JMenuItem mountaineerMenuItem
           
private  JMenu newMenu
           
private  JMenuItem organizerMenuItem
           
private  JPanel panel
           
private  JPanel panelUserNotification
           
private static int rightAmount
           
private  JMenuItem saveAllMenuItem
           
private  JMenuItem saveMenuItem
           
private static long serialVersionUID
           
private  JSplitPane splitPaneCenter
           
private  JSplitPane splitPaneLeft
           
private  JSplitPane splitPaneRight
           
private  JTabbedPane tabbedPaneBottomLeft
           
private  CloseableTabbedPane tabbedPaneRight
           
private  JTabbedPane tabbedPaneTopLeft
           
private  JMenuItem teamMenuItem
           
private static String userManualPath
           
private  JLabel userNotificationAreaLabel
           
private  JMenuItem vectorMenuItem
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
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
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private MainScreen()
          Create the frame
 
Method Summary
protected  void aboutMenuItem_actionPerformed(ActionEvent e)
           
protected  void activityMenuItem_actionPerformed(ActionEvent e)
           
private  void adjustSplitPanes()
           
protected  void closeAllMenuItem_actionPerformed(ActionEvent e)
           
protected  void closeMenuItem_actionPerformed(ActionEvent e)
           
 void closeView(Component c)
           
protected  void contentsMenuItem_actionPerformed(ActionEvent e)
           
protected  void elevationMenuItem_actionPerformed(ActionEvent e)
           
protected  void exitMenuItem_actionPerformed(ActionEvent e)
           
static MainScreen getInstance()
           
 String getTitleName()
           
private  void jbInit()
           
static void main(String[] args)
          Launch the application
protected  void mapMenuItem_actionPerformed(ActionEvent e)
           
protected  void mountaineerMenuItem_actionPerformed(ActionEvent e)
           
private  void myInit()
           
 void openActivityView(ActivityModel a)
           
 void openMapView(MapModel m)
           
 void openMountaineerView(MountaineerModel m)
           
 void openOrganizerView(OrganizerModel o)
           
 void openReportView(ReportModel r)
           
 void openSimulationView(SimulationModel s)
           
 void openTeamView(TeamModel t)
           
protected  void organizerMenuItem_actionPerformed(ActionEvent e)
           
 void renameViewTitle(Component c, String newTitle)
           
(package private) static void renderSplashFrame(Graphics2D g, int frame)
           
protected  void saveAllMenuItem_actionPerformed(ActionEvent e)
           
protected  void saveMenuItem_actionPerformed(ActionEvent e)
           
protected  void tabbedPaneRight_mouseClicked(MouseEvent e)
           
protected  void teamMenuItem_actionPerformed(ActionEvent e)
           
protected  void this_componentResized(ComponentEvent e)
           
protected  void this_windowOpened(WindowEvent e)
           
protected  void vectorMenuItem_actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

centerRatio

private static final double centerRatio
See Also:
Constant Field Values

leftRatio

private static final double leftRatio
See Also:
Constant Field Values

clickToLoginStateAmount

private static final int clickToLoginStateAmount
See Also:
Constant Field Values

loginStateAmount

private static final int loginStateAmount
See Also:
Constant Field Values

loggedInStateAmount

private static final int loggedInStateAmount
See Also:
Constant Field Values

rightAmount

private static int rightAmount

userManualPath

private static final String userManualPath
See Also:
Constant Field Values

mainScreen

private static MainScreen mainScreen

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

loginPanel

private final LoginPanel loginPanel

splitPaneCenter

private final JSplitPane splitPaneCenter

splitPaneLeft

private final JSplitPane splitPaneLeft

panel

private final JPanel panel

splitPaneRight

private final JSplitPane splitPaneRight

panelUserNotification

private final JPanel panelUserNotification

userNotificationAreaLabel

private final JLabel userNotificationAreaLabel

tabbedPaneRight

private final CloseableTabbedPane tabbedPaneRight

menuBar

private final JMenuBar menuBar

fileMenu

private final JMenu fileMenu

newMenu

private final JMenu newMenu

saveMenuItem

private final JMenuItem saveMenuItem

saveAllMenuItem

private final JMenuItem saveAllMenuItem

closeMenuItem

private final JMenuItem closeMenuItem

closeAllMenuItem

private final JMenuItem closeAllMenuItem

exitMenuItem

private final JMenuItem exitMenuItem

helpMenu

private final JMenu helpMenu

addMenu

private final JMenu addMenu

contentsMenuItem

private final JMenuItem contentsMenuItem

aboutMenuItem

private final JMenuItem aboutMenuItem

tabbedPaneTopLeft

private final JTabbedPane tabbedPaneTopLeft

tabbedPaneBottomLeft

private final JTabbedPane tabbedPaneBottomLeft

elevationMenuItem

private final JMenuItem elevationMenuItem

vectorMenuItem

private final JMenuItem vectorMenuItem

activityMenuItem

private final JMenuItem activityMenuItem

organizerMenuItem

private final JMenuItem organizerMenuItem

mapMenuItem

private final JMenuItem mapMenuItem

teamMenuItem

private final JMenuItem teamMenuItem

mountaineerMenuItem

private final JMenuItem mountaineerMenuItem
Constructor Detail

MainScreen

private MainScreen()
Create the frame

Method Detail

renderSplashFrame

static void renderSplashFrame(Graphics2D g,
                              int frame)

main

public static void main(String[] args)
Launch the application

Parameters:
args -

jbInit

private void jbInit()
             throws Exception
Throws:
Exception

myInit

private void myInit()

adjustSplitPanes

private void adjustSplitPanes()

this_componentResized

protected void this_componentResized(ComponentEvent e)

elevationMenuItem_actionPerformed

protected void elevationMenuItem_actionPerformed(ActionEvent e)

vectorMenuItem_actionPerformed

protected void vectorMenuItem_actionPerformed(ActionEvent e)

this_windowOpened

protected void this_windowOpened(WindowEvent e)

tabbedPaneRight_mouseClicked

protected void tabbedPaneRight_mouseClicked(MouseEvent e)

mountaineerMenuItem_actionPerformed

protected void mountaineerMenuItem_actionPerformed(ActionEvent e)

organizerMenuItem_actionPerformed

protected void organizerMenuItem_actionPerformed(ActionEvent e)

teamMenuItem_actionPerformed

protected void teamMenuItem_actionPerformed(ActionEvent e)

activityMenuItem_actionPerformed

protected void activityMenuItem_actionPerformed(ActionEvent e)

mapMenuItem_actionPerformed

protected void mapMenuItem_actionPerformed(ActionEvent e)

saveMenuItem_actionPerformed

protected void saveMenuItem_actionPerformed(ActionEvent e)

saveAllMenuItem_actionPerformed

protected void saveAllMenuItem_actionPerformed(ActionEvent e)

closeMenuItem_actionPerformed

protected void closeMenuItem_actionPerformed(ActionEvent e)

closeAllMenuItem_actionPerformed

protected void closeAllMenuItem_actionPerformed(ActionEvent e)

exitMenuItem_actionPerformed

protected void exitMenuItem_actionPerformed(ActionEvent e)

contentsMenuItem_actionPerformed

protected void contentsMenuItem_actionPerformed(ActionEvent e)

aboutMenuItem_actionPerformed

protected void aboutMenuItem_actionPerformed(ActionEvent e)

openMountaineerView

public void openMountaineerView(MountaineerModel m)

openOrganizerView

public void openOrganizerView(OrganizerModel o)

openTeamView

public void openTeamView(TeamModel t)

openMapView

public void openMapView(MapModel m)

openActivityView

public void openActivityView(ActivityModel a)

openReportView

public void openReportView(ReportModel r)

openSimulationView

public void openSimulationView(SimulationModel s)

closeView

public void closeView(Component c)

renameViewTitle

public void renameViewTitle(Component c,
                            String newTitle)

getTitleName

public String getTitleName()

getInstance

public static MainScreen getInstance()