NASA World Wind

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.


Field Summary
static int ANTIALIAS_DONT_CARE
           
static int ANTIALIAS_FASTEST
           
static int ANTIALIAS_NICEST
           
static String IMAGE_REPEAT_NONE
           
static String IMAGE_REPEAT_X
           
static String IMAGE_REPEAT_XY
           
static String IMAGE_REPEAT_Y
           
static String SIZE_FIT_TEXT
           
static String SIZE_FIXED
           
 
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()
           
 List<? extends Annotation> getChildren()
           
 Object getDelegateOwner()
           
 AnnotationLayoutManager getLayout()
           
 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 immedately on the specified DrawContext.
 void setAlwaysOnTop(boolean alwaysOnTop)
           
 void setAttributes(AnnotationAttributes attrs)
           
 void setDelegateOwner(Object delegateOwner)
           
 void setLayout(AnnotationLayoutManager layoutManager)
           
 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.pick.Pickable
pick
 
Methods inherited from interface gov.nasa.worldwind.Disposable
dispose
 
Methods inherited from interface gov.nasa.worldwind.Restorable
getRestorableState, restoreState
 

Field Detail

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
Method Detail

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)

NASA World Wind

Hosted by docs.bugaco.com