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.Color
interiorColor
protected java.awt.Insets
interiorInsets
protected double
max
protected double
min
protected java.awt.Color
outlineColor
protected double
value
-
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.Rectangle
computeProgressBarBounds(int width, int height)
protected int
computeProgressBarWidth(int containerWidth)
protected java.awt.Rectangle
computeProgressContainerBounds(int width, int height)
protected void
doDraw(DrawContext dc, int width, int height, double opacity, Position pickPosition)
Draws an annotation with the given dimensions and opacity.protected void
drawCallout(DrawContext dc, int mode, java.awt.Rectangle bounds, boolean useTexCoords)
protected void
drawProgress(DrawContext dc, int width, int height, double opacity, Position pickPosition)
protected void
drawProgressBar(DrawContext dc, int width, int height, double opacity, Position pickPosition)
protected void
drawProgressContainer(DrawContext dc, int width, int height, double opacity, Position pickPosition)
java.awt.Color
getInteriorColor()
java.awt.Insets
getInteriorInsets()
double
getMax()
double
getMin()
java.awt.Color
getOutlineColor()
double
getValue()
void
setInteriorColor(java.awt.Color color)
void
setInteriorInsets(java.awt.Insets insets)
void
setMax(double max)
void
setMin(double min)
void
setOutlineColor(java.awt.Color color)
void
setValue(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:AbstractAnnotation
Draws an annotation with the given dimensions and opacity. Current GL state has ortho identity model view active with origin at the screen point.- Overrides:
doDraw
in classAbstractAnnotation
- Parameters:
dc
- current DrawContext.width
- annotation callout widthheight
- annotation callout heightopacity
- opacity to applypickPosition
-Position
that will be associated with anyPickedObject
produced 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)
-
-