Package org.tinyuml.draw

Examples of org.tinyuml.draw.RectilinearConnection.copyData()


    points.add(new Point2D.Double(190, 30));
    points.add(new Point2D.Double(190, rectNode2.getAbsoluteY1()));
    conn.setPoints(points);
   
    RectilinearConnection copy = new RectilinearConnection();
    copy.copyData(conn);
    assertEquals(3, copy.getPoints().size());
    assertEquals(rectNode1.getAbsoluteX2(), copy.getPoints().get(0).getX());
    assertEquals(copy.getPoints().get(0).getY(),
                 copy.getPoints().get(1).getY());
    assertEquals(copy.getPoints().get(1).getX(),
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.