📄 shape.java
字号:
//********************************************************************
// Shape.java Author: Lewis and Loftus / Peter DePasquale
//
// Refinement #2
//
// Represents a generic shape in the PaintBox application.
//********************************************************************
import java.awt.*;
import java.io.*;
abstract class Shape
{
protected Color strokeColor;
//-----------------------------------------------------------------
// Returns the current stroke color.
//-----------------------------------------------------------------
public Color getStrokeColor ()
{
return strokeColor;
}
//-----------------------------------------------------------------
// Abstract method for drawing a generic shape.
//-----------------------------------------------------------------
abstract public void draw (Graphics page);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -