Package gov.nasa.worldwindx.examples
Class AnnotationControls
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.AnnotationControls
-
public class AnnotationControls extends ApplicationTemplate
Illustrates how to use a WorldWind
with anAnnotation
to display an Annotation with a simple embedded user interface. The custom Annotation layouts illustrated here can be found in the following example classes:AnnotationLayoutManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationControls.AppFrame
static class
AnnotationControls.AudioContentAnnotation
static class
AnnotationControls.ContentAnnotation
static class
AnnotationControls.ImageContentAnnotation
-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
AUDIO
protected static java.lang.String
AUDIO_PATH_MUSIC
protected static java.lang.String
ICON_AUDIO
protected static java.lang.String
ICON_IMAGES
protected static java.lang.String
IMAGE_PATH_IRELAND
protected static java.lang.String
IMAGE_PATH_MT_ST_HELENS
protected static java.lang.String
IMAGE_PATH_NEW_ZEALAND
protected static java.lang.String
IMAGE_PATH_THE_NUT
protected static java.lang.String
IMAGES
-
Constructor Summary
Constructors Constructor Description AnnotationControls()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationControls.ContentAnnotation
createAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Object source)
static AnnotationControls.ContentAnnotation
createContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)
static java.lang.String
createErrorTitle(java.lang.String path)
static WWIcon
createIcon(java.lang.Object type, Position position, java.lang.String title, java.lang.Object data)
static IconLayer
createIconLayer()
static AnnotationControls.ContentAnnotation
createImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Iterable sources)
static java.lang.String
createTitle(java.lang.Iterable sources)
static void
main(java.lang.String[] args)
static javax.sound.sampled.Clip
openAudioStream(java.io.InputStream stream)
-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-
-
-
Field Detail
-
AUDIO
protected static final java.lang.String AUDIO
- See Also:
- Constant Field Values
-
IMAGES
protected static final java.lang.String IMAGES
- See Also:
- Constant Field Values
-
ICON_AUDIO
protected static final java.lang.String ICON_AUDIO
- See Also:
- Constant Field Values
-
ICON_IMAGES
protected static final java.lang.String ICON_IMAGES
- See Also:
- Constant Field Values
-
AUDIO_PATH_MUSIC
protected static final java.lang.String AUDIO_PATH_MUSIC
- See Also:
- Constant Field Values
-
IMAGE_PATH_MT_ST_HELENS
protected static final java.lang.String IMAGE_PATH_MT_ST_HELENS
- See Also:
- Constant Field Values
-
IMAGE_PATH_THE_NUT
protected static final java.lang.String IMAGE_PATH_THE_NUT
- See Also:
- Constant Field Values
-
IMAGE_PATH_IRELAND
protected static final java.lang.String IMAGE_PATH_IRELAND
- See Also:
- Constant Field Values
-
IMAGE_PATH_NEW_ZEALAND
protected static final java.lang.String IMAGE_PATH_NEW_ZEALAND
- See Also:
- Constant Field Values
-
-
Method Detail
-
createIconLayer
public static IconLayer createIconLayer()
-
createIcon
public static WWIcon createIcon(java.lang.Object type, Position position, java.lang.String title, java.lang.Object data)
-
createContentAnnotation
public static AnnotationControls.ContentAnnotation createContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)
-
createAudioAnnotation
public static AnnotationControls.ContentAnnotation createAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Object source)
-
createImageAnnotation
public static AnnotationControls.ContentAnnotation createImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Iterable sources)
-
openAudioStream
public static javax.sound.sampled.Clip openAudioStream(java.io.InputStream stream) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createErrorTitle
public static java.lang.String createErrorTitle(java.lang.String path)
-
createTitle
public static java.lang.String createTitle(java.lang.Iterable sources)
-
main
public static void main(java.lang.String[] args)
-
-