src/main/java/chalmers/pimp/model/LayerMovement.java
public void update(int x, int y) {
    if (!isFinished) {
      dx = x - prevX;
      dy = y - prevY;

      prevX = x;
      prevY = y;
    }
  }
/**
   * Updates the state of the layer movement. This method has no effect if the {@link
   * LayerMovement#stop()} method has been called on the layer movement instance.
   *
   * @param x the current x-coordinate of the layer.
   * @param y the current y-coordinate of the layer.
   */
Updates the state of the layer movement. This method has no effect if the {@link
LayerMovement#stop()} method has been called on the layer movement instance.

@param x the current x-coordinate of the layer.
@param y the current y-coordinate of the layer.
Updates the state of the layer movement . This method has no effect if the { @link LayerMovement#stop () } method has been called on the layer movement instance . @param x the current x - coordinate of the layer . @param y the current y - coordinate of the layer .
public void update(int x, int y) {
    if (!isFinished) {
      dx = x - prevX;
      dy = y - prevY;
      prevX = x;
      prevY = y;
    }
  }
public void update ( int x , int y ) { if ( ! isFinished ) { dx = x - prevX ; dy = y - prevY ; prevX = x ; prevY = y ; } }
Updates the state of the layer movement.
Updates the state of the layer movement .