i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left; i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right; i.top = borderSpacing.top + borderInsets.top + edgeSpacing.top; i.bottom = borderSpacing.bottom + borderInsets.bottom + edgeSpacing.bottom;
i.left = outerSpacing.left + borderInsets.left + innerSpacing.left; i.right = outerSpacing.right + borderInsets.right + innerSpacing.right; i.top = outerSpacing.top + borderInsets.top + innerSpacing.top; i.bottom = outerSpacing.bottom + borderInsets.bottom + innerSpacing.bottom;
    public Insets getContentInsets(Insets i)    {      if (i == null)        i = new Insets(0, 0, 0, 0);      i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left;      i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right;      i.top = borderSpacing.top + borderInsets.top + edgeSpacing.top;      i.bottom = borderSpacing.bottom + borderInsets.bottom + edgeSpacing.bottom;      return i;    }