12345678910111213141516171819202122232425262728293031 |
- package bk;
- import javax.swing.JTree;
- import animation.AlgorithmStage;
- import animation.CodeLine;
- import animation.ControlFlow;
- import animation.Memory;
- import animation.PseudoCodeNode;
- import lib.TextLayoutHelper;
- /**
- * The stage of compacting the layout.
- * @author kolja
- *
- */
- public class Compaction implements AlgorithmStage {
- @Override
- public PseudoCodeNode createPseudocodeTree( JTree tree ) {
- PseudoCodeNode root = new PseudoCodeNode( TextLayoutHelper.setupPseudoCodeStage("Horizontal compaction"), tree, new CodeLine() {
- @Override
- public ControlFlow runForward(Memory m) {
- return null;
- }
-
- } );
- return root;
- }
- }
|