⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shape.java

📁 采用基础Java语言实现的一个类似于Windows中的画图程序。
💻 JAVA
字号:
/*
 * shape.java
 *
 * Created on 2007年6月16日, 下午1:26
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package huaban;

import java.awt.Color;
import java.io.Serializable;
public class shape implements Serializable{
    point dot;
    Color  color;
    int size;
    int state;
    public shape() {
        dot = new point(0,0);
        size = 0;
        state = 0;
        color = Color.BLACK; 
    }
    public void setcolor(Color color){
       this.color = color;
    }
    public void setsize(int i){
        size = i;
    }
    public void setstate(int i){
        state = i;
    }
    
    
    public point getdot(){
        return dot;
    }
    public Color getcolor(){
        return color;
    }
    public int getsize(){
        return size;
    }
    public int getstate(){
        return state;
    }
}

⌨️ 快捷键说明

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