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

📄 resizecommand.java

📁 GEF初学者可以用来对照的小例子
💻 JAVA
字号:
package com.dss.moon.gef.commands;import org.eclipse.draw2d.geometry.Dimension;import org.eclipse.gef.commands.Command;import com.dss.moon.gef.model.Ellipse;public class ResizeCommand extends Command{	private Ellipse node;		private Dimension oldSize, newSize;		public void setSize(Dimension s){		newSize = s;	}		public void setNode(Ellipse n){		node = n;	}		public void execute(){		oldSize = node.getSize();		node.setSize(newSize);	}}

⌨️ 快捷键说明

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