loopgovernor.java

来自「CroftSoft Code Library是一个开源的可移植的纯Java游戏库」· Java 代码 · 共 31 行

JAVA
31
字号
     package com.croftsoft.core.animation;

     /*********************************************************************
     * Regulates the loop frequency by putting the Thread to sleep.
     *     * @deprecated     *   Moved to package com.croftsoft.core.util.loop.     *
     * @version
     *   2002-05-22
     * @since
     *   2002-03-07
     * @author
     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>
     *********************************************************************/

     public interface  LoopGovernor
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {

     /*********************************************************************
     * This method puts the Thread to sleep for a limited time.
     *********************************************************************/
     public void  govern ( )
       throws InterruptedException;

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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