本文整理汇总了Java中org.jdesktop.core.animation.timing.Interpolator类的典型用法代码示例。如果您正苦于以下问题:Java Interpolator类的具体用法?Java Interpolator怎么用?Java Interpolator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Interpolator类属于org.jdesktop.core.animation.timing包,在下文中一共展示了Interpolator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setInterpolator
import org.jdesktop.core.animation.timing.Interpolator; //导入依赖的package包/类
/**
* Sets the TimeInterpolator for all current {@link #getChildAnimations() child animations}
* of this AnimatorSet.
*
* @param interpolator the interpolator to be used by each child animation of this AnimatorSet
*/
@Override
public void setInterpolator(Interpolator interpolator) {
for (Node node : mNodes) {
node.animation.setInterpolator(interpolator);
}
}
示例2: genRandomSpline
import org.jdesktop.core.animation.timing.Interpolator; //导入依赖的package包/类
@SuppressWarnings("unused")
private Interpolator genRandomSpline() {
return SPLINES[ random.nextInt(SPLINES.length) ];
}
示例3: specialEasing
import org.jdesktop.core.animation.timing.Interpolator; //导入依赖的package包/类
/**
* @return the custom animation interpolator
*/
public Interpolator specialEasing() { return specialEasing; }