|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.examples.ApplicationTemplate
gov.nasa.worldwind.examples.ContextMenusOnShapes
public class ContextMenusOnShapes
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.
PointPlacemarks
| 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 |
|---|
public ContextMenusOnShapes()
| Method Detail |
|---|
public static void main(String[] args)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||