Package org.woped.core.model

Examples of org.woped.core.model.ModelElementContainer


  /**
   * calculates the size of the model basing on model-position and
   * -width/-height
   */
  private void calculateModelSize() {
    ModelElementContainer elements = editor.getModelProcessor().getElementContainer();
    AbstractPetriNetElementModel element = null;

    modelSize = new Dimension(100, 100);

    for (String elementId : elements.getIdMap().keySet()) {
      element = elements.getElementById(elementId);
      int elementNameWidth = element.getNameModel().getNameValue()
          .length() * 7;
      // TODO: The best would be taking the size of the blue box itself
      if (element.getX() + element.getWidth() + elementNameWidth > modelSize.width) {
        modelSize.width = element.getX() + element.getWidth()
View Full Code Here

TOP

Related Classes of org.woped.core.model.ModelElementContainer

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.