📄 nullgraphlistener.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -