12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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 where the for extremal layouts are computed.
- * @author kolja
- *
- */
- public class ExtremalLayoutCalc implements AlgorithmStage {
-
- /**
- * There are four types of layouts, based on iteration order and median alignment.
- * Additionally there is one layout for the combined coordinates.
- * @author kolja
- *
- */
- public enum LayoutType{
- TOP_BOTTOM_LEFT,
- TOP_BOTTOM_RIGHT,
- BOTTOM_TOP_LEFT,
- BOTTOM_TOP_RIGHT,
- COMBINED
- }
- @Override
- public PseudoCodeNode createPseudocodeTree( JTree tree ) {
- PseudoCodeNode root = new PseudoCodeNode( TextLayoutHelper.setupPseudoCode( "function calcLaout( layout, graph )", new String[0] ), tree, new CodeLine() {
- @Override
- public ControlFlow runForward(Memory m) {
- // TODO Auto-generated method stub
- return null;
- }
-
- } );
- return root;
- }
- }
|