NASA World Wind

gov.nasa.worldwindx.examples
Class AnnotationControls

java.lang.Object
  extended by gov.nasa.worldwindx.examples.ApplicationTemplate
      extended by gov.nasa.worldwindx.examples.AnnotationControls

public class AnnotationControls
extends ApplicationTemplate

Illustrates how to use a World Wind Annotation with an AnnotationLayoutManager to display an Annotation with a simple embedded user interface. The custom Annotation layouts illustrated here can be found in the following example classes:


Nested Class Summary
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
protected static String AUDIO
           
protected static String AUDIO_PATH_MUSIC
           
protected static String ICON_AUDIO
           
protected static String ICON_IMAGES
           
protected static String IMAGE_PATH_IRELAND
           
protected static String IMAGE_PATH_MT_ST_HELENS
           
protected static String IMAGE_PATH_NEW_ZEALAND
           
protected static String IMAGE_PATH_THE_NUT
           
protected static String IMAGES
           
 
Constructor Summary
AnnotationControls()
           
 
Method Summary
static AnnotationControls.ContentAnnotation createAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, String title, Object source)
           
static AnnotationControls.ContentAnnotation createContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)
           
static String createErrorTitle(String path)
           
static WWIcon createIcon(Object type, Position position, String title, Object data)
           
static IconLayer createIconLayer()
           
static AnnotationControls.ContentAnnotation createImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, String title, Iterable sources)
           
static String createTitle(Iterable sources)
           
static void main(String[] args)
           
static Clip openAudioStream(InputStream stream)
           
 
Methods inherited from class gov.nasa.worldwindx.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
 

Field Detail

AUDIO

protected static final String AUDIO
See Also:
Constant Field Values

AUDIO_PATH_MUSIC

protected static final String AUDIO_PATH_MUSIC
See Also:
Constant Field Values

ICON_AUDIO

protected static final String ICON_AUDIO
See Also:
Constant Field Values

ICON_IMAGES

protected static final String ICON_IMAGES
See Also:
Constant Field Values

IMAGE_PATH_IRELAND

protected static final String IMAGE_PATH_IRELAND
See Also:
Constant Field Values

IMAGE_PATH_MT_ST_HELENS

protected static final String IMAGE_PATH_MT_ST_HELENS
See Also:
Constant Field Values

IMAGE_PATH_NEW_ZEALAND

protected static final String IMAGE_PATH_NEW_ZEALAND
See Also:
Constant Field Values

IMAGE_PATH_THE_NUT

protected static final String IMAGE_PATH_THE_NUT
See Also:
Constant Field Values

IMAGES

protected static final String IMAGES
See Also:
Constant Field Values
Constructor Detail

AnnotationControls

public AnnotationControls()
Method Detail

createAudioAnnotation

public static AnnotationControls.ContentAnnotation createAudioAnnotation(AnnotationControls.AppFrame appFrame,
                                                                         Position position,
                                                                         String title,
                                                                         Object source)

createContentAnnotation

public static AnnotationControls.ContentAnnotation createContentAnnotation(AnnotationControls.AppFrame appFrame,
                                                                           Position position,
                                                                           AVList params)

createErrorTitle

public static String createErrorTitle(String path)

createIcon

public static WWIcon createIcon(Object type,
                                Position position,
                                String title,
                                Object data)

createIconLayer

public static IconLayer createIconLayer()

createImageAnnotation

public static AnnotationControls.ContentAnnotation createImageAnnotation(AnnotationControls.AppFrame appFrame,
                                                                         Position position,
                                                                         String title,
                                                                         Iterable sources)

createTitle

public static String createTitle(Iterable sources)

main

public static void main(String[] args)

openAudioStream

public static Clip openAudioStream(InputStream stream)
                            throws Exception
Throws:
Exception

NASA World Wind