|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Annotation
Represent a text label and its rendering attributes.
| Field Summary | |
|---|---|
static int |
ANTIALIAS_DONT_CARE
|
static int |
ANTIALIAS_FASTEST
|
static int |
ANTIALIAS_NICEST
|
| Method Summary | |
|---|---|
void |
addChild(Annotation annotation)
|
void |
draw(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition)
Draws the annotation without transforming to its screen position, or applying any scaling. |
AnnotationAttributes |
getAttributes()
|
Rectangle |
getBounds(DrawContext dc)
Get the annotation bounding Rectangle using OGL coordinates - bottom-left corner x and y
relative to the WorldWindow bottom-left corner, and the annotation callout width and height. |
List<? extends Annotation> |
getChildren()
|
Object |
getDelegateOwner()
|
AnnotationLayoutManager |
getLayout()
|
double |
getMaxActiveAltitude()
Returns the maximum eye altitude, in meters, for which the annotation is displayed. |
double |
getMinActiveAltitude()
Returns the minimum eye altitude, in meters, for which the annotation is displayed. |
PickSupport |
getPickSupport()
|
Dimension |
getPreferredSize(DrawContext dc)
|
String |
getText()
|
boolean |
isAlwaysOnTop()
|
boolean |
isPickEnabled()
|
void |
removeAllChildren()
|
boolean |
removeChild(Annotation annotation)
|
void |
renderNow(DrawContext dc)
Draws the annotation immediately on the specified DrawContext. |
void |
setAlwaysOnTop(boolean alwaysOnTop)
|
void |
setAttributes(AnnotationAttributes attrs)
|
void |
setDelegateOwner(Object delegateOwner)
|
void |
setLayout(AnnotationLayoutManager layoutManager)
|
void |
setMaxActiveAltitude(double maxActiveAltitude)
Specifies the maximum eye altitude, in meters, for which the annotation is displayed. |
void |
setMinActiveAltitude(double minActiveAltitude)
Specifies the minimum eye altitude, in meters, for which the annotation is displayed. |
void |
setPickEnabled(boolean enable)
|
void |
setPickSupport(PickSupport pickSupport)
|
void |
setText(String text)
|
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.Disposable |
|---|
dispose |
| Methods inherited from interface gov.nasa.worldwind.Restorable |
|---|
getRestorableState, restoreState |
| Field Detail |
|---|
static final int ANTIALIAS_DONT_CARE
static final int ANTIALIAS_FASTEST
static final int ANTIALIAS_NICEST
| Method Detail |
|---|
void addChild(Annotation annotation)
void draw(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition)
dc - the current DrawContext.width - the width of the Annotation.height - the height of the Annotation.opacity - the opacity of the Annotation.pickPosition - the picked Position assigned to the Annotation, if picking is enabled.
IllegalArgumentException - if dc is null.AnnotationAttributes getAttributes()
Rectangle getBounds(DrawContext dc)
Rectangle using OGL coordinates - bottom-left corner x and y
relative to the WorldWindow bottom-left corner, and the annotation callout width and height.
The annotation offset from it's reference point is factored in such that the callout leader shape and reference
point are included in the bounding rectangle.
dc - the current DrawContext.
Rectangle using OGL viewport coordinates.
IllegalArgumentException - if dc is null.List<? extends Annotation> getChildren()
Object getDelegateOwner()
AnnotationLayoutManager getLayout()
double getMaxActiveAltitude()
setMaxActiveAltitude(double),
getMinActiveAltitude()double getMinActiveAltitude()
setMinActiveAltitude(double),
getMaxActiveAltitude()PickSupport getPickSupport()
Dimension getPreferredSize(DrawContext dc)
String getText()
boolean isAlwaysOnTop()
boolean isPickEnabled()
void removeAllChildren()
boolean removeChild(Annotation annotation)
void renderNow(DrawContext dc)
dc - the current DrawContext.
IllegalArgumentException - if dc is null.void setAlwaysOnTop(boolean alwaysOnTop)
void setAttributes(AnnotationAttributes attrs)
void setDelegateOwner(Object delegateOwner)
void setLayout(AnnotationLayoutManager layoutManager)
void setMaxActiveAltitude(double maxActiveAltitude)
maxActiveAltitude - the maximum altitude, in meters, for which the annotation is displayed.getMaxActiveAltitude(),
setMinActiveAltitude(double)void setMinActiveAltitude(double minActiveAltitude)
minActiveAltitude - the minimum altitude, in meters, for which the annotation is displayed.getMinActiveAltitude(),
setMaxActiveAltitude(double)void setPickEnabled(boolean enable)
void setPickSupport(PickSupport pickSupport)
void setText(String text)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||