⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ellipse.java

📁 GEF基础源码
💻 JAVA
字号:
package com.jixy.study.gef.model;

import org.eclipse.draw2d.geometry.Point;

import com.jixy.study.gef.util.Subject;

public class Ellipse extends Subject{
	
	// Ellipse初始化一个成员变量location用来表示位置
	protected Point location = new Point(0, 0);

	public void setLocation(Point p) {

		if (this.location.equals(p)) {

			return;

		}

		this.location = p;
		firePropertyChange("location", null, p);

	}

	public Point getLocation() {

		return location;

	}

}

⌨️ 快捷键说明

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