|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.applications.sar.SARAnnotationSupport
public class SARAnnotationSupport
Handles SAR annotations
Constructor Summary | |
---|---|
SARAnnotationSupport()
|
Method Summary | |
---|---|
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.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 |
setEnabled(boolean state)
Set annotations enabled state |
void |
setWwd(WorldWindow wwd)
Set the WorldWindow reference. |
void |
writeAnnotations(java.lang.String filePath,
SARTrack trackOwner)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SARAnnotationSupport()
Method Detail |
---|
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.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 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
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |