NASA World Wind

gov.nasa.worldwind.examples.util
Class SlideShowAnnotationController

java.lang.Object
  extended by gov.nasa.worldwind.examples.util.DialogAnnotationController
      extended by gov.nasa.worldwind.examples.util.SlideShowAnnotationController
All Implemented Interfaces:
SelectListener, java.awt.event.ActionListener, java.util.EventListener

public class SlideShowAnnotationController
extends DialogAnnotationController


Field Summary
static java.lang.String BUFFERED_IMAGE_CACHE_NAME
           
static java.lang.String BUFFERED_IMAGE_CACHE_SIZE
           
protected static long DEFAULT_BUFFERED_IMAGE_CACHE_SIZE
           
protected  java.util.List<java.lang.Object> imageSources
           
protected  int index
           
protected static java.awt.Dimension LARGE_IMAGE_PREFERRED_SIZE
           
protected static long SLIDESHOW_UPDATE_DELAY_MILLIS
           
protected static java.awt.Dimension SMALL_IMAGE_PREFERRED_SIZE
           
protected  java.lang.String state
           
 
Fields inherited from class gov.nasa.worldwind.examples.util.DialogAnnotationController
toolTipComponent
 
Constructor Summary
SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation)
           
SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation, java.util.List<? extends java.lang.Object> imageSources)
           
 
Method Summary
protected  void beginPressed(java.awt.event.ActionEvent e)
           
protected  java.lang.String createPositionText(int position, int length)
           
protected  java.lang.String createTitle(java.lang.Object imageSource)
           
protected  void doGoToImage(int index)
           
protected  void doRetrieveAndSetImage(java.lang.Object source, int index)
           
protected  void doSetImage(PowerOfTwoPaddedImage image, int index)
           
protected  void endPressed(java.awt.event.ActionEvent e)
           
protected  PowerOfTwoPaddedImage getImage(java.lang.Object source)
           
protected  java.lang.String getImageName(java.lang.Object imageSource)
           
 java.util.List<? extends java.lang.Object> getImageSources()
           
 int getIndex()
           
protected  int getNextIndex()
           
 java.awt.Dimension getPreferredImageSize()
           
protected  int getPreviousIndex()
           
 java.lang.String getState()
           
 void goToImage(int index)
           
protected  boolean hasNextIndex()
           
protected  boolean hasPreviousIndex()
           
protected  void initializeSlideShow()
           
protected  void nextPressed(java.awt.event.ActionEvent e)
           
protected  boolean nextSlideShowImage()
           
 void onActionPerformed(java.awt.event.ActionEvent e)
           
protected  void onBeginPressed(java.awt.event.ActionEvent e)
           
protected  void onEndPressed(java.awt.event.ActionEvent e)
           
protected  void onNextPressed(java.awt.event.ActionEvent e)
           
protected  void onPlayPressed(java.awt.event.ActionEvent e)
           
protected  void onPreviousPressed(java.awt.event.ActionEvent e)
           
protected  void onResizePressed(java.awt.event.ActionEvent e)
           
protected  void onSlideShowUpdate()
           
protected  void playPressed(java.awt.event.ActionEvent e)
           
protected  void previousPressed(java.awt.event.ActionEvent e)
           
protected  boolean putImage(java.lang.Object source, PowerOfTwoPaddedImage image)
           
protected  PowerOfTwoPaddedImage readImage(java.lang.Object source)
           
protected  void resizePressed(java.awt.event.ActionEvent e)
           
protected  void retrieveAndSetImage(java.lang.Object source, int index)
           
 void setImageSources(java.util.List<? extends java.lang.Object> imageSources)
           
 void setPreferredImageSize(java.awt.Dimension size)
           
protected  void startImageRetrieval(java.lang.Object source, int index)
           
 void startSlideShow()
           
protected  void startSlideShowUpdate()
           
protected  void stopImageRetrieval()
           
 void stopRetrievalTasks()
           
 void stopSlideShow()
           
protected  void stopSlideShowUpdate()
           
 
Methods inherited from class gov.nasa.worldwind.examples.util.DialogAnnotationController
actionPerformed, doDisable, doEnable, forwardToButtonAnnotations, getAnnotation, getToolTipPoint, getWorldWindow, glPointFromAwt, isEnabled, onSelected, selected, setAnnotation, setCursor, setEnabled, showToolTip, updateCursor, updateToolTip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFERED_IMAGE_CACHE_NAME

public static final java.lang.String BUFFERED_IMAGE_CACHE_NAME

BUFFERED_IMAGE_CACHE_SIZE

public static final java.lang.String BUFFERED_IMAGE_CACHE_SIZE
See Also:
Constant Field Values

DEFAULT_BUFFERED_IMAGE_CACHE_SIZE

protected static final long DEFAULT_BUFFERED_IMAGE_CACHE_SIZE
See Also:
Constant Field Values

imageSources

protected java.util.List<java.lang.Object> imageSources

index

protected int index

LARGE_IMAGE_PREFERRED_SIZE

protected static java.awt.Dimension LARGE_IMAGE_PREFERRED_SIZE

SLIDESHOW_UPDATE_DELAY_MILLIS

protected static final long SLIDESHOW_UPDATE_DELAY_MILLIS
See Also:
Constant Field Values

SMALL_IMAGE_PREFERRED_SIZE

protected static java.awt.Dimension SMALL_IMAGE_PREFERRED_SIZE

state

protected java.lang.String state
Constructor Detail

SlideShowAnnotationController

public SlideShowAnnotationController(WorldWindow worldWindow,
                                     SlideShowAnnotation annotation)

SlideShowAnnotationController

public SlideShowAnnotationController(WorldWindow worldWindow,
                                     SlideShowAnnotation annotation,
                                     java.util.List<? extends java.lang.Object> imageSources)
Method Detail

beginPressed

protected void beginPressed(java.awt.event.ActionEvent e)

createPositionText

protected java.lang.String createPositionText(int position,
                                              int length)

createTitle

protected java.lang.String createTitle(java.lang.Object imageSource)

doGoToImage

protected void doGoToImage(int index)

doRetrieveAndSetImage

protected void doRetrieveAndSetImage(java.lang.Object source,
                                     int index)

doSetImage

protected void doSetImage(PowerOfTwoPaddedImage image,
                          int index)

endPressed

protected void endPressed(java.awt.event.ActionEvent e)

getImage

protected PowerOfTwoPaddedImage getImage(java.lang.Object source)

getImageName

protected java.lang.String getImageName(java.lang.Object imageSource)

getImageSources

public java.util.List<? extends java.lang.Object> getImageSources()

getIndex

public int getIndex()

getNextIndex

protected int getNextIndex()

getPreferredImageSize

public java.awt.Dimension getPreferredImageSize()

getPreviousIndex

protected int getPreviousIndex()

getState

public java.lang.String getState()

goToImage

public void goToImage(int index)

hasNextIndex

protected boolean hasNextIndex()

hasPreviousIndex

protected boolean hasPreviousIndex()

initializeSlideShow

protected void initializeSlideShow()

nextPressed

protected void nextPressed(java.awt.event.ActionEvent e)

nextSlideShowImage

protected boolean nextSlideShowImage()

onActionPerformed

public void onActionPerformed(java.awt.event.ActionEvent e)
Overrides:
onActionPerformed in class DialogAnnotationController

onBeginPressed

protected void onBeginPressed(java.awt.event.ActionEvent e)

onEndPressed

protected void onEndPressed(java.awt.event.ActionEvent e)

onNextPressed

protected void onNextPressed(java.awt.event.ActionEvent e)

onPlayPressed

protected void onPlayPressed(java.awt.event.ActionEvent e)

onPreviousPressed

protected void onPreviousPressed(java.awt.event.ActionEvent e)

onResizePressed

protected void onResizePressed(java.awt.event.ActionEvent e)

onSlideShowUpdate

protected void onSlideShowUpdate()

playPressed

protected void playPressed(java.awt.event.ActionEvent e)

previousPressed

protected void previousPressed(java.awt.event.ActionEvent e)

putImage

protected boolean putImage(java.lang.Object source,
                           PowerOfTwoPaddedImage image)

readImage

protected PowerOfTwoPaddedImage readImage(java.lang.Object source)

resizePressed

protected void resizePressed(java.awt.event.ActionEvent e)

retrieveAndSetImage

protected void retrieveAndSetImage(java.lang.Object source,
                                   int index)

setImageSources

public void setImageSources(java.util.List<? extends java.lang.Object> imageSources)

setPreferredImageSize

public void setPreferredImageSize(java.awt.Dimension size)

startImageRetrieval

protected void startImageRetrieval(java.lang.Object source,
                                   int index)

startSlideShow

public void startSlideShow()

startSlideShowUpdate

protected void startSlideShowUpdate()

stopImageRetrieval

protected void stopImageRetrieval()

stopRetrievalTasks

public void stopRetrievalTasks()

stopSlideShow

public void stopSlideShow()

stopSlideShowUpdate

protected void stopSlideShowUpdate()

NASA World Wind