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

📄 nullview.java

📁 一个基于J2ME的动画引擎框架
💻 JAVA
字号:
package sjg.animation;/** * Default view. Maps world coordinates directly to screen coordinates. Singleton. * * @author Christian Hvid */public class NullView extends View {    private static NullView instance;    public static NullView getInstance() {        if (instance == null)            instance = new NullView();        return instance;    }    private NullView() {    }    public int worldToRealX(double x) {        return (int) x;    }    public int worldToRealY(double y) {        return (int) y;    }    public double realToWorldX(int x) {        return x;    }    public double realToWorldY(int y) {        return y;    }}

⌨️ 快捷键说明

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