Package primitives.cluster

Examples of primitives.cluster.ClusterLeaf


  Node outsideIn;
  Node outsideOut;
  Node a,b;
  @Before
  public void setUp() throws Exception {
    c = new ClusterLeaf();
    a = new Node("a");
    b = new Node("b");
    outsideIn = new Node("outside -> in ");
    outsideOut = new Node("cluster -> outside");
    c.addNode(a);
View Full Code Here


    assertTrue(c.getNodes().contains(b));
  }

  @Test
  public void testTree(){
    IClusterLevel leaf1 = new ClusterLeaf();
    leaf1.addNode(b);
    ClusterLeaf leaf2 = new ClusterLeaf();
    leaf2.addNode(a);
    ClusterNode head = new ClusterNode();
    ClusterNode body = new ClusterNode();
    head.addChild(body);
    head.addChild(leaf1);
    body.addChild(leaf2);
    IClusterLevel leaf3 = new ClusterLeaf();
    leaf3.addNode(outsideIn);
    body.addChild(leaf3);
    assertTrue(head.contains(a));
    assertTrue(head.contains(b));
    assertTrue(head.contains(outsideIn));
    head.addNode(outsideOut);
View Full Code Here

    outsideIn.connect(a," a ");
    b.connect(outsideOut, " b ");
    g.addNode(outsideIn);
    g.addNode(outsideOut);
   
    leaf1 = new ClusterLeaf();
    leaf2 = new ClusterLeaf();
    leaf3 = new ClusterLeaf();
    head = new ClusterHead(g);
    body = new ClusterNode();
   
    leaf1.addNode(b);
View Full Code Here

TOP

Related Classes of primitives.cluster.ClusterLeaf

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.