Package org.tinyuml.model

Examples of org.tinyuml.model.UmlClass


    compElem.setModelElement(comp);
    compElem.addNodeChangeListener(this);
    elementPrototypes.put(ElementType.COMPONENT, compElem);

    // Add class prototype
    UmlClass clss = (UmlClass) UmlClass.getPrototype().clone();
    clss.setName("Class 1");
    ClassElement classElem = (ClassElement) ClassElement.getPrototype().clone();
    classElem.setModelElement(clss);
    classElem.addNodeChangeListener(this);
    elementPrototypes.put(ElementType.CLASS, classElem);
    return elementPrototypes;
View Full Code Here


  /**
   * Reinitializes the main compartment with the contained labels.
   */
  private void reinitMainCompartment() {
    UmlClass umlclass = (UmlClass) getModelElement();
    mainCompartment.removeAllLabels();
    if (showStereotypes) {
      for (UmlStereotype stereotype : umlclass.getStereotypes()) {
        Label label = new SimpleLabel();
        label.setSource(new UmlModelElementLabelSource(stereotype));
        mainCompartment.addLabel(label);
      }
    }
View Full Code Here

TOP

Related Classes of org.tinyuml.model.UmlClass

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.