Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Codenameone 如何降低InfiniteProgress动画速度_Codenameone - Fatal编程技术网

Codenameone 如何降低InfiniteProgress动画速度

Codenameone 如何降低InfiniteProgress动画速度,codenameone,Codenameone,我目前正在使用一个自定义图像来代替默认的动画 我想让IP慢慢旋转,有没有办法改变动画速度 没有 我们将添加如下内容: /** * The animation rotates with EDT ticks, but not for every tick. To slow down the animation increase this * number and to speed it up reduce it to 1. It can't be 0 or lower. * @param ti

我目前正在使用一个自定义图像来代替默认的动画

我想让IP慢慢旋转,有没有办法改变动画速度

没有

我们将添加如下内容:

/**
 * The animation rotates with EDT ticks, but not for every tick. To slow down the animation increase this
 * number and to speed it up reduce it to 1. It can't be 0 or lower.
 * @param tickCount the tickCount to set
 */
public void setTickCount(int tickCount);

/**
 * The angle to increase (in degrees naturally) in every tick count, reduce to 1 to make the animation perfectly
 * slow and smooth, increase to 45 to make it fast and jumpy. Its probably best to use a number that divides well
 * with 360 but that isn't a requirement. Valid numbers are anything between 1 and 359.
 * @param angleIncrease the angleIncrease to set
 */
public void setAngleIncrease(int angleIncrease);