@Override public void endElement(String uri, String localName, String qName) throws SAXException { if ("element".equals(qName)) { //$NON-NLS-1$ increment++; LayoutConstraints c = new LayoutConstraints(type, increment, x, y, width, height, weightx, weighty, position, expand); c.setColor(color); constraints.put(c, null); name.setLength(0); tag = -1; } }