Android Open Source - TrafoControl Animation






From Project

Back to project page TrafoControl.

License

The source code is released under:

MIT License

If you think the Android project TrafoControl listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.bernhardeiling.trafocontrol.animation;
/*www  .  j  av a2  s . co  m*/
import java.util.ArrayList;

/**
 * Created by Bernhard on 19.09.14.
 */
public class Animation {

    int frameDelay;
    ArrayList<int[][]> frames = new ArrayList<int[][]>();

    public Animation(int frameDelay) {
        this.frameDelay = frameDelay;
    }

    public int getFrameDelay() {
        return frameDelay;
    }

    public ArrayList<int[][]> getFrames() {
        return frames;
    }

    public void setFrames(ArrayList<int[][]> frames) {
        this.frames = frames;
    }

    public void addFrame(int[][] frame) {
        this.frames.add(frame);
    }

    public int[][] getFrame(int index) {
        return frames.get(index);
    }

    public int getNumFrames() {
        return frames.size();
    }
}




Java Source Code List

com.bernhardeiling.trafocontrol.ApplicationTest.java
com.bernhardeiling.trafocontrol.MainActivity.java
com.bernhardeiling.trafocontrol.animation.AnimationContainer.java
com.bernhardeiling.trafocontrol.animation.AnimationController.java
com.bernhardeiling.trafocontrol.animation.Animation.java
com.bernhardeiling.trafocontrol.animation.LoadAnimationThread.java
com.bernhardeiling.trafocontrol.animation.SyncAnimationThread.java
com.bernhardeiling.trafocontrol.interfaces.ScanDevicesInterface.java
com.bernhardeiling.trafocontrol.network.AccessPoint.java
com.bernhardeiling.trafocontrol.network.ScanDevicesTask.java