|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
ARoad0.Gui1.Desktop
public class Desktop
This class creates the Access Road desktop, and contains the main method. It displays the welcome message. It adds and resizes the internal frames. It uses other classes for managing the frame moving. Each Action class is in the gDMak package; it is referenced through one single instance for the event handling from the program main menu. See the Copyright.
InternalFrame
,
IconPolice
,
InsideDesktop
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) char |
a
|
ActionAboutARoad |
actionAboutARoad
|
ActionAcsAddonGuides |
actionAcsAddonGuides
|
ActionBasicTutorial |
actionBasicTutorial
|
ActionClose |
actionClose
|
ActionCopy |
actionCopy
|
ActionExit |
actionExit
|
ActionExportPNG |
actionExportPNG
|
ActionHelpConcepts |
actionHelpConcepts
|
ActionImportACS |
actionImportACS
|
ActionNewACSyst |
actionNewACSyst
|
ActionNewView |
actionNewView
|
ActionOpenACSyst |
actionOpenACSyst
|
ActionOpenAllFullViews |
actionOpenAllFullViews
|
ActionOpenAllNoThanViews |
actionOpenAllNoThanViews
|
ActionOpenBeamer |
actionOpenBeamer
|
ActionOpenGlobalStructure |
actionOpenGlobalStructure
|
ActionOpenMainFrame |
actionOpenMainFrame
|
ActionOpenSketcher |
actionOpenSketcher
|
ActionOpenGraphicView |
actionOpenUserV
|
ActionRemove |
actionRemove
|
ActionSave |
actionSave
|
ActionSaveAll |
actionSaveAll
|
InternalFrameTiler |
actionTile
|
static java.lang.String |
AR_DIR
AR_DIR is the path to ARoad0 directory in String, with the operating system file separator. |
static java.net.URI |
AR_URI
AR_URI is the URI of the 'ARoad0/' directory, whatever the operating system |
static java.awt.Font |
BOLD_FONT
Bold font with FONT_SIZE + 1 as size |
(package private) char |
c
|
(package private) javax.swing.JComboBox |
comboI
|
(package private) javax.swing.JComboBox |
comboU
|
static java.lang.String |
CURRENT_DIR
after the init, CURRENT_DIR is the current directory with '/' as separator whatever the operating system |
static java.net.URI |
CURRENT_DIR_URI
Initial file path, only for the development context ON LINUX |
protected static javax.swing.JDesktopPane |
desk__
|
static boolean |
developContext__
|
(package private) char |
e
|
(package private) javax.swing.JMenu |
editMenuE
|
(package private) char[] |
editShortcuts
|
(package private) char |
f
|
(package private) javax.swing.JMenu |
fileMenuE
|
static java.lang.String |
FILES_SEPAR
|
(package private) char[] |
fileShortcuts
|
static int |
FONT_SIZE
Font size |
(package private) char |
g
|
(package private) javax.swing.JMenu |
goMenuE
|
(package private) char |
h
|
(package private) javax.swing.JMenu |
helpMenuE
|
(package private) char[] |
helpShortcuts
|
(package private) char |
I
|
protected static Desktop |
instance__
|
static java.awt.Font |
ITALIC_FONT
Italic font |
(package private) char |
l
|
static java.lang.String |
LINE_SEPAR
|
(package private) javax.swing.JMenuBar |
menuBar
|
(package private) char |
n
|
(package private) javax.swing.JMenu |
newMenuE
|
(package private) char |
o
|
(package private) javax.swing.JMenu |
openMenuE
|
static java.awt.Font |
PLAIN_FONT
Plain font |
(package private) char |
r
|
(package private) char |
t
|
protected static java.lang.String |
title__
|
(package private) javax.swing.JToolBar |
toolBar1
|
(package private) javax.swing.JMenu |
toolsMenuE
|
static java.lang.String |
URL_SEPAR
|
static java.lang.String |
USER_DIR
|
(package private) char |
w
|
(package private) javax.swing.JMenu |
windowMenuE
|
(package private) char[] |
windowShortcuts
|
(package private) char |
x
|
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 | |
---|---|
protected |
Desktop()
Protected constructor following the singleton pattern. |
Method Summary | |
---|---|
static void |
addFrame(javax.swing.JInternalFrame _f,
java.lang.Integer _i)
Adds a JInternalFrame in the main window. |
static javax.swing.JInternalFrame[] |
getCurrentFrames()
Get the open windows. |
static javax.swing.JDesktopPane |
getDesktopPane()
Get the desktop pane of the main window. |
static java.awt.Dimension |
getDSize()
Gets the size of the main window |
static Desktop |
getInstance()
The only method to get a desktop object. |
private void |
init()
The main window is initialized there, then setVisible(true) is called, so this is the only method for the GUI which can be called outside the Event Dispatch Thread. |
static void |
main(java.lang.String[] args)
Main method of the application. |
static void |
resizeIFrame(javax.swing.JInternalFrame _f,
int _x,
int _y,
int _w,
int _h)
Resizes a frame |
static void |
restoreLastGUI()
Restores the positions of the last open frames, from the GUI configuration map. |
Methods inherited from class javax.swing.JFrame |
---|
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 |
Methods inherited from class java.awt.Frame |
---|
addNotify, 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, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, 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, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static java.lang.String CURRENT_DIR
public static final java.lang.String USER_DIR
public static final java.lang.String FILES_SEPAR
public static final java.lang.String URL_SEPAR
public static final java.lang.String LINE_SEPAR
public static java.net.URI CURRENT_DIR_URI
public static java.net.URI AR_URI
public static java.lang.String AR_DIR
public static boolean developContext__
protected static Desktop instance__
protected static java.lang.String title__
protected static javax.swing.JDesktopPane desk__
javax.swing.JMenuBar menuBar
javax.swing.JMenu fileMenuE
javax.swing.JMenu editMenuE
javax.swing.JMenu windowMenuE
javax.swing.JMenu goMenuE
javax.swing.JMenu toolsMenuE
javax.swing.JMenu helpMenuE
javax.swing.JMenu newMenuE
javax.swing.JMenu openMenuE
javax.swing.JToolBar toolBar1
public ActionNewView actionNewView
public ActionNewACSyst actionNewACSyst
public ActionOpenACSyst actionOpenACSyst
public ActionOpenGraphicView actionOpenUserV
public ActionSave actionSave
public ActionSaveAll actionSaveAll
public ActionClose actionClose
public ActionRemove actionRemove
public ActionExit actionExit
public ActionImportACS actionImportACS
public ActionExportPNG actionExportPNG
public ActionCopy actionCopy
public ActionOpenMainFrame actionOpenMainFrame
public ActionOpenBeamer actionOpenBeamer
public InternalFrameTiler actionTile
public ActionOpenAllFullViews actionOpenAllFullViews
public ActionOpenAllNoThanViews actionOpenAllNoThanViews
public ActionOpenSketcher actionOpenSketcher
public ActionOpenGlobalStructure actionOpenGlobalStructure
public ActionAboutARoad actionAboutARoad
public ActionBasicTutorial actionBasicTutorial
public ActionHelpConcepts actionHelpConcepts
public ActionAcsAddonGuides actionAcsAddonGuides
char f
char e
char l
char w
char g
char t
char h
char n
char o
char r
char x
char c
char I
char a
char[] fileShortcuts
char[] editShortcuts
char[] windowShortcuts
char[] helpShortcuts
javax.swing.JComboBox comboI
javax.swing.JComboBox comboU
public static final int FONT_SIZE
public static final java.awt.Font ITALIC_FONT
public static final java.awt.Font PLAIN_FONT
public static final java.awt.Font BOLD_FONT
Constructor Detail |
---|
protected Desktop() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static Desktop getInstance()
private void init() throws java.lang.Exception
java.lang.Exception
public static void addFrame(javax.swing.JInternalFrame _f, java.lang.Integer _i)
_f
- JInternalFrame_i
- Integerpublic static javax.swing.JInternalFrame[] getCurrentFrames()
public static javax.swing.JDesktopPane getDesktopPane()
public static void resizeIFrame(javax.swing.JInternalFrame _f, int _x, int _y, int _w, int _h)
_f
- JInternalFrame_x
- int_y
- int_w
- int width_h
- int height of the framepublic static java.awt.Dimension getDSize()
public static void restoreLastGUI()
ActionSaveAll
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- is null
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |