📄 elementupdatecommand.java
字号:
package jns.command;
import jns.element.Element;
/**
ElementUpdateCommand is a command class that can be used genericly to
schedule a call to any element's update() function at a specific time.
*/
public class ElementUpdateCommand extends Command
{
private Element m_element;
public ElementUpdateCommand(Element element, double time)
{
super("ElementUpdate", time);
m_element = element;
}
/**
Call the update function of the element.
*/
public void execute()
{
m_element.update();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -