Package com.intellij.openapi.graph.view.hierarchy

Examples of com.intellij.openapi.graph.view.hierarchy.GroupNodeRealizer


        final BasicNodesGroup group = new BasicNodesGroup(name) {

          @Nullable
          public GroupNodeRealizer getGroupNodeRealizer() {
            final GroupNodeRealizer groupNodeRealizer = super.getGroupNodeRealizer();
            assert groupNodeRealizer != null;

            final NodeLabel nodeLabel = groupNodeRealizer.getLabel();
            nodeLabel.setText("      " + getGroupName());
            nodeLabel.setModel(NodeLabel.INTERNAL);
            nodeLabel.setPosition(NodeLabel.TOP_RIGHT);

            return groupNodeRealizer;
View Full Code Here


        graph.setSize(nodeRealizer.getNode(), GraphManager.getGraphManager().createYDimension(size.width, size.height));
      }
    }

    if (nodeRealizer instanceof GroupNodeRealizer) {
      final GroupNodeRealizer groupNodeRealizer = (GroupNodeRealizer)nodeRealizer;
      if (groupNodeRealizer.isGroupClosed()) {
        final NodeLabel nodeLabel = groupNodeRealizer.getLabel();
        if (nodeLabel != null) {
          graph.setSize(node, nodeLabel.getWidth(), groupNodeRealizer.getHeight());
        }
      }
    }
  }
View Full Code Here

    return myGroupName;
  }

  @Nullable
  public GroupNodeRealizer getGroupNodeRealizer() {
    final GroupNodeRealizer groupNodeRealizer = GraphManager.getGraphManager().createGroupNodeRealizer();

    groupNodeRealizer.setInnerGraphDisplayEnabled(true);
    groupNodeRealizer.setAutoBoundsEnabled(true);

    groupNodeRealizer.setLabelText(getGroupName());

    groupNodeRealizer.setOpenGroupIcon(Icons.PACKAGE_OPEN_ICON);
    groupNodeRealizer.setClosedGroupIcon(Icons.PACKAGE_ICON);

    return groupNodeRealizer;
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.graph.view.hierarchy.GroupNodeRealizer

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.