graphicops.java
来自「使用java application 的共享白板系统」· Java 代码 · 共 22 行
JAVA
22 行
import java.awt.*;
public interface GraphicOps {
public void setColor(Color color); // Set drawing color
public void setShape(int shape); // Set drawing shape
public void clearCanvas(); // Clear drawing area
public void removeLast(); // Remove last item
public void printCanvas(); // Print everything
public int getShapeCount(); // Get number of shapes
// Constants
public static final int DRAWN_LINE = 0;
public static final int DRAWN_RECT = 1;
public static final int DRAWN_ROUND_RECT = 2;
public static final int FILLED_RECT = 3;
public static final int FILLED_ROUND_RECT = 4;
public static final int DRAWN_OVAL = 5;
public static final int FILLED_OVAL = 6;
// Property for count of graphic shapes
public static final String SHAPE_PROPERTY = "shape_property";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?