gov.nasa.worldwindx.examples.util
Class DialogAnnotation.BusyImage
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.AbstractAnnotation
gov.nasa.worldwind.render.ScreenAnnotation
gov.nasa.worldwindx.examples.util.ImageAnnotation
gov.nasa.worldwindx.examples.util.DialogAnnotation.BusyImage
- All Implemented Interfaces:
- AVList, Disposable, Annotation, Renderable, Restorable
- Enclosing class:
- DialogAnnotation
protected static class DialogAnnotation.BusyImage
- extends ImageAnnotation
| Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotation |
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap |
| Methods inherited from class gov.nasa.worldwindx.examples.util.ImageAnnotation |
applyBackgroundTextureState, doDrawToolTip, drawToolTip, getImageDimension, getImageSize, getImageSource, getPreferredSize, getTexture, getToolTipPoint, getToolTipText, isEnableSmoothing, isFitSizeToImage, isShowToolTip, isUseImageAspectRatio, isUseMipmaps, setEnableSmoothing, setFitSizeToImage, setImageSource, setImageSource, setShowToolTip, setToolTipPoint, setToolTipText, setupAnnotationAttributes, setUseImageAspectRatio, setUseMipmaps |
| Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation |
addChild, adjustSizeToChildren, adjustSizeToText, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, transformByModelview, transformImageCoordsToBackgroundImageCoords, wrapText |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
angle
protected Angle angle
increment
protected Angle increment
lastFrameTime
protected long lastFrameTime
DialogAnnotation.BusyImage
public DialogAnnotation.BusyImage(Object imageSource)
adjustAngleIncrement
protected Angle adjustAngleIncrement(DrawContext dc,
Angle unitsPerSecond)
drawContent
public void drawContent(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition)
- Overrides:
drawContent in class ImageAnnotation
getAngle
public Angle getAngle()
getIncrement
public Angle getIncrement()
setAngle
public void setAngle(Angle angle)
setIncrement
public void setIncrement(Angle angle)
transformBackgroundImageCoordsToAnnotationCoords
protected void transformBackgroundImageCoordsToAnnotationCoords(DrawContext dc,
int width,
int height,
WWTexture texture)
- Description copied from class:
AbstractAnnotation
- Transforms texture coordinates from Annotation background image coordinates to Annotation geometry coordinates
(in screen pixels), and applies the Annotation's image scale and image offset attributes. In Annotation
background image coordinates
(0, 0) maps to the image's upper left corner, and (imageWidth,
imageHeight) maps to the image's lower right corner. In Annotation geometry coordinates (0,
0) maps to the Annotation geometry's lower left corner (ignoring any leader geometry), and (width,
height) maps to the Annotation's upper right corner in window coordinates (screen pixels). This assumes
the current OGL matrix mode is GL_TEXTURE.
- Overrides:
transformBackgroundImageCoordsToAnnotationCoords in class ImageAnnotation
- Parameters:
dc - the DrawContext to receive the texture coordinate transform.width - the Annotation's width, in window coordinates (screen pixels).height - the Annotation's height, in window coordinates (screen pixels).texture - the texture to transform from Annotation background image coordinates to Annotation geometry
coordinates.
updateState
protected void updateState(DrawContext dc)