Class WalkThread

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Constructor Summary

      Constructors 
      Constructor Description
      WalkThread​(int interval, boolean waitForPicture, boolean followSelected, boolean goForward)
      Main constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end()
      Called when the walk stops by itself of forcefully.
      void imagesAdded()
      Fired when any image is added to the database.
      void pause()
      Pauses the execution.
      void play()
      Continues with the execution if paused.
      private void preDownloadCubemaps​(StreetsideImage startImage, int n)  
      private static void preDownloadImages​(StreetsideImage startImage, int n, CacheUtils.PICTURE type)
      Downloads n images into the cache beginning from the supplied start-image (including the start-image itself).
      void run()  
      void selectedImageChanged​(StreetsideAbstractImage oldImage, StreetsideAbstractImage newImage)
      Fired when the selected image is changed by something different from manually clicking on the icon.
      void stopWalk()
      Stops the execution.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WalkThread

        public WalkThread​(int interval,
                          boolean waitForPicture,
                          boolean followSelected,
                          boolean goForward)
        Main constructor.
        Parameters:
        interval - How often the images switch.
        waitForPicture - If it must wait for the full resolution picture or just the thumbnail.
        followSelected - Zoom to each image that is selected.
        goForward - true to go forward; false to go backwards.