📄 graphicops.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -