Class SlideShowAnnotationController
- java.lang.Object
- 
- gov.nasa.worldwindx.examples.util.DialogAnnotationController
- 
- gov.nasa.worldwindx.examples.util.SlideShowAnnotationController
 
 
- 
- All Implemented Interfaces:
- SelectListener,- java.awt.event.ActionListener,- java.util.EventListener
 
 public class SlideShowAnnotationController extends DialogAnnotationController 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringBUFFERED_IMAGE_CACHE_NAMEstatic java.lang.StringBUFFERED_IMAGE_CACHE_SIZEprotected static longDEFAULT_BUFFERED_IMAGE_CACHE_SIZEprotected java.util.List<java.lang.Object>imageSourcesprotected intindexprotected static java.awt.DimensionLARGE_IMAGE_PREFERRED_SIZEprotected java.lang.ThreadreadThreadprotected static longSLIDESHOW_UPDATE_DELAY_MILLISprotected static java.awt.DimensionSMALL_IMAGE_PREFERRED_SIZEprotected java.lang.Stringstateprotected javax.swing.TimerupdateTimer- 
Fields inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotationControllertoolTipComponent
 
- 
 - 
Constructor SummaryConstructors Constructor Description SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation)SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation, java.lang.Iterable<?> imageSources)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeginPressed(java.awt.event.ActionEvent e)protected java.lang.StringcreatePositionText(int position, int length)protected java.lang.StringcreateTitle(java.lang.Object imageSource)protected voiddoGoToImage(int index)protected voiddoRetrieveAndSetImage(java.lang.Object source, int index)protected voiddoSetImage(PowerOfTwoPaddedImage image, int index)protected voidendPressed(java.awt.event.ActionEvent e)protected PowerOfTwoPaddedImagegetImage(java.lang.Object source)protected java.lang.StringgetImageName(java.lang.Object imageSource)java.util.List<? extends java.lang.Object>getImageSources()intgetIndex()protected intgetNextIndex()java.awt.DimensiongetPreferredImageSize()protected intgetPreviousIndex()java.lang.StringgetState()voidgoToImage(int index)protected booleanhasNextIndex()protected booleanhasPreviousIndex()protected voidinitializeSlideShow()protected voidnextPressed(java.awt.event.ActionEvent e)protected booleannextSlideShowImage()voidonActionPerformed(java.awt.event.ActionEvent e)protected voidonBeginPressed(java.awt.event.ActionEvent e)protected voidonEndPressed(java.awt.event.ActionEvent e)protected voidonNextPressed(java.awt.event.ActionEvent e)protected voidonPlayPressed(java.awt.event.ActionEvent e)protected voidonPreviousPressed(java.awt.event.ActionEvent e)protected voidonResizePressed(java.awt.event.ActionEvent e)protected voidonSlideShowUpdate()protected voidplayPressed(java.awt.event.ActionEvent e)protected voidpreviousPressed(java.awt.event.ActionEvent e)protected booleanputImage(java.lang.Object source, PowerOfTwoPaddedImage image)protected PowerOfTwoPaddedImagereadImage(java.lang.Object source)protected voidresizePressed(java.awt.event.ActionEvent e)protected voidretrieveAndSetImage(java.lang.Object source, int index)voidsetImageSources(java.lang.Iterable<? extends java.lang.Object> imageSources)voidsetPreferredImageSize(java.awt.Dimension size)protected voidstartImageRetrieval(java.lang.Object source, int index)voidstartSlideShow()protected voidstartSlideShowUpdate()protected voidstopImageRetrieval()voidstopRetrievalTasks()voidstopSlideShow()protected voidstopSlideShowUpdate()- 
Methods inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotationControlleractionPerformed, doDisable, doEnable, forwardToButtonAnnotations, getAnnotation, getToolTipPoint, getWorldWindow, glPointFromAwt, isEnabled, onSelected, selected, setAnnotation, setCursor, setEnabled, showToolTip, updateCursor, updateToolTip
 
- 
 
- 
- 
- 
Field Detail- 
BUFFERED_IMAGE_CACHE_SIZEpublic static final java.lang.String BUFFERED_IMAGE_CACHE_SIZE - See Also:
- Constant Field Values
 
 - 
BUFFERED_IMAGE_CACHE_NAMEpublic static final java.lang.String BUFFERED_IMAGE_CACHE_NAME 
 - 
SLIDESHOW_UPDATE_DELAY_MILLISprotected static final long SLIDESHOW_UPDATE_DELAY_MILLIS - See Also:
- Constant Field Values
 
 - 
DEFAULT_BUFFERED_IMAGE_CACHE_SIZEprotected static final long DEFAULT_BUFFERED_IMAGE_CACHE_SIZE - See Also:
- Constant Field Values
 
 - 
SMALL_IMAGE_PREFERRED_SIZEprotected static java.awt.Dimension SMALL_IMAGE_PREFERRED_SIZE 
 - 
LARGE_IMAGE_PREFERRED_SIZEprotected static java.awt.Dimension LARGE_IMAGE_PREFERRED_SIZE 
 - 
indexprotected int index 
 - 
stateprotected java.lang.String state 
 - 
imageSourcesprotected java.util.List<java.lang.Object> imageSources 
 - 
readThreadprotected java.lang.Thread readThread 
 - 
updateTimerprotected javax.swing.Timer updateTimer 
 
- 
 - 
Constructor Detail- 
SlideShowAnnotationControllerpublic SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation, java.lang.Iterable<?> imageSources) 
 - 
SlideShowAnnotationControllerpublic SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation) 
 
- 
 - 
Method Detail- 
initializeSlideShowprotected void initializeSlideShow() 
 - 
getImageSourcespublic java.util.List<? extends java.lang.Object> getImageSources() 
 - 
setImageSourcespublic void setImageSources(java.lang.Iterable<? extends java.lang.Object> imageSources) 
 - 
getStatepublic java.lang.String getState() 
 - 
getIndexpublic int getIndex() 
 - 
goToImagepublic void goToImage(int index) 
 - 
startSlideShowpublic void startSlideShow() 
 - 
stopSlideShowpublic void stopSlideShow() 
 - 
stopRetrievalTaskspublic void stopRetrievalTasks() 
 - 
getPreferredImageSizepublic java.awt.Dimension getPreferredImageSize() 
 - 
setPreferredImageSizepublic void setPreferredImageSize(java.awt.Dimension size) 
 - 
hasPreviousIndexprotected boolean hasPreviousIndex() 
 - 
hasNextIndexprotected boolean hasNextIndex() 
 - 
getPreviousIndexprotected int getPreviousIndex() 
 - 
getNextIndexprotected int getNextIndex() 
 - 
doGoToImageprotected void doGoToImage(int index) 
 - 
doSetImageprotected void doSetImage(PowerOfTwoPaddedImage image, int index) 
 - 
onActionPerformedpublic void onActionPerformed(java.awt.event.ActionEvent e) - Overrides:
- onActionPerformedin class- DialogAnnotationController
 
 - 
playPressedprotected void playPressed(java.awt.event.ActionEvent e) 
 - 
previousPressedprotected void previousPressed(java.awt.event.ActionEvent e) 
 - 
nextPressedprotected void nextPressed(java.awt.event.ActionEvent e) 
 - 
beginPressedprotected void beginPressed(java.awt.event.ActionEvent e) 
 - 
endPressedprotected void endPressed(java.awt.event.ActionEvent e) 
 - 
resizePressedprotected void resizePressed(java.awt.event.ActionEvent e) 
 - 
onPlayPressedprotected void onPlayPressed(java.awt.event.ActionEvent e) 
 - 
onPreviousPressedprotected void onPreviousPressed(java.awt.event.ActionEvent e) 
 - 
onNextPressedprotected void onNextPressed(java.awt.event.ActionEvent e) 
 - 
onBeginPressedprotected void onBeginPressed(java.awt.event.ActionEvent e) 
 - 
onEndPressedprotected void onEndPressed(java.awt.event.ActionEvent e) 
 - 
onResizePressedprotected void onResizePressed(java.awt.event.ActionEvent e) 
 - 
retrieveAndSetImageprotected void retrieveAndSetImage(java.lang.Object source, int index)
 - 
doRetrieveAndSetImageprotected void doRetrieveAndSetImage(java.lang.Object source, int index)
 - 
readImageprotected PowerOfTwoPaddedImage readImage(java.lang.Object source) 
 - 
startImageRetrievalprotected void startImageRetrieval(java.lang.Object source, int index)
 - 
stopImageRetrievalprotected void stopImageRetrieval() 
 - 
getImageprotected PowerOfTwoPaddedImage getImage(java.lang.Object source) 
 - 
putImageprotected boolean putImage(java.lang.Object source, PowerOfTwoPaddedImage image)
 - 
nextSlideShowImageprotected boolean nextSlideShowImage() 
 - 
onSlideShowUpdateprotected void onSlideShowUpdate() 
 - 
startSlideShowUpdateprotected void startSlideShowUpdate() 
 - 
stopSlideShowUpdateprotected void stopSlideShowUpdate() 
 - 
createTitleprotected java.lang.String createTitle(java.lang.Object imageSource) 
 - 
createPositionTextprotected java.lang.String createPositionText(int position, int length)
 - 
getImageNameprotected java.lang.String getImageName(java.lang.Object imageSource) 
 
- 
 
-