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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
-
-
Field Summary
Fields Modifier and Type Field Description protected Angleangleprotected Angleincrementprotected longlastFrameTime-
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.ScreenAnnotation
position, screenPoint
-
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
Constructors Constructor Description BusyImage(java.lang.Object imageSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AngleadjustAngleIncrement(DrawContext dc, Angle unitsPerSecond)voiddrawContent(DrawContext dc, int width, int height, double opacity, Position pickPosition)AnglegetAngle()AnglegetIncrement()voidsetAngle(Angle angle)voidsetIncrement(Angle angle)protected voidtransformBackgroundImageCoordsToAnnotationCoords(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 voidupdateState(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
computeAnnotationPosition, computeBounds, computeOffset, computeSize, doRenderNow, getPosition, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setPosition, 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
-
-
-
-
Method Detail
-
getAngle
public Angle getAngle()
-
setAngle
public void setAngle(Angle angle)
-
getIncrement
public Angle getIncrement()
-
setIncrement
public void setIncrement(Angle angle)
-
drawContent
public void drawContent(DrawContext dc, int width, int height, double opacity, Position pickPosition)
- Overrides:
drawContentin classImageAnnotation
-
transformBackgroundImageCoordsToAnnotationCoords
protected void transformBackgroundImageCoordsToAnnotationCoords(DrawContext dc, int width, int height, WWTexture texture)
Description copied from class:AbstractAnnotationTransforms 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 isGL_TEXTURE.- Overrides:
transformBackgroundImageCoordsToAnnotationCoordsin classImageAnnotation- 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)
-
adjustAngleIncrement
protected Angle adjustAngleIncrement(DrawContext dc, Angle unitsPerSecond)
-
-