NASA World Wind

gov.nasa.worldwindx.examples.util
Class DialogAnnotation.BusyImage

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractAnnotation
          extended by gov.nasa.worldwind.render.ScreenAnnotation
              extended by gov.nasa.worldwindx.examples.util.ImageAnnotation
                  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
 
Field Summary
protected  Angle angle
           
protected  Angle increment
           
protected  long lastFrameTime
           
 
Fields inherited from class gov.nasa.worldwindx.examples.util.ImageAnnotation
enableSmoothing, fitSizeToImage, imageHeight, imageWidth, showToolTip, toolTipPoint, toolTipText, useImageAspectRatio, useMipmaps
 
Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotation
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap
 
Fields inherited from interface gov.nasa.worldwind.render.Annotation
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST
 
Constructor Summary
DialogAnnotation.BusyImage(Object imageSource)
           
 
Method Summary
protected  Angle adjustAngleIncrement(DrawContext dc, Angle unitsPerSecond)
           
 void drawContent(DrawContext dc, int width, int height, double opacity, Position pickPosition)
           
 Angle getAngle()
           
 Angle getIncrement()
           
 void setAngle(Angle angle)
           
 void setIncrement(Angle angle)
           
protected  void transformBackgroundImageCoordsToAnnotationCoords(DrawContext dc, int width, int height, WWTexture texture)
          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.
protected  void updateState(DrawContext dc)
           
 
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.ScreenAnnotation
computeBounds, computeOffset, computeSize, doRenderNow, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setScreenPoint
 
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
 

Field Detail

angle

protected Angle angle

increment

protected Angle increment

lastFrameTime

protected long lastFrameTime
Constructor Detail

DialogAnnotation.BusyImage

public DialogAnnotation.BusyImage(Object imageSource)
Method Detail

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)

NASA World Wind