Package org.tinyuml.draw

Examples of org.tinyuml.draw.ComponentElement


  protected void setUp() {
    mockCompartment.expects(once()).method("setParent");
    mockCompartment.expects(once()).method("addLabel");
    mockCompartment.expects(once()).method("setMinimumSize");
    mockCompartment.expects(once()).method("setMarginTop");
    mockedElement = new ComponentElement(component,
      (Compartment) mockCompartment.proxy());
    mockedElement.setParent((CompositeNode) mockParent.proxy());
  }
View Full Code Here


    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
      shape = new ComponentElement((UmlComponent) elem);
    }
    if (shape != null) {
      shapeMap.put(shapeId, shape);
      diagram.addChild(shape);
      currentNode = shape;
View Full Code Here

    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
      shape = new ComponentElement((UmlComponent) elem);
    }
    if (shape != null) {
      shapeMap.put(shapeId, shape);
      diagram.addChild(shape);
      currentNode = shape;
View Full Code Here

    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = new PackageElement((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
      shape = new ComponentElement((UmlComponent) elem);
    }
    if (shape != null) {
      shapeMap.put(shapeId, shape);
      diagram.addChild(shape);
      currentNode = shape;
View Full Code Here

TOP

Related Classes of org.tinyuml.draw.ComponentElement

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.