xLayoutValid = false; yLayoutValid = false;
layoutValid[0] = false; layoutValid[1] = false; span[0] = 0; span[1] = 0; requirements[0] = new SizeRequirements(); requirements[1] = new SizeRequirements();
  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;  }