Examples of GraphViewer


Examples of com.github.dandelion.core.monitoring.GraphViewer

    ByteArrayResponseWrapper wrappedResponse = new ByteArrayResponseWrapper(response);
    filterChain.doFilter(request, wrappedResponse);

    // Bundle graph viewer display (development mode only)
    if (context.isDevModeEnabled() && request.getParameter(WebConstants.DANDELION_SHOW_GRAPH) != null) {
      GraphViewer graphViewer = new GraphViewer(context);
      response.getWriter().print(graphViewer.getView(request, response, filterChain));
      return;
    }

    byte[] bytes = wrappedResponse.toByteArray();
View Full Code Here

Examples of com.sun.hotspot.igv.data.services.GraphViewer

        this.b = b;
    }

    public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
View Full Code Here

Examples of com.sun.hotspot.igv.data.services.GraphViewer

        super(Children.LEAF, new AbstractLookup(content));
        this.graph = graph;
        this.setDisplayName(graph.getName());
        content.add(graph);

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if (viewer != null) {
            // Action for opening the graph
            content.add(new OpenCookie() {

                public void open() {
                    viewer.view(graph);
                }
            });
        }

        // Action for removing a graph
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4graph.GraphViewer

      view = new VizState(view);
      if (proj == null) proj = new AlloyProjection();
      Graph graph = new Graph(view.getFontSize() / 12.0D);
      new StaticGraphMaker(graph, instance, view, proj);
      if (graph.nodes.size()==0) new GraphNode(graph, "", "Due to your theme settings, every atom is hidden.", "Please click Theme and adjust your settings.");
      return new GraphViewer(graph);
   }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

    private void createViewer(Composite parent)
    {
        viewComposite = new Composite(parent, SWT.NONE);
        viewComposite.setLayout(new FillLayout());
        viewer = new GraphViewer(viewComposite, SWT.H_SCROLL | SWT.V_SCROLL);
        IContentProvider contentProvider = new BundleGraphContentProvider();
        viewer.setContentProvider(contentProvider);
        viewer.setLabelProvider(new BundleGraphLabelProvider(this));
        viewer.addFilter(new BundleGraphViewFilter(this));
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

   
    project = getComposerEditor().getProject();
    composerProject = ComposerPlugin.getDefault().getComposerProject(project);
    graphController = new GraphController(composerProject);
    graphController.setComposerProject(composerProject);
    viewer = new GraphViewer(body, SWT.NO_REDRAW_RESIZE);
    viewer.setConnectionStyle(ZestStyles.CONNECTIONS_DIRECTED);
    viewer.setContentProvider(graphController);
    viewer.setLabelProvider(graphController);
    viewer.setLayoutAlgorithm(setLayout());
    viewer.applyLayout();
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

   * (non-Javadoc)
   * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
   */
  @Override
  public void selectionChanged(SelectionChangedEvent event) {
    GraphViewer viewer = getViewer();
    if (selectedConnections != null) {
      for (AbstractNode node : selectedConnections) {
        viewer.unReveal(node);
      }
      selectedConnections = null;
    }

    ISelection selection = event.getSelection();
    if (!selection.isEmpty() && selection instanceof IStructuredSelection) {
      selectedConnections = new HashSet<AbstractNode>();
      for (Object o : ((IStructuredSelection) selection).toList()) {
        if (o instanceof AbstractNode) {
          AbstractNode node = (AbstractNode) o;
          viewer.reveal(node);
          selectedConnections.add(node);
          /*
          AbstractNode output = (AbstractNode) o;
          for (AbstractNode node : output.getOutputs()) {
            viewer.reveal(node);
            selectedConnections.add(node);
          }
           */
        }
      }
    }

    Object[] connections = viewer.getConnectionElements();
    for (int i = 0; i < connections.length; i++) {
      viewer.update(connections[i], null);
    }
  }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

        if ( getGraphView() == null )
        {
            return;
        }
        List<Relationship> rels = new ArrayList<Relationship>();
        GraphViewer gViewer = getGraphView().getViewer();
        for ( Object o : gViewer.getConnectionElements() )
        {
            if ( o instanceof Relationship )
            {
                Relationship rel = (Relationship) o;
                if ( rel.isType( relType ) )
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

    {
        if ( getGraphView() == null )
        {
            return;
        }
        GraphViewer gViewer = getGraphView().getViewer();
        Set<Node> nodes = new HashSet<Node>();
        for ( Object o : gViewer.getNodeElements() )
        {
            if ( o instanceof Node )
            {
                Node node = (Node) o;
                if ( node.hasRelationship( relType, direction ) )
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer

     * Creates the view.
     */
    @Override
    public void createPartControl( final Composite parent )
    {
        viewer = new GraphViewer( parent, SWT.NONE );
        viewer.setUseHashlookup( true );
        viewer.setContentProvider( new NeoGraphContentProvider( this ) );
        viewer.addDoubleClickListener( new NeoGraphDoubleClickListener() );
        viewer.setLayoutAlgorithm( new SpringLayoutAlgorithm( LayoutStyles.NO_LAYOUT_NODE_RESIZING ) );
        NeoGraphLabelProvider labelProvider = NeoGraphLabelProviderWrapper.getInstance();
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.