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 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 and Description |
---|
AnnotationControls() |
Modifier and Type | Method and Description |
---|---|
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) |
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static final String AUDIO
protected static final String AUDIO_PATH_MUSIC
protected static final String ICON_AUDIO
protected static final String ICON_IMAGES
protected static final String IMAGE_PATH_IRELAND
protected static final String IMAGE_PATH_MT_ST_HELENS
protected static final String IMAGE_PATH_NEW_ZEALAND
protected static final String IMAGE_PATH_THE_NUT
protected static final String IMAGES
public static AnnotationControls.ContentAnnotation createAudioAnnotation(AnnotationControls.AppFrame appFrame, Position position, String title, Object source)
public static AnnotationControls.ContentAnnotation createContentAnnotation(AnnotationControls.AppFrame appFrame, Position position, AVList params)
public static WWIcon createIcon(Object type, Position position, String title, Object data)
public static IconLayer createIconLayer()
public static AnnotationControls.ContentAnnotation createImageAnnotation(AnnotationControls.AppFrame appFrame, Position position, String title, Iterable sources)
public static void main(String[] args)
public static Clip openAudioStream(InputStream stream) throws Exception
Exception