NASA World Wind

gov.nasa.worldwind.examples.util
Class AudioPlayerAnnotation

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractAnnotation
          extended by gov.nasa.worldwind.render.GlobeAnnotation
              extended by gov.nasa.worldwind.examples.util.DialogAnnotation
                  extended by gov.nasa.worldwind.examples.util.AudioPlayerAnnotation
All Implemented Interfaces:
AVList, Disposable, Locatable, Movable, Pickable, Annotation, Renderable, Restorable, ActionListener, EventListener

public class AudioPlayerAnnotation
extends DialogAnnotation


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.examples.util.DialogAnnotation
DialogAnnotation.BusyImage
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
 
Field Summary
protected static String BACK_IMAGE_PATH
           
protected static String BACK_TOOLTIP_TEXT
           
protected  ButtonAnnotation backButton
           
protected  long length
           
protected  Annotation lengthLabel
           
protected static String PAUSE_IMAGE_PATH
           
protected static String PAUSE_TOOLTIP_TEXT
           
protected static String PLAY_IMAGE_PATH
           
protected static String PLAY_TOOLTIP_TEXT
           
protected  ButtonAnnotation playButton
           
protected  long position
           
protected  Annotation positionLabel
           
protected  ProgressAnnotation progress
           
protected  Annotation titleLabel
           
 
Fields inherited from class gov.nasa.worldwind.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.AbstractAnnotation
attributes, childList, delegateOwner, layoutManager, text, textBoundsMap, wrappedTextMap
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Fields inherited from interface gov.nasa.worldwind.render.Annotation
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST, IMAGE_REPEAT_NONE, IMAGE_REPEAT_X, IMAGE_REPEAT_XY, IMAGE_REPEAT_Y, SIZE_FIT_TEXT, SIZE_FIXED
 
Constructor Summary
AudioPlayerAnnotation(Position position)
           
 
Method Summary
protected  String formatAsMinutesSeconds(long millis)
           
protected  String formatTimeString(long millis)
           
 ButtonAnnotation getBackButton()
           
 long getClipLength()
           
 Annotation getClipLengthLabel()
           
 long getClipPosition()
           
 Annotation getClipPositionLabel()
           
 ProgressAnnotation getClipProgressBar()
           
 ButtonAnnotation getPlayButton()
           
 Annotation getTitleLabel()
           
protected  void initComponents()
           
protected  void layoutComponents()
           
 void setClipLength(long length)
           
 void setClipPosition(long position)
           
 void setPlayButtonState(String state)
           
protected  void setupProgressBar(ProgressAnnotation annotation)
           
protected  void setupTimeLabel(Annotation annotation)
           
protected  void setupTitle(Annotation annotation)
           
 
Methods inherited from class gov.nasa.worldwind.examples.util.DialogAnnotation
actionPerformed, addActionListener, fireActionPerformed, getActionListeners, getBusyImage, getCloseButton, isBusy, removeActionListener, setBusy, setupContainer, setupDefaultAttributes, setupLabel
 
Methods inherited from class gov.nasa.worldwind.render.GlobeAnnotation
computeLookAtDistance, doRenderNow, getPosition, getReferencePosition, getRestorableState, move, moveTo, restoreState, setDepthFunc, setPosition
 
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation
addChild, adjustSizeToChildren, adjustSizeToText, applyBackgroundTextureState, applyBackgroundTextureTransform, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawContent, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAnnotationTexture, getAttributes, getCachedImage, getChildren, getDelegateOwner, getLayout, getMultiLineTextRenderer, getPickSupport, getPreferredSize, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setCachedImage, setDelegateOwner, setDrawColor, setLayout, setPickEnabled, setPickSupport, setText, transformByModelview, wrapText
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACK_IMAGE_PATH

protected static final String BACK_IMAGE_PATH
See Also:
Constant Field Values

BACK_TOOLTIP_TEXT

protected static final String BACK_TOOLTIP_TEXT
See Also:
Constant Field Values

backButton

protected ButtonAnnotation backButton

length

protected long length

lengthLabel

protected Annotation lengthLabel

PAUSE_IMAGE_PATH

protected static final String PAUSE_IMAGE_PATH
See Also:
Constant Field Values

PAUSE_TOOLTIP_TEXT

protected static final String PAUSE_TOOLTIP_TEXT
See Also:
Constant Field Values

PLAY_IMAGE_PATH

protected static final String PLAY_IMAGE_PATH
See Also:
Constant Field Values

PLAY_TOOLTIP_TEXT

protected static final String PLAY_TOOLTIP_TEXT
See Also:
Constant Field Values

playButton

protected ButtonAnnotation playButton

position

protected long position

positionLabel

protected Annotation positionLabel

progress

protected ProgressAnnotation progress

titleLabel

protected Annotation titleLabel
Constructor Detail

AudioPlayerAnnotation

public AudioPlayerAnnotation(Position position)
Method Detail

formatAsMinutesSeconds

protected String formatAsMinutesSeconds(long millis)

formatTimeString

protected String formatTimeString(long millis)

getBackButton

public ButtonAnnotation getBackButton()

getClipLength

public long getClipLength()

getClipLengthLabel

public Annotation getClipLengthLabel()

getClipPosition

public long getClipPosition()

getClipPositionLabel

public Annotation getClipPositionLabel()

getClipProgressBar

public ProgressAnnotation getClipProgressBar()

getPlayButton

public ButtonAnnotation getPlayButton()

getTitleLabel

public Annotation getTitleLabel()

initComponents

protected void initComponents()
Overrides:
initComponents in class DialogAnnotation

layoutComponents

protected void layoutComponents()
Overrides:
layoutComponents in class DialogAnnotation

setClipLength

public void setClipLength(long length)

setClipPosition

public void setClipPosition(long position)

setPlayButtonState

public void setPlayButtonState(String state)

setupProgressBar

protected void setupProgressBar(ProgressAnnotation annotation)

setupTimeLabel

protected void setupTimeLabel(Annotation annotation)

setupTitle

protected void setupTitle(Annotation annotation)

NASA World Wind