Examples of mxHierarchicalLayout


Examples of com.mxgraph.layout.hierarchical.mxHierarchicalLayout

    {
      mxGraph graph = graphComponent.getGraph();

      if (ident.equals("verticalHierarchical"))
      {
        layout = new mxHierarchicalLayout(graph);
      }
      else if (ident.equals("horizontalHierarchical"))
      {
        layout = new mxHierarchicalLayout(graph, JLabel.WEST);
      }
      else if (ident.equals("verticalTree"))
      {
        layout = new mxCompactTreeLayout(graph, false);
      }
View Full Code Here

Examples of com.mxgraph.layout.hierarchical.mxHierarchicalLayout

    {
      mxGraph graph = graphComponent.getGraph();

      if (ident.equals("verticalHierarchical"))
      {
        layout = new mxHierarchicalLayout(graph);
      }
      else if (ident.equals("horizontalHierarchical"))
      {
        layout = new mxHierarchicalLayout(graph, JLabel.WEST);
      }
      else if (ident.equals("verticalTree"))
      {
        layout = new mxCompactTreeLayout(graph, false);
      }
View Full Code Here

Examples of com.mxgraph.layout.hierarchical.mxHierarchicalLayout

    @Override
    public Object getLayout(IGraphView view) {
      if (view instanceof JGraphView) {
        JGraphView jgraphview = (JGraphView) view;
        mxHierarchicalLayout layout = new mxHierarchicalLayout(jgraphview.getGraph());
        layout.setDisableEdgeStyle(false);
        if (super.settings.get(FINE_TUNING) instanceof Boolean) {
          layout.setFineTuning((Boolean)super.settings.get(FINE_TUNING));       
        }
        if (super.settings.get(INTRA_CELL_SPACING) instanceof Double) {
          layout.setIntraCellSpacing((Double)super.settings.get(INTRA_CELL_SPACING));       
        }
        if (super.settings.get(INTER_RANK_CELL_SPACING) instanceof Double) {
          layout.setInterRankCellSpacing((Double)super.settings.get(INTER_RANK_CELL_SPACING));       
        }
        if (super.settings.get(INTER_HIERARCHY_SPACING) instanceof Double) {
          layout.setInterHierarchySpacing((Double)super.settings.get(INTER_HIERARCHY_SPACING));       
        }
        return layout;
      }     
      return null;
    }
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.