📄 ellipsefactory.java
字号:
package com.dss.moon.gef.bnb;import org.eclipse.gef.requests.CreationFactory;public class EllipseFactory implements CreationFactory{ private Class type; public EllipseFactory(Class c){ type = c; } // TODO Auto-generated method stub public Object getNewObject(){ try { return type.newInstance(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } } public Object getObjectType() { // TODO Auto-generated method stub return type; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -