⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sourcedtimerevent.java

📁 FMJ(freedom media for java)是java视频开发的新选择
💻 JAVA
字号:
package net.sf.fmj.ejmf.toolkit.util;import java.util.EventObject;/** * This event is sent by a SourcedTimer to its listeners in response * from a 'tick' by the SourcedTimer's base timer. * * From the book: Essential JMF, Gordon, Talley (ISBN 0130801046).  Used with permission. * * see            ejmf.toolkit.SourcedTimer * see		   ejmf.toolkit.TimeSource * @version        1.0 * @author         Rob Gordon & Steve Talley */public class SourcedTimerEvent extends EventObject {    private long time;    /**     * Event constructor.      *     * @param          src     *                 Source of event.     *     * @param          t     *                 Time in units of source.     */    public SourcedTimerEvent(Object src, long t) {	super(src);	time = t;    }    /**     * Retrieve the time from the event Object.     *     * @return         Time in units of time source.      */    public long getTime() {	return time;    }    /**     * Set the time of event object. This operation for a client     * unless it happens to re-generated event for its own purposes.     *     * @param          t     *                 Time in units detemined by caller.     */    public void setTime(long t) {	time = t;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -