当前位置: 首页>>代码示例>>Java>>正文


Java Timeline.TimelineState方法代码示例

本文整理汇总了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();
}
 
开发者ID:mars-sim,项目名称:mars-sim,代码行数:12,代码来源:EndCallback.java

示例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();
}
 
开发者ID:mars-sim,项目名称:mars-sim,代码行数:12,代码来源:SimpleCallback.java

示例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();
    }
}
 
开发者ID:thahn0720,项目名称:agui_framework,代码行数:11,代码来源:EndCallback.java

示例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();
    }

}
 
开发者ID:thahn0720,项目名称:agui_framework,代码行数:12,代码来源:SimpleCallback.java

示例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();
    }
}
 
开发者ID:magarena,项目名称:magarena,代码行数:8,代码来源:CardFlowPanel.java

示例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();
    }
}
 
开发者ID:magarena,项目名称:magarena,代码行数:7,代码来源:AboutContentPanel.java


注:本文中的org.pushingpixels.trident.Timeline.TimelineState方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。