|
@@ -26,17 +26,17 @@ public class BKNodePlacement extends AnimatedAlgorithm {
|
|
|
}
|
|
|
|
|
|
private State state;
|
|
|
- private Layout layouts[];
|
|
|
+ private ExtremalLayoutCalc layouts[];
|
|
|
private Combine combine;
|
|
|
|
|
|
public BKNodePlacement(AnimationController controller, LayeredGraphNode graph) {
|
|
|
super(controller, graph);
|
|
|
state = State.LAYOUT1;
|
|
|
- layouts = new Layout[ 4 ];
|
|
|
- layouts[ 0 ] = new Layout( Layout.LayoutType.TOP_BOTTOM_LEFT, graph );
|
|
|
- layouts[ 1 ] = new Layout( Layout.LayoutType.TOP_BOTTOM_RIGHT, graph );
|
|
|
- layouts[ 2 ] = new Layout( Layout.LayoutType.BOTTOM_TOP_LEFT, graph );
|
|
|
- layouts[ 3 ] = new Layout( Layout.LayoutType.BOTTOM_TOP_RIGHT, graph );
|
|
|
+ layouts = new ExtremalLayoutCalc[ 4 ];
|
|
|
+ layouts[ 0 ] = new ExtremalLayoutCalc( ExtremalLayoutCalc.LayoutType.TOP_BOTTOM_LEFT, graph );
|
|
|
+ layouts[ 1 ] = new ExtremalLayoutCalc( ExtremalLayoutCalc.LayoutType.TOP_BOTTOM_RIGHT, graph );
|
|
|
+ layouts[ 2 ] = new ExtremalLayoutCalc( ExtremalLayoutCalc.LayoutType.BOTTOM_TOP_LEFT, graph );
|
|
|
+ layouts[ 3 ] = new ExtremalLayoutCalc( ExtremalLayoutCalc.LayoutType.BOTTOM_TOP_RIGHT, graph );
|
|
|
combine = new Combine( graph );
|
|
|
}
|
|
|
|