Seq.
This commit is contained in:
@@ -12,7 +12,7 @@ public class BranchTreeLayout implements TreeLayout{
|
||||
public float gapBetweenLevels = 10;
|
||||
public float gapBetweenNodes = 10f;
|
||||
|
||||
private final FloatArray sizeOfLevel = new FloatArray();
|
||||
private final FloatSeq sizeOfLevel = new FloatSeq();
|
||||
private float boundsLeft = Float.MAX_VALUE;
|
||||
private float boundsRight = Float.MIN_VALUE;
|
||||
private float boundsTop = Float.MAX_VALUE;
|
||||
|
||||
@@ -6,7 +6,7 @@ public class RowTreeLayout implements TreeLayout{
|
||||
|
||||
@Override
|
||||
public void layout(TreeNode root){
|
||||
layout(root, 0, new IntArray());
|
||||
layout(root, 0, new IntSeq());
|
||||
|
||||
/*
|
||||
def minimum_ws(tree, depth=0):
|
||||
@@ -18,7 +18,7 @@ public class RowTreeLayout implements TreeLayout{
|
||||
*/
|
||||
}
|
||||
|
||||
void layout(TreeNode node, int depth, IntArray nexts){
|
||||
void layout(TreeNode node, int depth, IntSeq nexts){
|
||||
float size = node.height * 5f;
|
||||
|
||||
if(nexts.size < depth + 1){
|
||||
|
||||
Reference in New Issue
Block a user