Class TimeLine

All Implemented Interfaces:
Savable, Serializable, Cloneable, Map<Integer,KeyFrame>

public class TimeLine extends HashMap<Integer,KeyFrame> implements Savable
See Also:
  • Field Details

    • keyFramesPerSeconds

      protected int keyFramesPerSeconds
    • lastKeyFrameIndex

      protected int lastKeyFrameIndex
  • Constructor Details

    • TimeLine

      public TimeLine()
  • Method Details

    • getKeyFrameAtTime

      public KeyFrame getKeyFrameAtTime(float time)
    • getKeyFrameAtIndex

      public KeyFrame getKeyFrameAtIndex(int keyFrameIndex)
    • addKeyFrameAtTime

      public void addKeyFrameAtTime(float time, KeyFrame keyFrame)
    • addKeyFrameAtIndex

      public void addKeyFrameAtIndex(int keyFrameIndex, KeyFrame keyFrame)
    • removeKeyFrame

      public void removeKeyFrame(int keyFrameIndex)
    • removeKeyFrame

      public void removeKeyFrame(float time)
    • getKeyFrameIndexFromTime

      public int getKeyFrameIndexFromTime(float time)
    • getKeyFrameTime

      public float getKeyFrameTime(KeyFrame keyFrame)
    • getAllKeyFrames

      public Collection<KeyFrame> getAllKeyFrames()
    • getLastKeyFrameIndex

      public int getLastKeyFrameIndex()
    • write

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      IOException