Examples of UmlComponent


Examples of org.tinyuml.model.UmlComponent

 
  /**
   * Tests UmlComponent creation.
   */
  public void testCreateComponent() {
    UmlComponent comp1 = (UmlComponent) factory.create(ElementType.COMPONENT);
    assertNotNull(comp1);
    assertTrue(umlModel.contains(comp1));
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

  /**
   * {@inheritDoc}
   */
  public ComponentElement createComponent() {
    UmlComponent comp = (UmlComponent)
      modelElementFactory.create(ElementType.COMPONENT);
    comp.setName("Component 1");
    ComponentElement compElem = new ComponentElement(comp);
    compElem.addNodeChangeListener(diagram);
    return compElem;
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

  /**
   * {@inheritDoc}
   */
  public ComponentElement createComponent() {
    UmlComponent comp = (UmlComponent)
      modelElementFactory.create(ElementType.COMPONENT);
    comp.setName("Component 1");
    ComponentElement compElem = new ComponentElement(comp);
    compElem.addNodeChangeListener(diagram);
    return compElem;
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

  /**
   * {@inheritDoc}
   */
  public ComponentElement createComponent() {
    UmlComponent comp = (UmlComponent)
      modelElementFactory.create(ElementType.COMPONENT);
    comp.setName("Component 1");
    ComponentElement compElem = new ComponentElement(comp);
    compElem.addNodeChangeListener(diagram);
    return compElem;
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

 
  /**
   * Tests UmlComponent creation.
   */
  public void testCreateComponent() {
    UmlComponent comp1 = (UmlComponent) factory.create(ElementType.COMPONENT);
    assertNotNull(comp1);
    assertTrue(umlModel.contains(comp1));
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

 
  /**
   * Tests UmlComponent creation.
   */
  public void testCreateComponent() {
    UmlComponent comp1 = (UmlComponent) factory.create(ElementType.COMPONENT);
    assertNotNull(comp1);
    assertTrue(umlModel.contains(comp1));
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

 
  /**
   * Tests UmlComponent creation.
   */
  public void testCreateComponent() {
    UmlComponent comp1 = (UmlComponent) factory.create(ElementType.COMPONENT);
    assertNotNull(comp1);
    assertTrue(umlModel.contains(comp1));
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

    pkg.setName("Package 1");
    pkgPrototype.setUmlPackage(pkg);
    elementPrototypes.put(ElementType.PACKAGE, pkgPrototype);

    // add component prototype
    UmlComponent comp = (UmlComponent) UmlComponent.getPrototype().clone();
    comp.setName("Component 1");
    ComponentElement compElem = (ComponentElement)
      ComponentElement.getPrototype().clone();
    compElem.setModelElement(comp);
    compElem.addNodeChangeListener(diagram);
    elementPrototypes.put(ElementType.COMPONENT, compElem);
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

 
  /**
   * Tests UmlComponent creation.
   */
  public void testCreateComponent() {
    UmlComponent comp1 = (UmlComponent) factory.create(ElementType.COMPONENT);
    assertNotNull(comp1);
    assertTrue(umlModel.contains(comp1));
  }
View Full Code Here

Examples of org.tinyuml.model.UmlComponent

    pkg.setName("Package 1");
    pkgPrototype.setUmlPackage(pkg);
    elementPrototypes.put(ElementType.PACKAGE, pkgPrototype);

    // add component prototype
    UmlComponent comp = (UmlComponent) UmlComponent.getPrototype().clone();
    comp.setName("Component 1");
    ComponentElement compElem = (ComponentElement)
      ComponentElement.getPrototype().clone();
    compElem.setModelElement(comp);
    compElem.addNodeChangeListener(diagram);
    elementPrototypes.put(ElementType.COMPONENT, compElem);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.