Examples of GraphConnection


Examples of org.eclipse.zest.core.widgets.GraphConnection

                highlightLinks(graph, selected, connected);
                highlightBundles(graph, selected, connected);
            }
            else if (sel instanceof Link)
            {
                GraphConnection c = (GraphConnection) findGraphItem(sel);
                if (c != null)
                {
                    c.unhighlight();
                    c.setHighlightColor(ColorConstants.blue);
                    c.highlight();
                }
            }
        }
        else
        {
View Full Code Here

Examples of org.eclipse.zest.core.widgets.GraphConnection

    private void highlightLinks(BundleGraph graph, ISigilBundle selected,
        Set<ISigilBundle> connected)
    {
        for (Link l : graph.getLinks())
        {
            GraphConnection c = (GraphConnection) findGraphItem(l);
            if (c != null)
            {
                c.unhighlight();

                if (view.isDisplayed(BundleResolverView.DEPENDENTS))
                {
                    if (l.getSource() == selected && connected.contains(l.getTarget()))
                    {
                        c.setHighlightColor(ColorConstants.lightBlue);
                        c.highlight();
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.eclipse.zest.core.widgets.GraphConnection

    List sConnections = (this).getSourceConnections();
    @SuppressWarnings("rawtypes")
    List tConnections = (this).getTargetConnections();
    for (@SuppressWarnings("rawtypes")
    Iterator iterator2 = sConnections.iterator(); iterator2.hasNext();) {
      GraphConnection connection = (GraphConnection) iterator2.next();
      connection.setVisible(false);
    }

    for (@SuppressWarnings("rawtypes")
    Iterator iterator2 = tConnections.iterator(); iterator2.hasNext();) {
      GraphConnection connection = (GraphConnection) iterator2.next();
      connection.setVisible(false);
    }
  }
View Full Code Here

Examples of org.eclipse.zest.core.widgets.GraphConnection

   
    for (final PrioritizedDecomposition priorizedDecomposition : cacheManager
        .getSelectedGoalsDecompositions()) {
      final Decomposition decomposition = cacheManager.getSelectedGoalsDecomposition(priorizedDecomposition);
     
      final GraphConnection connection = createConnection(decomposition);
     
     
      cacheManager.addCacheChangedListener( new ICacheChangedListener() {
       
        @Override
View Full Code Here

Examples of org.eclipse.zest.core.widgets.GraphConnection

    for (ApplicableElement applicableElement : cacheManager
        .getAllApplicableElements()) {
      for (Relation outgoingDecompositionRelation : cacheManager
          .getApplicableOutgoingDecompositionRelations(applicableElement)) {

        GraphConnection connection = createConnection(outgoingDecompositionRelation);

        Integer weight = cacheManager
            .getSelectedGoalPriorizedDecompositionWeight(cacheManager
                .getPriorizedGoalDecompositionForDecomposition((Decomposition) outgoingDecompositionRelation));
        connection
            .setText(weight != null ? String.valueOf(weight) : "");
        ConnectionDecorator
            .decoradeConnection(
                connection,
                outgoingDecompositionRelation,
View Full Code Here

Examples of org.eclipse.zest.core.widgets.GraphConnection

   
    nodes.add(node);
   
    for (ResultNode n : cur.next) {
      GraphNode child = dbg(n, cur, g);
      new GraphConnection(g.getGraphControl(), ZestStyles.CONNECTIONS_DIRECTED, node, child);
    }
   
    return node;
  }
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.