Package org.eclipse.wb.internal.core.xml.model

Examples of org.eclipse.wb.internal.core.xml.model.AbstractComponentInfo


      Object element = getObject();
      // absolute bounds
      m_absoluteBounds = getState().getAbsoluteBounds(element);
      // model/parent bounds
      Rectangle bounds = m_absoluteBounds.getCopy();
      AbstractComponentInfo parent = (AbstractComponentInfo) getParent();
      bounds.translate(parent.getAbsoluteBounds().getLocation().getNegated());
      bounds.translate(parent.getClientAreaInsets().getNegated());
      setModelBounds(bounds);
    }
View Full Code Here


    }
    // prepare parent-relative bounds
    {
      Rectangle parentBounds = new Rectangle(m_absoluteBounds);
      if (getParent() instanceof AbstractComponentInfo) {
        AbstractComponentInfo parent = (AbstractComponentInfo) getParent();
        Rectangle parentAbsoluteBounds = parent.getAbsoluteBounds();
        parentBounds.x -= parentAbsoluteBounds.x;
        parentBounds.y -= parentAbsoluteBounds.y;
      } else {
        parentBounds.x = parentBounds.y = 0;
      }
View Full Code Here

  protected void fetchBounds(Object element) throws Exception {
    m_absoluteBounds = fetchAbsoluteBounds(element);
    {
      Rectangle bounds = m_absoluteBounds.getCopy();
      if (getParent() instanceof AbstractComponentInfo) {
        AbstractComponentInfo parent = (AbstractComponentInfo) getParent();
        Rectangle parentAbsoluteBounds = parent.getAbsoluteBounds();
        bounds.x -= parentAbsoluteBounds.x;
        bounds.y -= parentAbsoluteBounds.y;
        bounds.translate(parent.getClientAreaInsets().getNegated());
      }
      setModelBounds(bounds);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.AbstractComponentInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.