Class TimeAnimationImpl

java.lang.Object
org.gvsig.timesupport.impl.animation.TimeAnimationImpl
All Implemented Interfaces:
Runnable, org.gvsig.timesupport.animation.TimeAnimation, org.gvsig.tools.observer.Observable

public class TimeAnimationImpl extends Object implements org.gvsig.timesupport.animation.TimeAnimation, Runnable
  • Constructor Details

    • TimeAnimationImpl

      public TimeAnimationImpl(org.gvsig.timesupport.animation.TimeAnimation.TimeAnimationRenderer renderer)
  • Method Details

    • addObserver

      public void addObserver(org.gvsig.tools.observer.Observer obsrvr)
      Specified by:
      addObserver in interface org.gvsig.tools.observer.Observable
    • deleteObserver

      public void deleteObserver(org.gvsig.tools.observer.Observer obsrvr)
      Specified by:
      deleteObserver in interface org.gvsig.tools.observer.Observable
    • deleteObservers

      public void deleteObservers()
      Specified by:
      deleteObservers in interface org.gvsig.tools.observer.Observable
    • getInterval

      public org.gvsig.timesupport.RelativeInterval getInterval()
      Specified by:
      getInterval in interface org.gvsig.timesupport.animation.TimeAnimation
    • setInterval

      public void setInterval(org.gvsig.timesupport.RelativeInterval interval)
      Specified by:
      setInterval in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStep

      public long getStep()
      Specified by:
      getStep in interface org.gvsig.timesupport.animation.TimeAnimation
    • setStep

      public void setStep(long step)
      Specified by:
      setStep in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStep

      public long getStep(int scale)
      Specified by:
      getStep in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStepScale

      public int getStepScale()
      Specified by:
      getStepScale in interface org.gvsig.timesupport.animation.TimeAnimation
    • setStep

      public void setStep(long step, int scale)
      Specified by:
      setStep in interface org.gvsig.timesupport.animation.TimeAnimation
    • setFramesPerSecond

      public void setFramesPerSecond(double fps)
      Specified by:
      setFramesPerSecond in interface org.gvsig.timesupport.animation.TimeAnimation
    • getFramesPerSecond

      public double getFramesPerSecond()
      Specified by:
      getFramesPerSecond in interface org.gvsig.timesupport.animation.TimeAnimation
    • setPauseTime

      public void setPauseTime(long time)
      Specified by:
      setPauseTime in interface org.gvsig.timesupport.animation.TimeAnimation
    • getPauseTime

      public long getPauseTime()
      Specified by:
      getPauseTime in interface org.gvsig.timesupport.animation.TimeAnimation
    • getIterations

      public int getIterations()
      Specified by:
      getIterations in interface org.gvsig.timesupport.animation.TimeAnimation
    • setIterations

      public void setIterations(int iterations)
      Specified by:
      setIterations in interface org.gvsig.timesupport.animation.TimeAnimation
    • getCurrentPosition

      public int getCurrentPosition()
      Specified by:
      getCurrentPosition in interface org.gvsig.timesupport.animation.TimeAnimation
    • setCurrentPosition

      public void setCurrentPosition(int position)
      Specified by:
      setCurrentPosition in interface org.gvsig.timesupport.animation.TimeAnimation
    • getCurrentIteration

      public int getCurrentIteration()
      Specified by:
      getCurrentIteration in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStepCount

      public int getStepCount()
      Specified by:
      getStepCount in interface org.gvsig.timesupport.animation.TimeAnimation
    • getCurrentTime

      public org.gvsig.timesupport.RelativeInterval getCurrentTime()
      Specified by:
      getCurrentTime in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStatus

      public int getStatus()
      Specified by:
      getStatus in interface org.gvsig.timesupport.animation.TimeAnimation
    • isPlaying

      public boolean isPlaying()
      Specified by:
      isPlaying in interface org.gvsig.timesupport.animation.TimeAnimation
    • stop

      public void stop()
      Specified by:
      stop in interface org.gvsig.timesupport.animation.TimeAnimation
    • pause

      public void pause()
      Specified by:
      pause in interface org.gvsig.timesupport.animation.TimeAnimation
    • play

      public void play()
      Specified by:
      play in interface org.gvsig.timesupport.animation.TimeAnimation
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • inferStepScale

      public void inferStepScale()
      Specified by:
      inferStepScale in interface org.gvsig.timesupport.animation.TimeAnimation
    • getStatusLabel

      public String getStatusLabel(int status)
      Specified by:
      getStatusLabel in interface org.gvsig.timesupport.animation.TimeAnimation
    • getScaleLabel

      public String getScaleLabel(int scale)
      Specified by:
      getScaleLabel in interface org.gvsig.timesupport.animation.TimeAnimation