Class LinearAnimation

java.lang.Object
nl.saxion.app.interaction.LinearAnimation

public class LinearAnimation extends Object
Helper class for calculating animations. Highly experimental yet...
  • Constructor Details

    • LinearAnimation

      public LinearAnimation(Rectangle bbox, Point destination, int stepSize, boolean oneWay, boolean loop)
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • reset

      public void reset()
    • isRunning

      public boolean isRunning()
    • getBoundingBox

      public Rectangle getBoundingBox()
    • update

      public void update()
    • getDestination

      public Point getDestination()
    • isOneWay

      public boolean isOneWay()
    • isLoop

      public boolean isLoop()
    • setOneWay

      public void setOneWay(boolean oneWay)
    • setLoop

      public void setLoop(boolean loop)