本文整理了Java中org.w3c.dom.events.Event.getTimeStamp()
方法的一些代码示例,展示了Event.getTimeStamp()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.getTimeStamp()
方法的具体详情如下:
包路径:org.w3c.dom.events.Event
类名称:Event
方法名:getTimeStamp
[英]Used to specify the time (in milliseconds relative to the epoch) at which the event was created. Due to the fact that some systems may not provide this information the value of timeStamp
may be not available for all events. When not available, a value of 0 will be returned. Examples of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970.
[中]用于指定创建事件的时间(相对于历元的毫秒)。由于某些系统可能不提供此信息,timeStamp
的值可能不适用于所有事件。当不可用时,将返回值0。历元时间的示例为系统启动时间或0:0:0 UTC 1970年1月1日。
代码示例来源:origin: org.apache.xmlgraphics/batik-anim
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: org.apache.xmlgraphics/batik-anim
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: apache/batik
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: apache/batik
/**
* Invoked to resolve an event-like timing specifier into an instance time.
*/
public void resolve(Event e) {
float time = owner.getRoot().convertEpochTime(e.getTimeStamp());
InstanceTime instance = new InstanceTime(this, time + offset, true);
owner.addInstanceTime(instance, isBegin);
}
}
代码示例来源:origin: org.eclipse.scout.rt/org.eclipse.scout.rt.svg.client
@Override
public void handleEvent(Event evt) {
if (matchLastToolTipEvent(evt.getTimeStamp(), evt.getTarget())) {
return;
setLastToolTipEvent(evt.getTimeStamp(), evt.getTarget());
EventTarget prvLastTarget = lastTarget;
if (SVGConstants.SVG_EVENT_MOUSEOVER.equals(evt.getType())) {
代码示例来源:origin: org.apache.xmlgraphics/batik-swing
if (matchLastToolTipEvent(evt.getTimeStamp(), evt.getTarget())) {
return;
setLastToolTipEvent(evt.getTimeStamp(), evt.getTarget());
EventTarget prevLastTarget = lastTarget;
if (SVGConstants.SVG_EVENT_MOUSEOVER.equals(evt.getType())) {
代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik
if (matchLastToolTipEvent(evt.getTimeStamp(), evt.getTarget())) {
return;
setLastToolTipEvent(evt.getTimeStamp(), evt.getTarget());
EventTarget prevLastTarget = lastTarget;
if (SVGConstants.SVG_EVENT_MOUSEOVER.equals(evt.getType())) {
代码示例来源:origin: apache/batik
if (matchLastToolTipEvent(evt.getTimeStamp(), evt.getTarget())) {
return;
setLastToolTipEvent(evt.getTimeStamp(), evt.getTarget());
EventTarget prevLastTarget = lastTarget;
if (SVGConstants.SVG_EVENT_MOUSEOVER.equals(evt.getType())) {
内容来源于网络,如有侵权,请联系作者删除!