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 Summary
Fields 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.DialogAnnotationController
toolTipComponent
-
-
Constructor Summary
Constructors Constructor Description SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation)SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation, java.lang.Iterable<?> imageSources)
-
Method Summary
All 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.DialogAnnotationController
actionPerformed, doDisable, doEnable, forwardToButtonAnnotations, getAnnotation, getToolTipPoint, getWorldWindow, glPointFromAwt, isEnabled, onSelected, selected, setAnnotation, setCursor, setEnabled, showToolTip, updateCursor, updateToolTip
-
-
-
-
Field Detail
-
BUFFERED_IMAGE_CACHE_SIZE
public static final java.lang.String BUFFERED_IMAGE_CACHE_SIZE
- See Also:
- Constant Field Values
-
BUFFERED_IMAGE_CACHE_NAME
public static final java.lang.String BUFFERED_IMAGE_CACHE_NAME
-
SLIDESHOW_UPDATE_DELAY_MILLIS
protected static final long SLIDESHOW_UPDATE_DELAY_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_BUFFERED_IMAGE_CACHE_SIZE
protected static final long DEFAULT_BUFFERED_IMAGE_CACHE_SIZE
- See Also:
- Constant Field Values
-
SMALL_IMAGE_PREFERRED_SIZE
protected static java.awt.Dimension SMALL_IMAGE_PREFERRED_SIZE
-
LARGE_IMAGE_PREFERRED_SIZE
protected static java.awt.Dimension LARGE_IMAGE_PREFERRED_SIZE
-
index
protected int index
-
state
protected java.lang.String state
-
imageSources
protected java.util.List<java.lang.Object> imageSources
-
readThread
protected java.lang.Thread readThread
-
updateTimer
protected javax.swing.Timer updateTimer
-
-
Constructor Detail
-
SlideShowAnnotationController
public SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation, java.lang.Iterable<?> imageSources)
-
SlideShowAnnotationController
public SlideShowAnnotationController(WorldWindow worldWindow, SlideShowAnnotation annotation)
-
-
Method Detail
-
initializeSlideShow
protected void initializeSlideShow()
-
getImageSources
public java.util.List<? extends java.lang.Object> getImageSources()
-
setImageSources
public void setImageSources(java.lang.Iterable<? extends java.lang.Object> imageSources)
-
getState
public java.lang.String getState()
-
getIndex
public int getIndex()
-
goToImage
public void goToImage(int index)
-
startSlideShow
public void startSlideShow()
-
stopSlideShow
public void stopSlideShow()
-
stopRetrievalTasks
public void stopRetrievalTasks()
-
getPreferredImageSize
public java.awt.Dimension getPreferredImageSize()
-
setPreferredImageSize
public void setPreferredImageSize(java.awt.Dimension size)
-
hasPreviousIndex
protected boolean hasPreviousIndex()
-
hasNextIndex
protected boolean hasNextIndex()
-
getPreviousIndex
protected int getPreviousIndex()
-
getNextIndex
protected int getNextIndex()
-
doGoToImage
protected void doGoToImage(int index)
-
doSetImage
protected void doSetImage(PowerOfTwoPaddedImage image, int index)
-
onActionPerformed
public void onActionPerformed(java.awt.event.ActionEvent e)
- Overrides:
onActionPerformedin classDialogAnnotationController
-
playPressed
protected void playPressed(java.awt.event.ActionEvent e)
-
previousPressed
protected void previousPressed(java.awt.event.ActionEvent e)
-
nextPressed
protected void nextPressed(java.awt.event.ActionEvent e)
-
beginPressed
protected void beginPressed(java.awt.event.ActionEvent e)
-
endPressed
protected void endPressed(java.awt.event.ActionEvent e)
-
resizePressed
protected void resizePressed(java.awt.event.ActionEvent e)
-
onPlayPressed
protected void onPlayPressed(java.awt.event.ActionEvent e)
-
onPreviousPressed
protected void onPreviousPressed(java.awt.event.ActionEvent e)
-
onNextPressed
protected void onNextPressed(java.awt.event.ActionEvent e)
-
onBeginPressed
protected void onBeginPressed(java.awt.event.ActionEvent e)
-
onEndPressed
protected void onEndPressed(java.awt.event.ActionEvent e)
-
onResizePressed
protected void onResizePressed(java.awt.event.ActionEvent e)
-
retrieveAndSetImage
protected void retrieveAndSetImage(java.lang.Object source, int index)
-
doRetrieveAndSetImage
protected void doRetrieveAndSetImage(java.lang.Object source, int index)
-
readImage
protected PowerOfTwoPaddedImage readImage(java.lang.Object source)
-
startImageRetrieval
protected void startImageRetrieval(java.lang.Object source, int index)
-
stopImageRetrieval
protected void stopImageRetrieval()
-
getImage
protected PowerOfTwoPaddedImage getImage(java.lang.Object source)
-
putImage
protected boolean putImage(java.lang.Object source, PowerOfTwoPaddedImage image)
-
nextSlideShowImage
protected boolean nextSlideShowImage()
-
onSlideShowUpdate
protected void onSlideShowUpdate()
-
startSlideShowUpdate
protected void startSlideShowUpdate()
-
stopSlideShowUpdate
protected void stopSlideShowUpdate()
-
createTitle
protected java.lang.String createTitle(java.lang.Object imageSource)
-
createPositionText
protected java.lang.String createPositionText(int position, int length)
-
getImageName
protected java.lang.String getImageName(java.lang.Object imageSource)
-
-