Package com.intellij.openapi.graph.builder

Examples of com.intellij.openapi.graph.builder.GraphPresentationModel


  protected boolean isSelected(Graph2D graph, final Project project, final AnActionEvent event) {
    final GraphBuilder builder = getGraphBuilder(event);

    if (builder != null) {
      final GraphPresentationModel graphPresentationModel = builder.getGraphPresentationModel();
      if (graphPresentationModel instanceof BasicGraphPresentationModel) {
        return ((BasicGraphPresentationModel)graphPresentationModel).isShowEdgeLabels();
      }
    }
    return false;
View Full Code Here


  protected void setSelected(Graph2D graph, boolean state, final Project project, final AnActionEvent e) {
    final GraphBuilder builder = getGraphBuilder(e);

    if (builder != null) {
      final GraphPresentationModel graphPresentationModel = builder.getGraphPresentationModel();
      if (graphPresentationModel instanceof BasicGraphPresentationModel) {
        ((BasicGraphPresentationModel)graphPresentationModel).setShowEdgeLabels(state);
        builder.updateGraph();
      }
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.graph.builder.GraphPresentationModel

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.