org.sikuli.basics.AnimatorStopExtention Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sikulixapi Show documentation
Show all versions of sikulixapi Show documentation
... for visual testing and automation
/*
* Copyright (c) 2010-2016, Sikuli.org, sikulix.com
* Released under the MIT License.
*
*/
package org.sikuli.basics;
public class AnimatorStopExtention extends AnimatorTimeValueFunction {
AnimatorTimeValueFunction _func;
public AnimatorStopExtention(AnimatorTimeValueFunction func, long totalTime) {
super(func._beginVal, func._endVal, totalTime);
_func = func;
_totalTime = totalTime;
}
@Override
public float getValue(long t) {
return _func.getValue(t);
}
@Override
public boolean isEnd(long t) {
return t >= _totalTime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy