package Algorithms.Animated.BK; import java.awt.Color; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; import Algorithms.Animated.AlgorithmStage; import Model.LayeredGraphNode; import View.MainView; /** * The stage of the combination of the four extremal layouts. * @author kolja * */ public class Combine implements AlgorithmStage { LayeredGraphNode graph; public Combine( LayeredGraphNode graph ) { this.graph = graph; } @Override public StageStatus forwardStep() { MainView.frame.setSize( MainView.frame.getWidth() + 1, MainView.frame.getHeight() ); MainView.frame.setSize( MainView.frame.getWidth() - 1, MainView.frame.getHeight() ); graph.setColor( Color.BLACK, null ); return null; } @Override public StageStatus backwardStep() { // TODO Auto-generated method stub return null; } }