public void updatePoints(mxCellState state,List<mxPoint> points,Object source,Object target){
  if (state != null) {
    List<mxPoint> pts=new ArrayList<mxPoint>();
    pts.add(state.getAbsolutePoint(0));
    mxEdgeStyleFunction edgeStyle=getEdgeStyle(state,points,source,target);
    if (edgeStyle != null) {
      mxCellState src=getState(getTerminalPort(state,source,true));
      mxCellState trg=getState(getTerminalPort(state,target,false));
      edgeStyle.apply(state,src,trg,points,pts);
    }
 else     if (points != null) {
      for (int i=0; i < points.size(); i++) {
        pts.add(transformControlPoint(state,points.get(i)));
      }
    }
    pts.add(state.getAbsolutePoint(state.getAbsolutePointCount() - 1));
    state.setAbsolutePoints(pts);
  }
}

public void updatePoints ( mxCellState state , List < mxPoint > points , Object source , Object target ) { if ( state != null ) { List < mxPoint > pts = new ArrayList < mxPoint > ( ) ; pts . add ( state . getAbsolutePoint ( 0 ) ) ; mxEdgeStyleFunction edgeStyle = getEdgeStyle ( state , points , source , target ) ; if ( edgeStyle != null ) { mxCellState src = getState ( getTerminalPort ( state , source , true ) ) ; mxCellState trg = getState ( getTerminalPort ( state , target , false ) ) ; edgeStyle . apply ( state , src , trg , points , pts ) ; } else if ( points != null ) { for ( int i = 0 ; i < points . size ( ) ; i ++ ) { pts . add ( transformControlPoint ( state , points . get ( i ) ) ) ; } } pts . add ( state . getAbsolutePoint ( state . getAbsolutePointCount ( ) - 1 ) ) ; state . setAbsolutePoints ( pts ) ; } }
updates the absolute points in the given state using the specified array of points as the relative points .
