this.as = as;
Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_TOP); if (l != null) topInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_BOTTOM); if (l != null) bottomInset = l.getValue();
    BoxPainter(AttributeSet as)    {      this.as = as;    }