📄 myshapeadapter.java~30~
字号:
package myshape;/** * Title: * Description: * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */import java.awt.*;public abstract class MyShapeAdapter implements MyShape{ public boolean attachToOthers=false; //public int width,height; public void paint(Graphics g){}; public void moveObject(int x,int y){}; public boolean nearTo(int x,int y){return false;} public boolean nearTo(MyShape p){return false;} public MyShape getShape(){return null;} public void setColor(Color c){}; public Color getColor(){return defaultColor;}; public void setDefaultColor(Color c){}; public Color getDefaultColor(){return defaultColor;}; public MyPoint getPoint(){return null;}; public Object clone(){ Object shape=null; try{ shape=super.clone(); } catch(CloneNotSupportedException e){ System.err.print("objects cannot clone"); } return shape; } public void moveObject(MyShape s,int x,int y){} public boolean getChanged(){return false;} public void deleteShape(LinkedList l){} /* public void setWidthHeight(int width,int height){ this.width=width; this.height=height; }*/}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -