public class ProgressAnnotation extends ScreenAnnotation
AbstractAnnotation.TextCacheKey
Modifier and Type | Field and Description |
---|---|
protected Color |
interiorColor |
protected Insets |
interiorInsets |
protected double |
max |
protected double |
min |
protected 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 Rectangle |
computeProgressBarBounds(int width,
int height) |
protected int |
computeProgressBarWidth(int containerWidth) |
protected 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,
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) |
Color |
getInteriorColor() |
Insets |
getInteriorInsets() |
double |
getMax() |
double |
getMin() |
Color |
getOutlineColor() |
double |
getValue() |
void |
setInteriorColor(Color color) |
void |
setInteriorInsets(Insets insets) |
void |
setMax(double max) |
void |
setMin(double min) |
void |
setOutlineColor(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 Color interiorColor
protected Insets interiorInsets
protected double max
protected double min
protected Color outlineColor
protected double value
public ProgressAnnotation()
public ProgressAnnotation(double value, double min, double max)
protected Rectangle computeProgressBarBounds(int width, int height)
protected int computeProgressBarWidth(int containerWidth)
protected 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, 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 Color getInteriorColor()
public Insets getInteriorInsets()
public double getMax()
public double getMin()
public Color getOutlineColor()
public double getValue()
public void setInteriorColor(Color color)
public void setInteriorInsets(Insets insets)
public void setMax(double max)
public void setMin(double min)
public void setOutlineColor(Color color)
public void setValue(double value)