本文整理汇总了Java中org.pushingpixels.trident.Timeline.TimelineState方法的典型用法代码示例。如果您正苦于以下问题:Java Timeline.TimelineState方法的具体用法?Java Timeline.TimelineState怎么用?Java Timeline.TimelineState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pushingpixels.trident.Timeline
的用法示例。
在下文中一共展示了Timeline.TimelineState方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
/**
* @see TimelineCallback#onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState,
* org.pushingpixels.trident.Timeline.TimelineState, float, float)
*/
@Override
public void onTimelineStateChanged(final Timeline.TimelineState ts,
final Timeline.TimelineState ts1, final float f, final float f1) {
// If the timeline's down, then we dispose the telegraph window
if (ts1 == Timeline.TimelineState.DONE)
telegraph.dispose();
}
示例2: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
/**
* @see TimelineCallback#onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState,
* org.pushingpixels.trident.Timeline.TimelineState, float, float)
*/
@Override
public void onTimelineStateChanged(final Timeline.TimelineState ts,
final Timeline.TimelineState ts1, final float f, final float f1) {
// If the current timeline is done then we play the next one...
if (ts1 == Timeline.TimelineState.DONE)
nextTimeline.play();
}
示例3: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
@Override
public void onTimelineStateChanged(Timeline.TimelineState ts, Timeline.TimelineState ts1, float f, float f1) {
// if the timeline is done
if (ts1 == Timeline.TimelineState.DONE) {
// dispose the window
achievement.dispose();
}
}
示例4: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
@Override
public void onTimelineStateChanged(Timeline.TimelineState ts, Timeline.TimelineState ts1, float f, float f1) {
// if the current timeline is done
if (ts1 == Timeline.TimelineState.DONE) {
// play next
nextTimeline.play();
}
}
示例5: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
@Override
public void onTimelineStateChanged(Timeline.TimelineState arg0, Timeline.TimelineState arg1, float arg2, float arg3) {
if (arg0 == Timeline.TimelineState.DONE && arg1 == Timeline.TimelineState.IDLE) {
onTimelinePulse(0, 1.0f);
notifyOnNewActiveImage();
}
}
示例6: onTimelineStateChanged
import org.pushingpixels.trident.Timeline; //导入方法依赖的package包/类
@Override
public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) {
if (newState == Timeline.TimelineState.DONE) {
MagicSound.BOOM.play();
}
}