nullgraphlistener.java
来自「OpenJGraph是一个开源的Java库」· Java 代码 · 共 52 行
JAVA
52 行
package salvo.jesus.graph.listener;import salvo.jesus.graph.*;/** * NullGraphListener is an implementation of GraphListener which just ignores * all events. Subclasses can override specific events and leave others * ignored without having to provide stubs. * * @author John V. Sichi * @version $Id: NullGraphListener.java,v 1.2 2002/03/12 07:48:34 perfecthash Exp $ */public class NullGraphListener implements GraphListener{ public void beforeVertexAdded(GraphAddVertexEvent event) throws Exception { } public void afterVertexAdded(GraphAddVertexEvent event) { } public void beforeVertexRemoved(GraphRemoveVertexEvent event) throws Exception { } public void afterVertexRemoved(GraphRemoveVertexEvent event) { } public void beforeEdgeAdded(GraphAddEdgeEvent event) throws Exception { } public void afterEdgeAdded(GraphAddEdgeEvent event) { } public void beforeEdgeRemoved(GraphRemoveEdgeEvent event) throws Exception { } public void afterEdgeRemoved(GraphRemoveEdgeEvent event) { }}// End NullGraphListener.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?