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 severaland 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.PointPlacemarks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextMenusOnShapes.AppFrameprotected static classContextMenusOnShapes.ContextMenuThe ContextMenu class implements the context menu.protected static classContextMenusOnShapes.ContextMenuControllerThe Controller listens for selection events and either highlights a selected item or shows its context menu.protected static classContextMenusOnShapes.ContextMenuInfoThe ContextMenuInfo class specifies the contents of the context menu.static classContextMenusOnShapes.ContextMenuItemActionThe ContextMenuItemAction responds to user selection of a context menu item.protected static classContextMenusOnShapes.ContextMenuItemInfoThe 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 voidmain(java.lang.String[] args)-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-