📄 fillroundrecobj.java
字号:
package mywb;import java.awt.*;public class FillRoundRecObj implements Element{ public int x1 , y1 , width , height; public int xold,yold,wold,hold; public Rectangle bounds = null ; public Color color; private static int type = 6; public FillRoundRecObj(){}; public void setPara(int x, int y , int w ,int h, Color c){ x1 = x; y1 = y; width = w; height = h; color = c; bounds = new Rectangle(x,y,w,h); } public int getType(){ return type; } public Rectangle getBounds(){ return bounds; } public void paint(Graphics g){ g.setColor (color); g.fillRoundRect(x1 , y1 , width , height,20,20); } public Color getColor(){ return color; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -