graphicdisplay.java

来自「单片机上的java虚拟机 用winavr 编译」· Java 代码 · 共 58 行

JAVA
58
字号
package nanovm.nibo.drivers;/** * Gives access to a connected graphics display. * @author Nils Springob */public class GraphicDisplay {  /**   * Minimum value for X coordinate   */  public static final int MIN_X = 0;  /**   * Maximum value for X coordinate   */  public static final int MAX_X = 127;  /**   * Minimum value for Y coordinate   */  public static final int MIN_Y = 0;  /**   * Maximum value for Y coordinate   */  public static final int MAX_Y = 63;    /**   * Clear the entire display   */  public static native void clear();    /**   * Set (invisible) cursor to given coordinate   * @param x X-coordinate   * @param y Y-coordinate   */  public static native void gotoXY(int x, int y);  /**   * Print text on display   */  public static native void print(String s);  /**   * Set the proportional mode for text output   * @param proportional true for proportional mode   */  public static native void setProportional(boolean proportional);  /**   * Get the proportional mode for text output   * @return true for proportional mode   */  public static native boolean getProportional();}

⌨️ 快捷键说明

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