spansX = new int[0]; spansY = new int[0]; offsetsX = new int[0]; offsetsY = new int[0];  width = 0; height = 0;
spans[0] = new int[0]; spans[1] = new int[0]; offsets[0] = new int[0]; offsets[1] = new int[0];
  public BoxView(Element element, int axis)  {    super(element);    myAxis = axis;    xLayoutValid = false;    yLayoutValid = false;    // Initialize the cache arrays.    spansX = new int[0];    spansY = new int[0];    offsetsX = new int[0];    offsetsY = new int[0];    width = 0;    height = 0;  }