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