Package org.thechiselgroup.choosel.visualization_component.graph.client.widget

Examples of org.thechiselgroup.choosel.visualization_component.graph.client.widget.Node


        VisualItem visualItem2 = VisualItemTestUtils.createVisualItem(2);

        simulateAddVisualItems(LightweightCollections.toCollection(visualItem1,
                visualItem2));

        Node node1 = ((NodeItem) visualItem1.getDisplayObject()).getNode();
        Node node2 = ((NodeItem) visualItem2.getDisplayObject()).getNode();

        assertThat(underTest.getAllNodes(),
                CollectionMatchers.containsExactly(CollectionUtils.toList(
                        node1, node2)));
    }
View Full Code Here


        assert display != null;

        this.visualItem = visualItem;
        this.display = display;

        node = new Node(visualItem.getId(), getLabelValue(), type);
    }
View Full Code Here

                }
            }
        }

        // TODO extract + refactor layout (have method layout on node)
        Node inputNode = expansionCallback.getDisplay().getNode(
                resource.getUri());
        Point inputLocation = expansionCallback.getDisplay().getLocation(
                inputNode);

        List<Node> nodesToLayout = new ArrayList<Node>();
        for (String uri : added) {
            Node node = expansionCallback.getDisplay().getNode(uri);
            expansionCallback.getDisplay().setLocation(node, inputLocation);
            nodesToLayout.add(node);
        }

        expansionCallback.getDisplay().runLayoutOnNodes(nodesToLayout);
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.visualization_component.graph.client.widget.Node

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.