GraphConstants.setLabelPosition(attributes, labelPos);
GraphConstants.setLabelPosition(attributes, new Point((int)labelPos.getX(), (int)labelPos.getY()));
  public ResultEdge(ResultDescriptor descriptor, Point labelPos)  {    super(descriptor);    setAttributes(new WorkflowAttributeMap(getAttributes()));    this.descriptor = descriptor;    int arrow = GraphConstants.ARROW_CLASSIC;    //GraphConstants.setLabelAlongEdge(attributes, true);    GraphConstants.setLineEnd(attributes, arrow);    GraphConstants.setEndFill(attributes, true);    GraphConstants.setDisconnectable(attributes, true);    GraphConstants.setBendable(attributes, true);    GraphConstants.setForeground(attributes, Color.BLACK);    //GraphConstants.setRouting(attributes, EDGE_ROUTER);    GraphConstants.setMoveable(attributes, true);    if(labelPos != null)    {      GraphConstants.setLabelPosition(attributes, labelPos);    }  }