public class SARAnnotationSupport extends 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(String text,
      SARTrack owner)Add a new annotation in the screen center. | 
| void | edit(SARAnnotation annotation)Edit an annotation. | 
| String | getAngleFormat() | 
| Iterable<Annotation> | getAnnotations()Get the annotation collection from the RenderableLayer | 
| 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(String filePath,
               SARTrack trackOwner) | 
| void | remove(SARAnnotation annotation)Remove an annotation. | 
| void | removeAnnotationsForTrack(SARTrack owner) | 
| void | setAngleFormat(String format) | 
| void | setEnabled(boolean state)Set annotations enabled state | 
| void | setWwd(WorldWindow wwd)Set the WorldWindow reference. | 
| void | writeAnnotations(String filePath,
                SARTrack trackOwner) | 
public void add(SARAnnotation annotation)
annotation - the annotation to add.public void addNew(SARAnnotation annotation, SARTrack owner)
public void addNew(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 String getAngleFormat()
public Iterable<Annotation> getAnnotations()
public Iterable<SARAnnotation> getAnnotationsForTrack(SARTrack owner)
public SARAnnotation getCurrent()
public AnnotationAttributes getDefaults()
public boolean getEnabled()
public WorldWindow getWwd()
public void readAnnotations(String filePath, SARTrack trackOwner) throws IOException
IOExceptionpublic void remove(SARAnnotation annotation)
annotation - the annotation to be removed.public void removeAnnotationsForTrack(SARTrack owner)
public void setAngleFormat(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(String filePath, SARTrack trackOwner) throws IOException
IOException