org.openstreetmap.josm.gui
Class MainMenu
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JMenuBar
org.openstreetmap.josm.gui.MainMenu
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.MenuElement
public class MainMenu
- extends javax.swing.JMenuBar
This is the JOSM main menu bar. It is overwritten to initialize itself and provide all menu
entries as member variables (sort of collect them).
It also provides possibilities to attach new menu entries (used by plugins).
- Author:
- Immanuel.Scholz
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.JMenuBar |
javax.swing.JMenuBar.AccessibleJMenuBar |
Nested classes/interfaces inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
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 |
org.openstreetmap.josm.actions.JosmAction |
about
|
org.openstreetmap.josm.actions.AddNodeAction |
addnode
|
org.openstreetmap.josm.actions.JosmAction |
alignInCircle
|
org.openstreetmap.josm.actions.JosmAction |
alignInLine
|
org.openstreetmap.josm.actions.JosmAction |
audioBack
|
org.openstreetmap.josm.actions.JosmAction |
audioFaster
|
org.openstreetmap.josm.actions.JosmAction |
audioFwd
|
javax.swing.JMenu |
audioMenu
|
org.openstreetmap.josm.actions.JosmAction |
audioNext
|
org.openstreetmap.josm.actions.JosmAction |
audioPlayPause
|
org.openstreetmap.josm.actions.JosmAction |
audioPrev
|
org.openstreetmap.josm.actions.JosmAction |
audioSlower
|
org.openstreetmap.josm.actions.CloseChangesetAction |
closeChangesetAction
|
org.openstreetmap.josm.actions.JosmAction |
combineWay
|
org.openstreetmap.josm.actions.JosmAction |
copy
|
org.openstreetmap.josm.actions.JosmAction |
createCircle
|
org.openstreetmap.josm.actions.JosmAction |
createMultipolygon
|
int |
defaultMenuPos
|
org.openstreetmap.josm.actions.JosmAction |
delete
|
org.openstreetmap.josm.actions.JosmAction |
distribute
|
org.openstreetmap.josm.actions.DownloadAction |
download
|
org.openstreetmap.josm.actions.DownloadPrimitiveAction |
downloadPrimitive
|
org.openstreetmap.josm.actions.DownloadReferrersAction |
downloadReferrers
|
org.openstreetmap.josm.actions.JosmAction |
duplicate
|
javax.swing.JMenu |
editMenu
|
org.openstreetmap.josm.actions.JosmAction |
exit
|
javax.swing.JMenu |
fileMenu
|
org.openstreetmap.josm.actions.JosmAction |
gpxExport
|
org.openstreetmap.josm.actions.HelpAction |
help
|
javax.swing.JMenu |
helpMenu
|
org.openstreetmap.josm.actions.HistoryInfoAction |
historyinfo
|
ImageryMenu |
imageryMenu
|
org.openstreetmap.josm.actions.InfoAction |
info
|
org.openstreetmap.josm.actions.JosmAction |
joinAreas
|
org.openstreetmap.josm.actions.JosmAction |
joinNodeWay
|
org.openstreetmap.josm.actions.JumpToAction |
jumpToAct
|
org.openstreetmap.josm.actions.JosmAction |
merge
|
org.openstreetmap.josm.actions.JosmAction |
mergeNodes
|
org.openstreetmap.josm.actions.JosmAction |
mergeSelected
|
org.openstreetmap.josm.actions.JosmAction |
mirror
|
org.openstreetmap.josm.actions.JosmAction |
moveDownAction
|
org.openstreetmap.josm.actions.JosmAction |
moveLeftAction
|
org.openstreetmap.josm.actions.MoveNodeAction |
movenode
|
org.openstreetmap.josm.actions.JosmAction |
moveRightAction
|
org.openstreetmap.josm.actions.JosmAction |
moveUpAction
|
org.openstreetmap.josm.actions.NewAction |
newAction
|
org.openstreetmap.josm.actions.OpenFileAction |
openFile
|
org.openstreetmap.josm.actions.OpenLocationAction |
openLocation
|
org.openstreetmap.josm.actions.OrthogonalizeAction |
ortho
|
org.openstreetmap.josm.actions.JosmAction |
orthoUndo
|
org.openstreetmap.josm.actions.JosmAction |
paste
|
org.openstreetmap.josm.actions.JosmAction |
pasteTags
|
org.openstreetmap.josm.actions.JosmAction |
preferences
|
org.openstreetmap.josm.gui.tagging.TaggingPresetSearchAction |
presetSearchAction
|
javax.swing.JMenu |
presetsMenu
|
org.openstreetmap.josm.actions.JosmAction |
purge
|
org.openstreetmap.josm.gui.io.RecentlyOpenedFilesMenu |
recentlyOpened
|
org.openstreetmap.josm.actions.RedoAction |
redo
|
org.openstreetmap.josm.actions.JosmAction |
reverseWay
|
org.openstreetmap.josm.actions.JosmAction |
save
|
org.openstreetmap.josm.actions.JosmAction |
saveAs
|
org.openstreetmap.josm.actions.JosmAction |
search
|
org.openstreetmap.josm.actions.JosmAction |
selectAll
|
org.openstreetmap.josm.actions.JosmAction |
simplifyWay
|
org.openstreetmap.josm.actions.JosmAction |
splitWay
|
org.openstreetmap.josm.actions.JosmAction |
statusreport
|
org.openstreetmap.josm.actions.JosmAction |
toggleGPXLines
|
javax.swing.JMenu |
toolsMenu
|
org.openstreetmap.josm.actions.UndoAction |
undo
|
org.openstreetmap.josm.actions.JosmAction |
unglueNodes
|
org.openstreetmap.josm.actions.JosmAction |
unselectAll
|
org.openstreetmap.josm.actions.JosmAction |
update
|
org.openstreetmap.josm.actions.JosmAction |
updateModified
|
org.openstreetmap.josm.actions.JosmAction |
updateSelection
|
org.openstreetmap.josm.actions.JosmAction |
upload
|
org.openstreetmap.josm.actions.JosmAction |
uploadSelection
|
javax.swing.JMenu |
viewMenu
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
static javax.swing.JMenuItem |
add(javax.swing.JMenu menu,
org.openstreetmap.josm.actions.JosmAction action)
Add a JosmAction to a menu. |
javax.swing.JMenu |
addMenu(javax.swing.JMenu menu,
java.lang.String name,
int mnemonicKey,
int position,
java.lang.String relativeHelpTopic)
|
javax.swing.JMenu |
addMenu(java.lang.String name,
int mnemonicKey,
int position,
java.lang.String relativeHelpTopic)
|
Methods inherited from class javax.swing.JMenuBar |
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
newAction
public final org.openstreetmap.josm.actions.NewAction newAction
openFile
public final org.openstreetmap.josm.actions.OpenFileAction openFile
recentlyOpened
public final org.openstreetmap.josm.gui.io.RecentlyOpenedFilesMenu recentlyOpened
openLocation
public final org.openstreetmap.josm.actions.OpenLocationAction openLocation
save
public final org.openstreetmap.josm.actions.JosmAction save
saveAs
public final org.openstreetmap.josm.actions.JosmAction saveAs
gpxExport
public final org.openstreetmap.josm.actions.JosmAction gpxExport
download
public final org.openstreetmap.josm.actions.DownloadAction download
downloadPrimitive
public final org.openstreetmap.josm.actions.DownloadPrimitiveAction downloadPrimitive
downloadReferrers
public final org.openstreetmap.josm.actions.DownloadReferrersAction downloadReferrers
closeChangesetAction
public final org.openstreetmap.josm.actions.CloseChangesetAction closeChangesetAction
update
public final org.openstreetmap.josm.actions.JosmAction update
updateSelection
public final org.openstreetmap.josm.actions.JosmAction updateSelection
updateModified
public final org.openstreetmap.josm.actions.JosmAction updateModified
upload
public final org.openstreetmap.josm.actions.JosmAction upload
uploadSelection
public final org.openstreetmap.josm.actions.JosmAction uploadSelection
exit
public final org.openstreetmap.josm.actions.JosmAction exit
undo
public final org.openstreetmap.josm.actions.UndoAction undo
redo
public final org.openstreetmap.josm.actions.RedoAction redo
copy
public final org.openstreetmap.josm.actions.JosmAction copy
paste
public final org.openstreetmap.josm.actions.JosmAction paste
pasteTags
public final org.openstreetmap.josm.actions.JosmAction pasteTags
duplicate
public final org.openstreetmap.josm.actions.JosmAction duplicate
delete
public final org.openstreetmap.josm.actions.JosmAction delete
purge
public final org.openstreetmap.josm.actions.JosmAction purge
merge
public final org.openstreetmap.josm.actions.JosmAction merge
mergeSelected
public final org.openstreetmap.josm.actions.JosmAction mergeSelected
selectAll
public final org.openstreetmap.josm.actions.JosmAction selectAll
unselectAll
public final org.openstreetmap.josm.actions.JosmAction unselectAll
search
public final org.openstreetmap.josm.actions.JosmAction search
preferences
public final org.openstreetmap.josm.actions.JosmAction preferences
toggleGPXLines
public final org.openstreetmap.josm.actions.JosmAction toggleGPXLines
info
public final org.openstreetmap.josm.actions.InfoAction info
historyinfo
public final org.openstreetmap.josm.actions.HistoryInfoAction historyinfo
splitWay
public final org.openstreetmap.josm.actions.JosmAction splitWay
combineWay
public final org.openstreetmap.josm.actions.JosmAction combineWay
reverseWay
public final org.openstreetmap.josm.actions.JosmAction reverseWay
alignInCircle
public final org.openstreetmap.josm.actions.JosmAction alignInCircle
alignInLine
public final org.openstreetmap.josm.actions.JosmAction alignInLine
distribute
public final org.openstreetmap.josm.actions.JosmAction distribute
ortho
public final org.openstreetmap.josm.actions.OrthogonalizeAction ortho
orthoUndo
public final org.openstreetmap.josm.actions.JosmAction orthoUndo
mirror
public final org.openstreetmap.josm.actions.JosmAction mirror
addnode
public final org.openstreetmap.josm.actions.AddNodeAction addnode
movenode
public final org.openstreetmap.josm.actions.MoveNodeAction movenode
createCircle
public final org.openstreetmap.josm.actions.JosmAction createCircle
mergeNodes
public final org.openstreetmap.josm.actions.JosmAction mergeNodes
joinNodeWay
public final org.openstreetmap.josm.actions.JosmAction joinNodeWay
unglueNodes
public final org.openstreetmap.josm.actions.JosmAction unglueNodes
simplifyWay
public final org.openstreetmap.josm.actions.JosmAction simplifyWay
joinAreas
public final org.openstreetmap.josm.actions.JosmAction joinAreas
createMultipolygon
public final org.openstreetmap.josm.actions.JosmAction createMultipolygon
audioPlayPause
public final org.openstreetmap.josm.actions.JosmAction audioPlayPause
audioNext
public final org.openstreetmap.josm.actions.JosmAction audioNext
audioPrev
public final org.openstreetmap.josm.actions.JosmAction audioPrev
audioFwd
public final org.openstreetmap.josm.actions.JosmAction audioFwd
audioBack
public final org.openstreetmap.josm.actions.JosmAction audioBack
audioFaster
public final org.openstreetmap.josm.actions.JosmAction audioFaster
audioSlower
public final org.openstreetmap.josm.actions.JosmAction audioSlower
help
public final org.openstreetmap.josm.actions.HelpAction help
about
public final org.openstreetmap.josm.actions.JosmAction about
statusreport
public final org.openstreetmap.josm.actions.JosmAction statusreport
fileMenu
public final javax.swing.JMenu fileMenu
editMenu
public final javax.swing.JMenu editMenu
viewMenu
public final javax.swing.JMenu viewMenu
toolsMenu
public final javax.swing.JMenu toolsMenu
presetsMenu
public final javax.swing.JMenu presetsMenu
imageryMenu
public final ImageryMenu imageryMenu
audioMenu
public javax.swing.JMenu audioMenu
helpMenu
public final javax.swing.JMenu helpMenu
defaultMenuPos
public final int defaultMenuPos
- See Also:
- Constant Field Values
moveUpAction
public final org.openstreetmap.josm.actions.JosmAction moveUpAction
moveDownAction
public final org.openstreetmap.josm.actions.JosmAction moveDownAction
moveLeftAction
public final org.openstreetmap.josm.actions.JosmAction moveLeftAction
moveRightAction
public final org.openstreetmap.josm.actions.JosmAction moveRightAction
jumpToAct
public final org.openstreetmap.josm.actions.JumpToAction jumpToAct
presetSearchAction
public final org.openstreetmap.josm.gui.tagging.TaggingPresetSearchAction presetSearchAction
MainMenu
public MainMenu()
add
public static javax.swing.JMenuItem add(javax.swing.JMenu menu,
org.openstreetmap.josm.actions.JosmAction action)
- Add a JosmAction to a menu.
This method handles all the shortcut handling. It also makes sure that actions that are
handled by the OS are not duplicated on the menu.
addMenu
public javax.swing.JMenu addMenu(java.lang.String name,
int mnemonicKey,
int position,
java.lang.String relativeHelpTopic)
addMenu
public javax.swing.JMenu addMenu(javax.swing.JMenu menu,
java.lang.String name,
int mnemonicKey,
int position,
java.lang.String relativeHelpTopic)