@Override public void operatorExported(final Operator op,final Element opElement){
  Rectangle2D bounds=lookupOperatorRectangle(op);
  if (bounds != null) {
    opElement.setAttribute(XML_ATTRIBUTE_X_POSITION,"" + (int)bounds.getX());
    opElement.setAttribute(XML_ATTRIBUTE_Y_POSITION,"" + (int)bounds.getY());
    opElement.setAttribute(XML_ATTRIBUTE_WIDTH,"" + (int)bounds.getWidth());
    opElement.setAttribute(XML_ATTRIBUTE_HEIGHT,"" + (int)bounds.getHeight());
  }
}

@ Override public void operatorExported ( final Operator op , final Element opElement ) { Rectangle2D bounds = lookupOperatorRectangle ( op ) ; if ( bounds != null ) { opElement . setAttribute ( XML_ATTRIBUTE_X_POSITION , "" + ( int ) bounds . getX ( ) ) ; opElement . setAttribute ( XML_ATTRIBUTE_Y_POSITION , "" + ( int ) bounds . getY ( ) ) ; opElement . setAttribute ( XML_ATTRIBUTE_WIDTH , "" + ( int ) bounds . getWidth ( ) ) ; opElement . setAttribute ( XML_ATTRIBUTE_HEIGHT , "" + ( int ) bounds . getHeight ( ) ) ; } }
adds the position and size of the operator to the xml element .
