|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.AbstractAnnotation
gov.nasa.worldwind.render.GlobeAnnotation
public class GlobeAnnotation
Represent a text label attached to a Position on the globe and its rendering attributes.
AbstractAnnotation,
AnnotationAttributes| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotation |
|---|
alphaFactor, attributes, drawRectangle, freeRectangle, renderInfo, scaleFactor, text |
| Fields inherited from interface gov.nasa.worldwind.render.Annotation |
|---|
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST, IMAGE_REPEAT_NONE, IMAGE_REPEAT_X, IMAGE_REPEAT_XY, IMAGE_REPEAT_Y, SIZE_FIT_TEXT, SIZE_FIXED |
| Constructor Summary | |
|---|---|
GlobeAnnotation(String text,
Position position)
Creates a GlobeAnnotation with the given text, at the given globe Position. |
|
GlobeAnnotation(String text,
Position position,
AnnotationAttributes defaults)
Creates a GlobeAnnotation with the given text, at the given globe Position. |
|
GlobeAnnotation(String text,
Position position,
Font font)
Creates a GlobeAnnotation with the given text, at the given globe Position. |
|
GlobeAnnotation(String text,
Position position,
Font font,
Color textColor)
Creates a GlobeAnnotation with the given text, at the given globe Position. |
|
| Method Summary | |
|---|---|
protected void |
doDraw(DrawContext dc)
|
Position |
getPosition()
|
Position |
getReferencePosition()
|
void |
move(Position position)
Shift the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to North. |
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to North. |
void |
setPosition(Position position)
|
| Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation |
|---|
cacheRenderInfo, computeLookAtDistance, dispose, draw, drawAnnotation, getAttributes, getPickSupport, getRectangleInViewportCoordinates, getRenderInfo, getText, getTextRenderer, initializeTexture, pick, render, setAttributes, setDepthFunc, setDrawColor, setDrawColor, setPickSupport, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobeAnnotation(String text,
Position position)
GlobeAnnotation with the given text, at the given globe Position.
text - the annotation text.position - the annotation Position.
public GlobeAnnotation(String text,
Position position,
AnnotationAttributes defaults)
GlobeAnnotation with the given text, at the given globe Position.
Specify the default AnnotationAttributes set.
text - the annotation text.position - the annotation Position.defaults - the default AnnotationAttributes set.
public GlobeAnnotation(String text,
Position position,
Font font)
GlobeAnnotation with the given text, at the given globe Position.
Specifiy the Font to be used.
text - the annotation text.position - the annotation Position.font - the Font to use.
public GlobeAnnotation(String text,
Position position,
Font font,
Color textColor)
GlobeAnnotation with the given text, at the given globe Position.
Specifiy the Font and text Color to be used.
text - the annotation text.position - the annotation Position.font - the Font to use.textColor - the text Color.| Method Detail |
|---|
protected void doDraw(DrawContext dc)
doDraw in class AbstractAnnotationpublic Position getPosition()
getPosition in interface Locatablepublic Position getReferencePosition()
getReferencePosition in interface Movablepublic void move(Position position)
Movable
move in interface Movableposition - the latitude and longitude to add to the shapes reference position.public void moveTo(Position position)
Movable
moveTo in interface Movableposition - the new position of the shapes reference position.public void setPosition(Position position)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||