public class AnnotationControls extends ApplicationTemplate
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: Modifier and Type | Class and Description |
---|---|
static class |
AnnotationControls.AppFrame |
static class |
AnnotationControls.AudioContentAnnotation |
static class |
AnnotationControls.ContentAnnotation |
static class |
AnnotationControls.ImageContentAnnotation |
ApplicationTemplate.AppPanel
Modifier and Type | Field and 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 and Description |
---|
AnnotationControls() |
Modifier and Type | Method and 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) |
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static final java.lang.String AUDIO
protected static final java.lang.String AUDIO_PATH_MUSIC
protected static final java.lang.String ICON_AUDIO
protected static final java.lang.String ICON_IMAGES
protected static final java.lang.String IMAGE_PATH_IRELAND
protected static final java.lang.String IMAGE_PATH_MT_ST_HELENS
protected static final java.lang.String IMAGE_PATH_NEW_ZEALAND
protected static final java.lang.String IMAGE_PATH_THE_NUT
protected static final java.lang.String IMAGES
public static AnnotationControls.ContentAnnotation createAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Object source)
public static AnnotationControls.ContentAnnotation createContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)
public static java.lang.String createErrorTitle(java.lang.String path)
public static WWIcon createIcon(java.lang.Object type, Position position, java.lang.String title, java.lang.Object data)
public static IconLayer createIconLayer()
public static AnnotationControls.ContentAnnotation createImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, java.lang.String title, java.lang.Iterable sources)
public static java.lang.String createTitle(java.lang.Iterable sources)
public static void main(java.lang.String[] args)
public static javax.sound.sampled.Clip openAudioStream(java.io.InputStream stream) throws java.lang.Exception
java.lang.Exception