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 WorldWindwith anAnnotationto 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 classAnnotationControls.AppFramestatic classAnnotationControls.AudioContentAnnotationstatic classAnnotationControls.ContentAnnotationstatic classAnnotationControls.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.StringAUDIOprotected static java.lang.StringAUDIO_PATH_MUSICprotected static java.lang.StringICON_AUDIOprotected static java.lang.StringICON_IMAGESprotected static java.lang.StringIMAGE_PATH_IRELANDprotected static java.lang.StringIMAGE_PATH_MT_ST_HELENSprotected static java.lang.StringIMAGE_PATH_NEW_ZEALANDprotected static java.lang.StringIMAGE_PATH_THE_NUTprotected static java.lang.StringIMAGES
-
Constructor Summary
Constructors Constructor Description AnnotationControls()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationControls.ContentAnnotationcreateAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Object source)static AnnotationControls.ContentAnnotationcreateContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)static java.lang.StringcreateErrorTitle(java.lang.String path)static WWIconcreateIcon(java.lang.Object type, Position position, java.lang.String title, java.lang.Object data)static IconLayercreateIconLayer()static AnnotationControls.ContentAnnotationcreateImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Iterable sources)static java.lang.StringcreateTitle(java.lang.Iterable sources)static voidmain(java.lang.String[] args)static javax.sound.sampled.ClipopenAudioStream(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)
-
-