public abstract class AbstractPopupMenuAction extends AbstractMenuAction implements AddToPopupMapMenuIfc
GeographicalMap
window and
drawn by its subsidiary StationRenderer
and OSMLayer
map layers), and in tabular views such as the RawPacketPane
and
StationListViewer
.AddToPopupMapMenuIfc.testIfIncluded(int, int, com.bbn.openmap.proj.Projection)
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected AX25Frame |
frame
Packet at the clicked-on row in the table, or null if not relevant.
|
protected java.util.List<StationState> |
matchList
ArrayList of stations and objects located at the clicked point on the map, or single-element ArrayList of the station
in the table.
|
protected int |
mouseX
Screen pixel X coordinate where mouse was located when popup menu was requested.
|
protected int |
mouseY
Screen pixel Y coordinate where mouse was located when popup menu was requested.
|
protected com.bbn.openmap.proj.Projection |
proj
current Projection of the map window.
|
protected GuiContentType |
widgetContentType
Widget that asked for the popup menu.
|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, BUTTON_GROUP_NAME, DISPLAYED_MNEMONIC_INDEX_KEY, enabled, LARGE_ICON_KEY, LOCALIZED_MENU_HIERARCHY, LONG_DESCRIPTION, MENU_PRIORITY, MNEMONIC_KEY, NAME, NOT_VOICE_COMMAND, PERMITTED, PRE_LOCALIZE_MENU_TAG_NAME, PRE_LOCALIZED_MENU_HIERARCHY, properties, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON, UI_TYPE, WARNING_IF_REMOVED
Modifier | Constructor and Description |
---|---|
protected |
AbstractPopupMenuAction(java.lang.String nameTag,
java.lang.String[] menuPositionNames)
Construct an AbstractPopupMenuAction with the specified
ResourceBundle lookup tag for the name, and hierarchical position in
the JMenus.
|
protected |
AbstractPopupMenuAction(java.lang.String nameTag,
java.lang.String[] menuPositionNames,
int priority)
Construct an AbstractPopupMenuAction with the specified
ResourceBundle lookup tag for the name, and hierarchical position in
the JMenus.
|
protected |
AbstractPopupMenuAction(java.lang.String nameTag,
java.lang.String[] menuPositionNames,
int priority,
boolean initialState)
Construct an AbstractPopupMenuAction with the specified
ResourceBundle lookup tag for the name, and hierarchical position in
the JMenus.
|
protected |
AbstractPopupMenuAction(java.lang.String nameTag,
java.lang.String[] menuPositionNames,
int priority,
java.lang.String buttonGroupName)
Construct an AbstractPopupMenuAction with the specified
ResourceBundle lookup tag for the name, and hierarchical position in
the JMenus.
|
protected |
AbstractPopupMenuAction(java.lang.String nameTag,
java.lang.String[] menuPositionNames,
java.lang.String buttonGroupName)
Construct an AbstractPopupMenuAction with the specified
ResourceBundle lookup tag for the name, and hierarchical position in
the JMenus.
|
Modifier and Type | Method and Description |
---|---|
void |
setContext(int mx,
int my,
com.bbn.openmap.proj.Projection proj,
java.util.List<StationState> matchList,
AX25Frame frame,
GuiContentType widgetContentType)
Called by popup menu creation code to establish context information for the menu item's
actionPerformed() method.
|
void |
setContext(java.util.List<StationState> matchList,
AX25Frame frame,
GuiContentType widgetContentType)
Called by popup menu creation code to establish context information for the menu item's
actionPerformed() method.
|
actionPerformed, firePropertyChange, getPropertyListener, getValue, init, isEnabled, parseMnemonics, putValue, setEnabled, setPropertyListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
testIfIncluded
protected transient int mouseX
protected transient int mouseY
protected transient com.bbn.openmap.proj.Projection proj
protected transient java.util.List<StationState> matchList
protected transient AX25Frame frame
protected transient GuiContentType widgetContentType
protected AbstractPopupMenuAction(java.lang.String nameTag, java.lang.String[] menuPositionNames)
nameTag
- lookup String for the above name in ResourceBundlesmenuPositionNames
- array of Strings identifying the localized name stringsprotected AbstractPopupMenuAction(java.lang.String nameTag, java.lang.String[] menuPositionNames, java.lang.String buttonGroupName)
nameTag
- lookup String for the above name in ResourceBundlesmenuPositionNames
- array of Strings identifying the localized name strings
of the parent JMenus to contain the generated JRadioButtonMenuItembuttonGroupName
- String name of ButtonGroup this JRadioButtonMenuItemprotected AbstractPopupMenuAction(java.lang.String nameTag, java.lang.String[] menuPositionNames, int priority)
nameTag
- lookup String for the above name in ResourceBundlesmenuPositionNames
- array of Strings identifying the localized name strings
of the parent JMenus to contain the generated JMenuItempriority
- int relative priority of this menu item relative to otherprotected AbstractPopupMenuAction(java.lang.String nameTag, java.lang.String[] menuPositionNames, int priority, java.lang.String buttonGroupName)
nameTag
- lookup String for the above name in ResourceBundlesmenuPositionNames
- array of Strings identifying the localized name strings
of the parent JMenus to contain the generated JRadioButtonMenuItempriority
- int relative priority of this menu item relative to other
menu items on its lowest JMenubuttonGroupName
- String name of ButtonGroup this JRadioButtonMenuItemprotected AbstractPopupMenuAction(java.lang.String nameTag, java.lang.String[] menuPositionNames, int priority, boolean initialState)
nameTag
- lookup String for the above name in ResourceBundlesmenuPositionNames
- array of Strings identifying the localized name strings
of the parent JMenus to contain the generated JMenuItempriority
- int relative priority of this menu item relative to otherinitialState
- initial state of JCheckBoxMenuItem to be createdpublic void setContext(int mx, int my, com.bbn.openmap.proj.Projection proj, java.util.List<StationState> matchList, AX25Frame frame, GuiContentType widgetContentType)
mx
- int screen pixel X coordinate where popup menu was invoked, or -1 for not map-invokedmy
- int screen pixel Y coordinate where popup menu was invoked, or table model row number for table view, or -1 for other non-map-invokedproj
- current Projection of the map window (null if the right-click was not on the map)matchList
- ArrayList of stations and objects located at the clicked point on the map or in the selected table rowframe
- AX25Frame of selected packet in a table view (or null if not relevant)widgetContentType
- GuiContentType of the widget launching a popup menupublic void setContext(java.util.List<StationState> matchList, AX25Frame frame, GuiContentType widgetContentType)
matchList
- ArrayList of stations and objects located at the clicked point on the map or in the selected table rowframe
- AX25Frame of selected packet in a table view (or null if not relevant)widgetContentType
- GuiContentType of the widget launching a popup menu