📄 drawhistorybean.java
字号:
package com.oyc.mapxtreme.applet;
import java.awt.Color;
/**
* 画图历史Bean,Graphics对象的一次画图操作保存其中
* @author 三峡大学理学院 欧阳超
*
*/
public class DrawHistoryBean {
//起始,终点坐标
private int x1, y1, x2, y2;
//宽度,高度
private int width, height;
//开始角度,相对于开始角度而言,弧跨越的角度
private int startAngle, arcAngle;
//画图类型,如line;rect;arc
private String type = null;
//画图模式,只取两种值:fill或draw
private String model = null;
//画笔颜色
private Color color = null;
public DrawHistoryBean(int x1, int y1, int x2, int y2, int width, int height, int startAngle, int arcAngle, String type, String model, Color color) {
super();
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
this.width = width;
this.height = height;
this.startAngle = startAngle;
this.arcAngle = arcAngle;
this.type = type;
this.model = model;
this.color = color;
}
public int getArcAngle() {
return arcAngle;
}
public void setArcAngle(int arcAngle) {
this.arcAngle = arcAngle;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public int getStartAngle() {
return startAngle;
}
public void setStartAngle(int startAngle) {
this.startAngle = startAngle;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getX1() {
return x1;
}
public void setX1(int x1) {
this.x1 = x1;
}
public int getX2() {
return x2;
}
public void setX2(int x2) {
this.x2 = x2;
}
public int getY1() {
return y1;
}
public void setY1(int y1) {
this.y1 = y1;
}
public int getY2() {
return y2;
}
public void setY2(int y2) {
this.y2 = y2;
}
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -