public class SARAnnotationSupport
extends java.lang.Object
Constructor and Description |
---|
SARAnnotationSupport() |
Modifier and Type | Method and Description |
---|---|
void |
add(SARAnnotation annotation)
Add an annotation.
|
void |
addNew(SARAnnotation annotation,
SARTrack owner) |
void |
addNew(java.lang.String text,
SARTrack owner)
Add a new annotation in the screen center.
|
void |
edit(SARAnnotation annotation)
Edit an annotation.
|
java.lang.String |
getAngleFormat() |
java.lang.Iterable<Annotation> |
getAnnotations()
Get the annotation collection from the RenderableLayer
|
java.lang.Iterable<SARAnnotation> |
getAnnotationsForTrack(SARTrack owner) |
SARAnnotation |
getCurrent()
Get current annotation.
|
AnnotationAttributes |
getDefaults()
Get the default attribute set used for all annotations.
|
boolean |
getEnabled()
Get the annotations enabled state.
|
WorldWindow |
getWwd() |
void |
readAnnotations(java.lang.String filePath,
SARTrack trackOwner) |
void |
remove(SARAnnotation annotation)
Remove an annotation.
|
void |
removeAnnotationsForTrack(SARTrack owner) |
void |
setAngleFormat(java.lang.String format) |
void |
setEnabled(boolean state)
Set annotations enabled state
|
void |
setWwd(WorldWindow wwd)
Set the WorldWindow reference.
|
void |
writeAnnotations(java.lang.String filePath,
SARTrack trackOwner) |
public void add(SARAnnotation annotation)
annotation
- the annotation to add.public void addNew(SARAnnotation annotation, SARTrack owner)
public void addNew(java.lang.String text, SARTrack owner)
text
- the Annotation
text.owner
- if not null, the SARTrack to add the annotation to.
annotation's border and text will be colored according to the owner SARTrack.public void edit(SARAnnotation annotation)
annotation
- the Annotation to be edited.public java.lang.String getAngleFormat()
public java.lang.Iterable<Annotation> getAnnotations()
public java.lang.Iterable<SARAnnotation> getAnnotationsForTrack(SARTrack owner)
public SARAnnotation getCurrent()
public AnnotationAttributes getDefaults()
public boolean getEnabled()
public WorldWindow getWwd()
public void readAnnotations(java.lang.String filePath, SARTrack trackOwner) throws java.io.IOException
java.io.IOException
public void remove(SARAnnotation annotation)
annotation
- the annotation to be removed.public void removeAnnotationsForTrack(SARTrack owner)
public void setAngleFormat(java.lang.String format)
public void setEnabled(boolean state)
state
- true if annotations should be enabled.public void setWwd(WorldWindow wwd)
wwd
- the WorldWindow reference.public void writeAnnotations(java.lang.String filePath, SARTrack trackOwner) throws java.io.IOException
java.io.IOException