org.progeeks.graph
Class GraphSynchronizer
java.lang.Object
org.progeeks.graph.GraphSynchronizer
- All Implemented Interfaces:
- com.phoenixst.plexus.GraphListener, java.util.EventListener
public class GraphSynchronizer
- extends java.lang.Object
- implements com.phoenixst.plexus.GraphListener
Links two graphs together such that changes in one graph
will be applied to the other and vice-versa.
- Version:
- $Revision: 1.7 $
- Author:
- Paul Speed
Constructor Summary |
GraphSynchronizer(com.phoenixst.plexus.ObservableGraph graph1,
com.phoenixst.plexus.ObservableGraph graph2)
|
Method Summary |
void |
edgeAdded(com.phoenixst.plexus.GraphEvent event)
|
void |
edgeRemoved(com.phoenixst.plexus.GraphEvent event)
|
boolean |
getIgnoreEvents()
|
void |
nodeAdded(com.phoenixst.plexus.GraphEvent event)
|
void |
nodeRemoved(com.phoenixst.plexus.GraphEvent event)
|
void |
release()
Releases the connection between the two graphs. |
void |
setIgnoreEvents(boolean flag)
Set to true to temporarily stop the synchronization. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphSynchronizer
public GraphSynchronizer(com.phoenixst.plexus.ObservableGraph graph1,
com.phoenixst.plexus.ObservableGraph graph2)
release
public void release()
- Releases the connection between the two graphs.
setIgnoreEvents
public void setIgnoreEvents(boolean flag)
- Set to true to temporarily stop the synchronization.
getIgnoreEvents
public boolean getIgnoreEvents()
nodeAdded
public void nodeAdded(com.phoenixst.plexus.GraphEvent event)
- Specified by:
nodeAdded
in interface com.phoenixst.plexus.GraphListener
nodeRemoved
public void nodeRemoved(com.phoenixst.plexus.GraphEvent event)
- Specified by:
nodeRemoved
in interface com.phoenixst.plexus.GraphListener
edgeAdded
public void edgeAdded(com.phoenixst.plexus.GraphEvent event)
- Specified by:
edgeAdded
in interface com.phoenixst.plexus.GraphListener
edgeRemoved
public void edgeRemoved(com.phoenixst.plexus.GraphEvent event)
- Specified by:
edgeRemoved
in interface com.phoenixst.plexus.GraphListener
Copyright © 2002-2003 Paul Speed. All Rights Reserved.