gov.nasa.worldwind.examples.util
Class SlideShowAnnotationController
java.lang.Object
gov.nasa.worldwind.examples.util.DialogAnnotationController
gov.nasa.worldwind.examples.util.SlideShowAnnotationController
- All Implemented Interfaces:
- SelectListener, ActionListener, EventListener
public class SlideShowAnnotationController
- extends DialogAnnotationController
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 |
BUFFERED_IMAGE_CACHE_NAME
public static final String BUFFERED_IMAGE_CACHE_NAME
BUFFERED_IMAGE_CACHE_SIZE
public static final 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 List<Object> imageSources
index
protected int index
LARGE_IMAGE_PREFERRED_SIZE
protected static 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 Dimension SMALL_IMAGE_PREFERRED_SIZE
state
protected String state
SlideShowAnnotationController
public SlideShowAnnotationController(WorldWindow worldWindow,
SlideShowAnnotation annotation)
SlideShowAnnotationController
public SlideShowAnnotationController(WorldWindow worldWindow,
SlideShowAnnotation annotation,
List<? extends Object> imageSources)
beginPressed
protected void beginPressed(ActionEvent e)
createPositionText
protected String createPositionText(int position,
int length)
createTitle
protected String createTitle(Object imageSource)
doGoToImage
protected void doGoToImage(int index)
doRetrieveAndSetImage
protected void doRetrieveAndSetImage(Object source,
int index)
doSetImage
protected void doSetImage(Object source,
int index)
endPressed
protected void endPressed(ActionEvent e)
getImage
protected BufferedImage getImage(Object source)
getImageName
protected String getImageName(Object imageSource)
getImageSources
public List<? extends Object> getImageSources()
getIndex
public int getIndex()
getNextIndex
protected int getNextIndex()
getPreferredImageSize
public Dimension getPreferredImageSize()
getPreviousIndex
protected int getPreviousIndex()
getState
public String getState()
goToImage
public void goToImage(int index)
hasNextIndex
protected boolean hasNextIndex()
hasPreviousIndex
protected boolean hasPreviousIndex()
initializeSlideShow
protected void initializeSlideShow()
nextPressed
protected void nextPressed(ActionEvent e)
nextSlideShowImage
protected boolean nextSlideShowImage()
onActionPerformed
public void onActionPerformed(ActionEvent e)
- Overrides:
onActionPerformed
in class DialogAnnotationController
onBeginPressed
protected void onBeginPressed(ActionEvent e)
onEndPressed
protected void onEndPressed(ActionEvent e)
onNextPressed
protected void onNextPressed(ActionEvent e)
onPlayPressed
protected void onPlayPressed(ActionEvent e)
onPreviousPressed
protected void onPreviousPressed(ActionEvent e)
onResizePressed
protected void onResizePressed(ActionEvent e)
onSlideShowUpdate
protected void onSlideShowUpdate()
playPressed
protected void playPressed(ActionEvent e)
previousPressed
protected void previousPressed(ActionEvent e)
putImage
protected boolean putImage(Object source,
BufferedImage image)
readImage
protected BufferedImage readImage(Object source)
resizePressed
protected void resizePressed(ActionEvent e)
retrieveAndSetImage
protected void retrieveAndSetImage(Object source,
int index)
setImageSources
public void setImageSources(List<? extends Object> imageSources)
setPreferredImageSize
public void setPreferredImageSize(Dimension size)
startImageRetrieval
protected void startImageRetrieval(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()