Package y.base

Examples of y.base.Edge


            Node target = (Node) entry.getKey().getKey(1);

            List<Edge> lowLevelEdges = entry.getValue();
            // insert a new edge with the strength corr. to the number of
            // aggregated edges
            Edge highLevelEdge = getHierarchyManager().createEdge(source, target);
            addedHighLevelEdges.add(highLevelEdge);
            aggregatedToContainedEdges.set(highLevelEdge, lowLevelEdges);

            for (Edge lowLevelEdge : lowLevelEdges) {
                try {
View Full Code Here


            Node node = nc.node();
            selectedNodes.add(node);
            selectedElements.add(node);
        }
        for (EdgeCursor ec = getGraphLoader().getGraph().selectedEdges(); ec.ok(); ec.next()) {
            Edge edge = ec.edge();
            selectedEdges.add(edge);
            selectedElements.add(edge);
        }

        JPopupMenu pm = new JPopupMenu();
View Full Code Here

            configureNode(node);
            // } else if (graphEvent.getType() == DAForJavaGraphEvent.EDGE_CREATION_ASSOCIATION_SET) {
            // Edge edge = (Edge) graphEvent.getData();
            // configureEdge(edge);
        } else if (event.getPropertyName().equals(DependencyGraph.HIGHLEVEL_EDGE_ADDED)) {
            Edge edge = (Edge) event.getNewValue();
            configureHighLevelEdge(edge);
        }
    }
View Full Code Here

            NodeList nl = (NodeList) graphEvent.getData();
            for (NodeCursor nc = nl.nodes(); nc.ok(); nc.next()) {
                fAddedNodes.add(nc.node());
            }
        } else if (graphEvent.getType() == GraphEvent.EDGE_CREATION) {
            Edge edge = (Edge) graphEvent.getData();
            fAddedEdges.add(edge);
        } else if (graphEvent.getType() == GraphEvent.POST_EDGE_REMOVAL) {
            Edge edge = (Edge) graphEvent.getData();
            fRemovedEdges.add(edge);
        }
    }
View Full Code Here

        List<FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "from");
        associationsToOtherEntities.addAll(getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "to"));

        Set<AbstractFamixEntity> entitiesToRemove = new HashSet<AbstractFamixEntity>(descendants);
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
            if (edge != null) {
                AbstractFamixEntity from = association.getFrom();
                AbstractFamixEntity to = association.getTo();
                if (descendants.contains(from) && getGraphLoader().getGraph().contains(to)) {
                    entitiesToRemove.remove(from);
View Full Code Here

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);

        List<? extends FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "to");
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
            if (edge != null) {
                if (!dependentEntities.contains(association.getFrom())) {
                    dependentEntities.add(association.getFrom());
                }
            }
View Full Code Here

        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);

        List<FamixAssociation> associationsToOtherEntities = (List<FamixAssociation>) getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "from");
        associationsToOtherEntities.addAll((List<FamixAssociation>) getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "to"));
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
            if (edge != null) {
                AbstractFamixEntity dependentEntity = null;
                if (descendants.contains(association.getFrom())) {
                    dependentEntity = association.getTo();
                } else {
View Full Code Here

TOP

Related Classes of y.base.Edge

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.