Class AudioPlayerAnnotation
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.AbstractAnnotation
-
- gov.nasa.worldwind.render.GlobeAnnotation
-
- gov.nasa.worldwindx.examples.util.DialogAnnotation
-
- gov.nasa.worldwindx.examples.util.AudioPlayerAnnotation
-
- All Implemented Interfaces:
AVList,Disposable,Draggable,Locatable,Movable,Annotation,Renderable,Restorable,java.awt.event.ActionListener,java.util.EventListener
public class AudioPlayerAnnotation extends DialogAnnotation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotation
DialogAnnotation.BusyImage
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringBACK_IMAGE_PATHprotected static java.lang.StringBACK_TOOLTIP_TEXTprotected ButtonAnnotationbackButtonprotected longlengthprotected AnnotationlengthLabelprotected static java.lang.StringPAUSE_IMAGE_PATHprotected static java.lang.StringPAUSE_TOOLTIP_TEXTprotected static java.lang.StringPLAY_IMAGE_PATHprotected static java.lang.StringPLAY_TOOLTIP_TEXTprotected ButtonAnnotationplayButtonprotected longpositionprotected AnnotationpositionLabelprotected ProgressAnnotationprogressprotected AnnotationtitleLabel-
Fields inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotation
busy, BUSY_IMAGE_PATH, busyImage, CLOSE_IMAGE_PATH, CLOSE_TOOLTIP_TEXT, closeButton, DEPRESSED_MASK_PATH, listenerList
-
Fields inherited from class gov.nasa.worldwind.render.GlobeAnnotation
altitudeMode, dragEnabled, draggableSupport, heightInMeter
-
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 AudioPlayerAnnotation(Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringformatAsMinutesSeconds(long millis)protected java.lang.StringformatTimeString(long millis)ButtonAnnotationgetBackButton()longgetClipLength()AnnotationgetClipLengthLabel()longgetClipPosition()AnnotationgetClipPositionLabel()ProgressAnnotationgetClipProgressBar()ButtonAnnotationgetPlayButton()AnnotationgetTitleLabel()protected voidinitComponents()protected voidlayoutComponents()voidsetClipLength(long length)voidsetClipPosition(long position)voidsetPlayButtonState(java.lang.String state)protected voidsetupProgressBar(ProgressAnnotation annotation)protected voidsetupTimeLabel(Annotation annotation)protected voidsetupTitle(Annotation annotation)-
Methods inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotation
actionPerformed, addActionListener, fireActionPerformed, getActionListeners, getBusyImage, getCloseButton, isBusy, removeActionListener, setBusy, setupContainer, setupDefaultAttributes, setupLabel
-
Methods inherited from class gov.nasa.worldwind.render.GlobeAnnotation
computeBounds, computeDistanceScaleAndOpacity, computeLookAtDistance, doDrag, doRenderNow, drag, getAltitudeMode, getAnnotationDrawPoint, getAnnotationDrawPointLegacy, getHeightInMeter, getPosition, getReferencePosition, getRestorableState, isDragEnabled, move, moveTo, restoreState, setAltitudeMode, setDepthFunc, setDragEnabled, setHeightInMeter, setPosition
-
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, doDraw, 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
-
-
-
-
Field Detail
-
PLAY_IMAGE_PATH
protected static final java.lang.String PLAY_IMAGE_PATH
- See Also:
- Constant Field Values
-
PAUSE_IMAGE_PATH
protected static final java.lang.String PAUSE_IMAGE_PATH
- See Also:
- Constant Field Values
-
BACK_IMAGE_PATH
protected static final java.lang.String BACK_IMAGE_PATH
- See Also:
- Constant Field Values
-
PLAY_TOOLTIP_TEXT
protected static final java.lang.String PLAY_TOOLTIP_TEXT
- See Also:
- Constant Field Values
-
PAUSE_TOOLTIP_TEXT
protected static final java.lang.String PAUSE_TOOLTIP_TEXT
- See Also:
- Constant Field Values
-
BACK_TOOLTIP_TEXT
protected static final java.lang.String BACK_TOOLTIP_TEXT
- See Also:
- Constant Field Values
-
position
protected long position
-
length
protected long length
-
titleLabel
protected Annotation titleLabel
-
playButton
protected ButtonAnnotation playButton
-
backButton
protected ButtonAnnotation backButton
-
positionLabel
protected Annotation positionLabel
-
lengthLabel
protected Annotation lengthLabel
-
progress
protected ProgressAnnotation progress
-
-
Constructor Detail
-
AudioPlayerAnnotation
public AudioPlayerAnnotation(Position position)
-
-
Method Detail
-
getClipPosition
public long getClipPosition()
-
setClipPosition
public void setClipPosition(long position)
-
getClipLength
public long getClipLength()
-
setClipLength
public void setClipLength(long length)
-
getTitleLabel
public Annotation getTitleLabel()
-
getPlayButton
public ButtonAnnotation getPlayButton()
-
getBackButton
public ButtonAnnotation getBackButton()
-
getClipPositionLabel
public Annotation getClipPositionLabel()
-
getClipLengthLabel
public Annotation getClipLengthLabel()
-
getClipProgressBar
public ProgressAnnotation getClipProgressBar()
-
setPlayButtonState
public void setPlayButtonState(java.lang.String state)
-
initComponents
protected void initComponents()
- Overrides:
initComponentsin classDialogAnnotation
-
layoutComponents
protected void layoutComponents()
- Overrides:
layoutComponentsin classDialogAnnotation
-
setupTitle
protected void setupTitle(Annotation annotation)
-
setupTimeLabel
protected void setupTimeLabel(Annotation annotation)
-
setupProgressBar
protected void setupProgressBar(ProgressAnnotation annotation)
-
formatTimeString
protected java.lang.String formatTimeString(long millis)
-
formatAsMinutesSeconds
protected java.lang.String formatAsMinutesSeconds(long millis)
-
-