gov.nasa.worldwind.render
Interface Annotation
- All Superinterfaces:
- Disposable, Pickable, Renderable, Restorable
- All Known Implementing Classes:
- AbstractAnnotation, AudioPlayerAnnotation, ButtonAnnotation, DialogAnnotation, DialogAnnotation.BusyImage, GlobeAnnotation, ImageAnnotation, MeasureTool.ControlPoint, ProgressAnnotation, SARAnnotation, ScreenAnnotation, SlideShowAnnotation
public interface Annotation - extends Renderable, Pickable, Disposable, Restorable
Represent a text label and its rendering attributes.
| Methods inherited from interface gov.nasa.worldwind.pick.Pickable |
pick |
ANTIALIAS_DONT_CARE
static final int ANTIALIAS_DONT_CARE
- See Also:
- Constant Field Values
ANTIALIAS_FASTEST
static final int ANTIALIAS_FASTEST
- See Also:
- Constant Field Values
ANTIALIAS_NICEST
static final int ANTIALIAS_NICEST
- See Also:
- Constant Field Values
IMAGE_REPEAT_NONE
static final String IMAGE_REPEAT_NONE
- See Also:
- Constant Field Values
IMAGE_REPEAT_X
static final String IMAGE_REPEAT_X
- See Also:
- Constant Field Values
IMAGE_REPEAT_XY
static final String IMAGE_REPEAT_XY
- See Also:
- Constant Field Values
IMAGE_REPEAT_Y
static final String IMAGE_REPEAT_Y
- See Also:
- Constant Field Values
SIZE_FIT_TEXT
static final String SIZE_FIT_TEXT
- See Also:
- Constant Field Values
SIZE_FIXED
static final String SIZE_FIXED
- See Also:
- Constant Field Values
addChild
void addChild(Annotation annotation)
draw
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. This Annotation is
draw with the specified width, height, and opacity. The GL should have its model view set to whatever
transformation is desired.
- Parameters:
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.
- Throws:
IllegalArgumentException - if dc is null.
getAttributes
AnnotationAttributes getAttributes()
getChildren
List<? extends Annotation> getChildren()
getDelegateOwner
Object getDelegateOwner()
getLayout
AnnotationLayoutManager getLayout()
getPickSupport
PickSupport getPickSupport()
getPreferredSize
Dimension getPreferredSize(DrawContext dc)
getText
String getText()
isAlwaysOnTop
boolean isAlwaysOnTop()
isPickEnabled
boolean isPickEnabled()
removeAllChildren
void removeAllChildren()
removeChild
boolean removeChild(Annotation annotation)
renderNow
void renderNow(DrawContext dc)
- Draws the annotation immedately on the specified DrawContext. Rendering is not be delayed by use of the
DrawContext's ordered mechanism, or any other delayed rendering mechanism. This is typically called by an
AnnotationRenderer while batch rendering. The GL should have its model view set to the identity matrix.
- Parameters:
dc - the current DrawContext.
- Throws:
IllegalArgumentException - if dc is null.
setAlwaysOnTop
void setAlwaysOnTop(boolean alwaysOnTop)
setAttributes
void setAttributes(AnnotationAttributes attrs)
setDelegateOwner
void setDelegateOwner(Object delegateOwner)
setLayout
void setLayout(AnnotationLayoutManager layoutManager)
setPickEnabled
void setPickEnabled(boolean enable)
setPickSupport
void setPickSupport(PickSupport pickSupport)
setText
void setText(String text)
|