Package gov.nasa.worldwindx.examples
Class ContextMenusOnShapes
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.ContextMenusOnShapes
-
public class ContextMenusOnShapes extends ApplicationTemplate
Illustrates how to attach context (popup) menus to shapes. The example creates several
and assigns each of them a context-menu definition. When the user presses the right mouse button while the cursor is on a placemark, the placemark's context menu is shown and the user may select an item in it.PointPlacemark
s
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextMenusOnShapes.AppFrame
protected static class
ContextMenusOnShapes.ContextMenu
The ContextMenu class implements the context menu.protected static class
ContextMenusOnShapes.ContextMenuController
The Controller listens for selection events and either highlights a selected item or shows its context menu.protected static class
ContextMenusOnShapes.ContextMenuInfo
The ContextMenuInfo class specifies the contents of the context menu.static class
ContextMenusOnShapes.ContextMenuItemAction
The ContextMenuItemAction responds to user selection of a context menu item.protected static class
ContextMenusOnShapes.ContextMenuItemInfo
The ContextMenuItemInfo class specifies the contents of one entry in the context menu.-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Constructor Summary
Constructors Constructor Description ContextMenusOnShapes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-