protected static class DialogAnnotation.BusyImage extends ImageAnnotation
AbstractAnnotation.TextCacheKey
Modifier and Type | Field and Description |
---|---|
protected Angle |
angle |
protected Angle |
increment |
protected long |
lastFrameTime |
enableSmoothing, fitSizeToImage, imageHeight, imageWidth, showToolTip, toolTipPoint, toolTipText, useImageAspectRatio, useMipmaps
position, screenPoint
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST
Constructor and Description |
---|
BusyImage(java.lang.Object imageSource) |
Modifier and Type | Method and Description |
---|---|
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) |
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
computeAnnotationPosition, computeBounds, computeOffset, computeSize, doRenderNow, getPosition, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setPosition, setScreenPoint
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
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
protected Angle angle
protected Angle increment
protected long lastFrameTime
protected Angle adjustAngleIncrement(DrawContext dc, Angle unitsPerSecond)
public void drawContent(DrawContext dc, int width, int height, double opacity, Position pickPosition)
drawContent
in class ImageAnnotation
public Angle getAngle()
public Angle getIncrement()
public void setAngle(Angle angle)
public void setIncrement(Angle angle)
protected void transformBackgroundImageCoordsToAnnotationCoords(DrawContext dc, int width, int height, WWTexture texture)
AbstractAnnotation
(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
.transformBackgroundImageCoordsToAnnotationCoords
in class ImageAnnotation
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.protected void updateState(DrawContext dc)