from = ((WorkflowPort)((ResultEdge)view.getCell()).getSource()).getIndex(); to = ((WorkflowPort)((ResultEdge)view.getCell()).getTarget()).getIndex();
  public ResultPosition(WorkflowGraph graph, ResultEdge edge)  {    id = edge.getDescriptor().getId();    EdgeView view = (EdgeView)graph.getGraphLayoutCache().getMapping(edge, false);    labelPos = view.getLabelPosition();    lineWidth = GraphConstants.getLineWidth(edge.getAttributes());    color = GraphConstants.getForeground(edge.getAttributes()).getRGB();    for(int i = 0; i < (view.getPointCount() - 2); i++)    {      routingPoints.add(new Point((int)view.getPoint(i + 1).getX(), (int)view.getPoint(i + 1).getY()));    }  }