graphevent.java
来自「用Java开发的、实现类似Visio功能的应用程序源码」· Java 代码 · 共 45 行
JAVA
45 行
/**
* $Id:GraphEvent.java $
*
* Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All rights reserved. *
*/
package com.jfimagine.jfgraph.event;
import java.util.EventObject;
/**
* A GraphEvent class is used to encapsulate the events in modifying shapes.
*
* @author CookieMaker
*
* @version $Revision: 1.3.1 $
*/
public class GraphEvent extends EventObject{
/**
* A graph change object that contains necessary informations about
* shape modification.
*/
protected AbstractGraphChange m_graphChange;
/**
* The constructor of GraphEvent.
* @param source The event source object.
* @param graphChange A graph change object.
*/
public GraphEvent(Object source, AbstractGraphChange graphChange) {
super(source);
m_graphChange =graphChange;
}
/**
* Get the graph change object.
* @return the graph change object.
*/
public AbstractGraphChange getGraphChange(){
return m_graphChange;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?