NASA World Wind

gov.nasa.worldwind.examples
Class ContextMenusOnShapes

java.lang.Object
  extended by gov.nasa.worldwind.examples.ApplicationTemplate
      extended by gov.nasa.worldwind.examples.ContextMenusOnShapes

public class ContextMenusOnShapes
extends ApplicationTemplate

Illustrates how to attach context (popup) menus to shapes. The example creates several PointPlacemarks 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.


Nested Class Summary
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.worldwind.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
 
Constructor Summary
ContextMenusOnShapes()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class gov.nasa.worldwind.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextMenusOnShapes

public ContextMenusOnShapes()
Method Detail

main

public static void main(String[] args)

NASA World Wind