Class ProgressAnnotation
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.AbstractAnnotation
-
- gov.nasa.worldwind.render.ScreenAnnotation
-
- gov.nasa.worldwindx.examples.util.ProgressAnnotation
-
- All Implemented Interfaces:
AVList,Disposable,Annotation,Renderable,Restorable
public class ProgressAnnotation extends ScreenAnnotation
-
-
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 java.awt.ColorinteriorColorprotected java.awt.InsetsinteriorInsetsprotected doublemaxprotected doubleminprotected java.awt.ColoroutlineColorprotected doublevalue-
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 ProgressAnnotation()ProgressAnnotation(double value, double min, double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.RectanglecomputeProgressBarBounds(int width, int height)protected intcomputeProgressBarWidth(int containerWidth)protected java.awt.RectanglecomputeProgressContainerBounds(int width, int height)protected voiddoDraw(DrawContext dc, int width, int height, double opacity, Position pickPosition)Draws an annotation with the given dimensions and opacity.protected voiddrawCallout(DrawContext dc, int mode, java.awt.Rectangle bounds, boolean useTexCoords)protected voiddrawProgress(DrawContext dc, int width, int height, double opacity, Position pickPosition)protected voiddrawProgressBar(DrawContext dc, int width, int height, double opacity, Position pickPosition)protected voiddrawProgressContainer(DrawContext dc, int width, int height, double opacity, Position pickPosition)java.awt.ColorgetInteriorColor()java.awt.InsetsgetInteriorInsets()doublegetMax()doublegetMin()java.awt.ColorgetOutlineColor()doublegetValue()voidsetInteriorColor(java.awt.Color color)voidsetInteriorInsets(java.awt.Insets insets)voidsetMax(double max)voidsetMin(double min)voidsetOutlineColor(java.awt.Color color)voidsetValue(double value)-
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, applyBackgroundTextureState, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawContent, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getPreferredSize, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, transformBackgroundImageCoordsToAnnotationCoords, 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
-
getValue
public double getValue()
-
setValue
public void setValue(double value)
-
getMin
public double getMin()
-
setMin
public void setMin(double min)
-
getMax
public double getMax()
-
setMax
public void setMax(double max)
-
getOutlineColor
public java.awt.Color getOutlineColor()
-
setOutlineColor
public void setOutlineColor(java.awt.Color color)
-
getInteriorColor
public java.awt.Color getInteriorColor()
-
setInteriorColor
public void setInteriorColor(java.awt.Color color)
-
getInteriorInsets
public java.awt.Insets getInteriorInsets()
-
setInteriorInsets
public void setInteriorInsets(java.awt.Insets insets)
-
doDraw
protected void doDraw(DrawContext dc, int width, int height, double opacity, Position pickPosition)
Description copied from class:AbstractAnnotationDraws an annotation with the given dimensions and opacity. Current GL state has ortho identity model view active with origin at the screen point.- Overrides:
doDrawin classAbstractAnnotation- Parameters:
dc- current DrawContext.width- annotation callout widthheight- annotation callout heightopacity- opacity to applypickPosition-Positionthat will be associated with anyPickedObjectproduced during picking.
-
drawProgress
protected void drawProgress(DrawContext dc, int width, int height, double opacity, Position pickPosition)
-
drawProgressContainer
protected void drawProgressContainer(DrawContext dc, int width, int height, double opacity, Position pickPosition)
-
drawProgressBar
protected void drawProgressBar(DrawContext dc, int width, int height, double opacity, Position pickPosition)
-
drawCallout
protected void drawCallout(DrawContext dc, int mode, java.awt.Rectangle bounds, boolean useTexCoords)
-
computeProgressContainerBounds
protected java.awt.Rectangle computeProgressContainerBounds(int width, int height)
-
computeProgressBarBounds
protected java.awt.Rectangle computeProgressBarBounds(int width, int height)
-
computeProgressBarWidth
protected int computeProgressBarWidth(int containerWidth)
-
-