Examples of Graph2DView


Examples of com.intellij.openapi.graph.view.Graph2DView

    final ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator();

    progress.setText("Initializing...");
    final Project project = xmlFile.getProject();
    final Graph2D graph = GraphManager.getGraphManager().createGraph2D();
    final Graph2DView view = GraphManager.getGraphManager().createGraph2DView();

    progress.setText("Building model...");
    final StrutsDataModel myDataModel = new StrutsDataModel(xmlFile);
    final StrutsPresentationModel presentationModel = new StrutsPresentationModel(graph);
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

    super(graph);
    myScale = scale;
  }

  public void actionPerformed(AnActionEvent e, Graph2D graph) {
    final Graph2DView graph2DView = getGraph2DView(graph);

    graph2DView.setZoom(graph2DView.getZoom() + myScale);
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

  public ShowHideGridAction(final Graph2D graph) {
    super(graph, ICON);
  }

  protected boolean isSelected(Graph2D graph, final Project project, final AnActionEvent event) {
    final Graph2DView view = (Graph2DView)graph.getCurrentView();
    return view.isGridVisible();
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

    final Graph2DView view = (Graph2DView)graph.getCurrentView();
    return view.isGridVisible();
  }

  protected void setSelected(Graph2D graph, boolean state, final Project project, final AnActionEvent e) {
    final Graph2DView view = ((Graph2DView)graph.getCurrentView());
    view.setGridVisible(state);
    view.updateView();
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

  public SnapToGridAction(final Graph2D graph) {
    super(graph, ICON);
  }

  protected boolean isSelected(Graph2D graph, final Project project, final AnActionEvent event) {
    final Graph2DView view = (Graph2DView)graph.getCurrentView();
    return view.getGridMode();
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

    final Graph2DView view = (Graph2DView)graph.getCurrentView();
    return view.getGridMode();
  }

  protected void setSelected(Graph2D graph, boolean state, final Project project, final AnActionEvent e) {
    final Graph2DView view = ((Graph2DView)graph.getCurrentView());
    view.setGridMode(state);
    view.updateView();
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

  public ActualZoomAction(Graph2D graph) {
    super(graph);
  }

  public void actionPerformed(AnActionEvent e, Graph2D graph) {
    final Graph2DView view = getGraph2DView(graph);
    view.setZoom(1.0);
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

    super(graph2D);
  }

  private PrintPreviewPanel createPanel(Graph2D graph2D) {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    final Graph2DView view = getGraph2DView(graph2D);
    return Graph2DPrintPreviewPanel.createPanel(printJob, GraphManager.getGraphManager().createGraph2DPrinter(view), printJob.defaultPage());
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

  public FitContentAction(Graph2D graph) {
    super(graph);
  }

  public void actionPerformed(AnActionEvent e, Graph2D graph) {
    final Graph2DView view = getGraph2DView(graph);
    view.fitContent();
  }
View Full Code Here

Examples of com.intellij.openapi.graph.view.Graph2DView

  protected boolean isSelected(Graph2D graph, final Project project, final AnActionEvent event) {
    return GraphSettingsProvider.getInstance(project).getSettings(graph).getCurrentLayouter() == getLayouter(graph, project);
  }

  protected void setSelected(Graph2D graph, boolean state, final Project project, final AnActionEvent e) {
    final Graph2DView view = AbstractGraphAction.getGraph2DView(graph);

    final Layouter layouter = getLayouter(graph, project);

    GraphSettingsProvider.getInstance(project).getSettings(graph).setCurrentLayouter(layouter);
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.