Package org.tinyuml.model

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


  /**
   * {@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

  /**
   * {@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

  /**
   * {@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

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

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

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

    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

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

    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

Related Classes of org.tinyuml.model.UmlComponent

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.