Examples of mxGraphView


Examples of com.mxgraph.view.mxGraphView

      Arrays.fill(weight[i], Double.MAX_VALUE);
    }

    boolean isDirected = mxGraphProperties.isDirected(aGraph.getProperties(), mxGraphProperties.DEFAULT_DIRECTED);
    mxCostFunction costFunction = aGraph.getGenerator().getCostFunction();
    mxGraphView view = aGraph.getGraph().getView();

    for (Object currEdge : edges)
    {
      Object source = aGraph.getTerminal(currEdge, true);
      Object target = aGraph.getTerminal(currEdge, false);

      weight[indexMap.get(source)][indexMap.get(target)] = costFunction.getCost(view.getState(currEdge));

      if (!isDirected)
      {
        weight[indexMap.get(target)][indexMap.get(source)] = costFunction.getCost(view.getState(currEdge));
      }
    }

    for (int i = 0; i < nodes.length; i++)
    {
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.