Package org.tinyuml.draw

Examples of org.tinyuml.draw.BaseConnection


  public void testAddRemoveConnection() {
    UmlAssociation assoc = (UmlAssociation)
      UmlAssociation.getInstance().clone();
    Line2D line = new Line2D.Double();
    line.setLine(5.0, 5.0, 10.0, 5.0);
    Connection conn = new BaseConnection(assoc, line);
    diagram.addChild(conn);
    assertEquals(diagram, conn.getParent());
    assertEquals(conn, diagram.getChildAt(6.0, 5.0));
    diagram.removeChild(conn);
    assertNull(conn.getParent());
  }
View Full Code Here


  public void testAddRemoveConnection() {
    UmlAssociation assoc = (UmlAssociation)
      UmlAssociation.getInstance().clone();
    Line2D line = new Line2D.Double();
    line.setLine(5.0, 5.0, 10.0, 5.0);
    Connection conn = new BaseConnection(assoc, line);
    diagram.addChild(conn);
    assertEquals(diagram, conn.getParent());
    assertEquals(conn, diagram.getChildAt(6.0, 5.0));
    diagram.removeChild(conn);
    assertNull(conn.getParent());
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.draw.BaseConnection

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.