📄 sourcedtimerevent.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 + -