public class ProgressAnnotation extends ScreenAnnotation
AbstractAnnotation.TextCacheKey
Modifier and Type | Field and 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 |
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 |
---|
ProgressAnnotation() |
ProgressAnnotation(double value,
double min,
double max) |
Modifier and Type | Method and 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) |
computeAnnotationPosition, computeBounds, computeOffset, computeSize, doRenderNow, getPosition, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setPosition, setScreenPoint
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
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 java.awt.Color interiorColor
protected java.awt.Insets interiorInsets
protected double max
protected double min
protected java.awt.Color outlineColor
protected double value
public ProgressAnnotation()
public ProgressAnnotation(double value, double min, double max)
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)
AbstractAnnotation
doDraw
in class AbstractAnnotation
dc
- current DrawContext.width
- annotation callout widthheight
- annotation callout heightopacity
- opacity to applypickPosition
- Position
that will be associated with any PickedObject
produced
during picking.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)
public java.awt.Color getInteriorColor()
public java.awt.Insets getInteriorInsets()
public double getMax()
public double getMin()
public java.awt.Color getOutlineColor()
public double getValue()
public void setInteriorColor(java.awt.Color color)
public void setInteriorInsets(java.awt.Insets insets)
public void setMax(double max)
public void setMin(double min)
public void setOutlineColor(java.awt.Color color)
public void setValue(double value)