Package org.insa.graphs.gui.observers
Class WeaklyConnectedComponentGraphicObserver
- java.lang.Object
-
- org.insa.graphs.gui.observers.WeaklyConnectedComponentGraphicObserver
-
- All Implemented Interfaces:
WeaklyConnectedComponentObserver
public class WeaklyConnectedComponentGraphicObserver extends java.lang.Object implements WeaklyConnectedComponentObserver
-
-
Constructor Summary
Constructors Constructor Description WeaklyConnectedComponentGraphicObserver(Drawing drawing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyEndComponent(java.util.ArrayList<Node> nodes)Notify that the algorithm has computed a new component.voidnotifyNewNodeInComponent(Node node)Notify that a new node has been found for the current component.voidnotifyStartComponent(Node curNode)Notify that the algorithm is entering a new component.
-
-
-
Constructor Detail
-
WeaklyConnectedComponentGraphicObserver
public WeaklyConnectedComponentGraphicObserver(Drawing drawing)
-
-
Method Detail
-
notifyStartComponent
public void notifyStartComponent(Node curNode)
Description copied from interface:WeaklyConnectedComponentObserverNotify that the algorithm is entering a new component.- Specified by:
notifyStartComponentin interfaceWeaklyConnectedComponentObserver- Parameters:
curNode- Starting node for the component.
-
notifyNewNodeInComponent
public void notifyNewNodeInComponent(Node node)
Description copied from interface:WeaklyConnectedComponentObserverNotify that a new node has been found for the current component.- Specified by:
notifyNewNodeInComponentin interfaceWeaklyConnectedComponentObserver- Parameters:
node- New node found for the current component.
-
notifyEndComponent
public void notifyEndComponent(java.util.ArrayList<Node> nodes)
Description copied from interface:WeaklyConnectedComponentObserverNotify that the algorithm has computed a new component.- Specified by:
notifyEndComponentin interfaceWeaklyConnectedComponentObserver- Parameters:
nodes- List of nodes in the component.
-
-