this.width = (int) width; this.height = (int) height;
  public void setSize(float width, float height)  {    if (this.width != (int) width)      layoutChanged(X_AXIS);    if (this.height != (int) height)      layoutChanged(Y_AXIS);    Rectangle outside = new Rectangle(0, 0, this.width, this.height);    Rectangle inside = getInsideAllocation(outside);    if (!isAllocationValid())      layout(inside.width, inside.height);  }