?? shape.java
字號:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package drawfigure; import java.awt.*;class Shape{//定義一個形狀抽象類 int i,sx,sy,x,y,x0,y0; //坐標 Color c; //色彩 Color back=Color.white; //dise Graphics g; //圖形對象 boolean fill; Shape(){} //無參構造方法 Shape(int sx,int sy,int x,int y,Color c){//有參的構造方法 this.sx=sx; this.sy=sy; this.x=x; this.y=y; this.c=c; } void setValue(int sx,int sy,int x,int y,Color c){ this.sx=sx; this.sy=sy; this.x=x; this.y=y; this.c=c; } Graphics getG(){return g;} void draw(){}; void wipe(){};}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -