public interface Annotation extends Renderable, Disposable, Restorable
Modifier and Type | Field and Description |
---|---|
static int |
ANTIALIAS_DONT_CARE |
static int |
ANTIALIAS_FASTEST |
static int |
ANTIALIAS_NICEST |
Modifier and Type | Method and Description |
---|---|
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() |
java.awt.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. |
java.util.List<? extends Annotation> |
getChildren() |
java.lang.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() |
java.awt.Dimension |
getPreferredSize(DrawContext dc) |
java.lang.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(java.lang.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(java.lang.String text) |
render
dispose
getRestorableState, restoreState
static final int ANTIALIAS_DONT_CARE
static final int ANTIALIAS_FASTEST
static final int ANTIALIAS_NICEST
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.java.lang.IllegalArgumentException
- if dc
is null.AnnotationAttributes getAttributes()
java.awt.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.java.lang.IllegalArgumentException
- if dc
is null.java.util.List<? extends Annotation> getChildren()
java.lang.Object getDelegateOwner()
AnnotationLayoutManager getLayout()
double getMaxActiveAltitude()
setMaxActiveAltitude(double)
,
getMinActiveAltitude()
double getMinActiveAltitude()
setMinActiveAltitude(double)
,
getMaxActiveAltitude()
PickSupport getPickSupport()
java.awt.Dimension getPreferredSize(DrawContext dc)
java.lang.String getText()
boolean isAlwaysOnTop()
boolean isPickEnabled()
void removeAllChildren()
boolean removeChild(Annotation annotation)
void renderNow(DrawContext dc)
dc
- the current DrawContext.java.lang.IllegalArgumentException
- if dc
is null.void setAlwaysOnTop(boolean alwaysOnTop)
void setAttributes(AnnotationAttributes attrs)
void setDelegateOwner(java.lang.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(java.lang.String text)