We could replace this method by 
public final native TreeLayout size(double width, double y) /*-{