Package com.nomagic.magicdraw.ui
Class MainFrame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Frame
-
- javax.swing.JFrame
-
- com.jidesoft.docking.DefaultDockableHolder
-
- com.jidesoft.action.DefaultDockableBarDockableHolder
-
- com.nomagic.magicdraw.ui.MainFrame
-
- All Implemented Interfaces:
com.jidesoft.action.DockableBarDockableHolder
,com.jidesoft.action.DockableBarHolder
,com.jidesoft.docking.DockableHolder
,ActionsGroups
,EnvironmentOptions.EnvironmentChangeListener
,com.nomagic.ui.CursorOwner
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,javax.swing.RootPaneContainer
,javax.swing.WindowConstants
@OpenApi public final class MainFrame extends com.jidesoft.action.DefaultDockableBarDockableHolder implements java.beans.PropertyChangeListener, com.nomagic.ui.CursorOwner, ActionsGroups, EnvironmentOptions.EnvironmentChangeListener
TheMainFrame
class represents main window of the MagicDraw application. Also it has a set of inner classes- event listeners to handle all menu and toolbar events.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.jidesoft.docking.DefaultDockableHolder
_autoDispose, _contentContainer, _dockingManager
-
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 com.nomagic.magicdraw.actions.ActionsGroups
ANY_DIAGRAM_EDIT_RELATED, ANY_DIAGRAM_OPENED_RELATED, ANY_REMOTE_PROJECT_EDIT_RELATED, ANY_REMOTE_PROJECT_OPENED_RELATED, ANY_SERVER_LOGIN_RELATED, APPLICATION_RELATED, DIAGRAM_EDIT_RELATED, DIAGRAM_OPENED_RELATED, DIAGRAM_RELATED_ELEMENTS, DIAGRAM_ZOOMIN_RELATED, DIAGRAM_ZOOMOUT_RELATED, DIAGRAM_ZOOMTO11_RELATED, ESI_PROJECT_OPENED_RELATED, ESI_SERVER_LOGIN_RELATED, LAYOUT_SHAPES_RELATED, LOCAL_PROJECT_OPENED_RELATED, NOT_EMPTY_ANY_DIAGRAM_RELATED, NOT_EMPTY_CLASS_DIAGRAM_RELATED, NOT_EMPTY_DIAGRAM_RELATED, OPENED_MODULE_AS_PROJECT, PATH_STYLE_EDIT_RELATED, PE_SELECTION_AND_TEAMWORK_PROJECT_EDIT_RELATED, PRESENTATION_ELEMENT_ALIGN_RELATED, PRESENTATION_ELEMENT_SELECTION_RELATED, PROJECT_EDIT_RELATED, PROJECT_OPENED_RELATED, PROJECT_SAVING_RELATED, REDO_COMMAND_RELATED, UNDO_COMMAND_RELATED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createMenuAndToolbars()
Create (or recreate) all menu and toolbars.Browser
getBrowser()
Returns model browser.javax.swing.JMenuBar
getMainMenuBar()
Returns main menu bar.ProjectWindowsManager
getProjectWindowsManager()
Returns ProjectWindowsManager.-
Methods inherited from class com.jidesoft.action.DefaultDockableBarDockableHolder
createContentContainer, createDockableBarManager, dispose, getDockableBarManager, getJMenuBar, getLayoutPersistence, initFrame
-
Methods inherited from class com.jidesoft.docking.DefaultDockableHolder
createDockingManager, getDockingManager, isAutoDispose, isContentPaneCheckingEnabled, setAutoDispose, setContentPaneCheckingEnabled
-
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, 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, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, 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, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, 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, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Method Detail
-
getMainMenuBar
@OpenApi public javax.swing.JMenuBar getMainMenuBar()
Returns main menu bar.- Returns:
- main menu bar.
-
createMenuAndToolbars
@OpenApi public void createMenuAndToolbars()
Create (or recreate) all menu and toolbars. It will invoke all registeredAMConfigurator
inActionsConfiguratorsManager
-
getBrowser
@CheckForNull @OpenApi public Browser getBrowser()
Returns model browser.- Returns:
- model browser.
-
getProjectWindowsManager
@OpenApi public ProjectWindowsManager getProjectWindowsManager()
Returns ProjectWindowsManager.- Returns:
- project windows manager.
-
-