shapeentity.java

来自「基于java Swing的一款简单的2D图形绘制软件程序」· Java 代码 · 共 89 行

JAVA
89
字号
import java.awt.Color;
import java.awt.Shape;
import java.io.Serializable;

/**
 * 
 */

/**
 * @author squirrel
 *
 */
public class ShapeEntity implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private double beginX;
	private double beginY;
	private double endX;
	private double endY;
	private int shapeType;
	private Color drawColor;
	private Color paintColor;
	
	public ShapeEntity()
	{

	}

	public Color getDrawColor() {
		return drawColor;
	}

	public void setDrawColor(Color drawColor) {
		this.drawColor = drawColor;
	}

	public Color getPaintColor() {
		return paintColor;
	}

	public void setPaintColor(Color paintColor) {
		this.paintColor = paintColor;
	}

	public int getShapeType() {
		return shapeType;
	}

	public void setShapeType(int shapeType) {
		this.shapeType = shapeType;
	}

	public double getBeginY() {
		return beginY;
	}

	public void setBeginY(double beginY) {
		this.beginY = beginY;
	}

	

	public double getBeginX() {
		return beginX;
	}

	public void setBeginX(double beginX) {
		this.beginX = beginX;
	}

	public double getEndX() {
		return endX;
	}

	public void setEndX(double endX) {
		this.endX = endX;
	}

	public double getEndY() {
		return endY;
	}

	public void setEndY(double endY) {
		this.endY = endY;
	}
}

⌨️ 快捷键说明

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