public void drawLine(List<mxPoint> pts,Map<String,Object> style){
  String strokeColor=mxUtils.getString(style,mxConstants.STYLE_STROKECOLOR);
  int strokeWidth=(int)(mxUtils.getInt(style,mxConstants.STYLE_STROKEWIDTH,1) * scale);
  if (strokeColor != null && strokeWidth > 0) {
    mxPoint last=pts.get(0);
    for (int i=1; i < pts.size(); i++) {
      mxPoint pt=pts.get(i);
      drawSegment((int)last.getX(),(int)last.getY(),(int)pt.getX(),(int)pt.getY(),strokeColor,strokeWidth);
      last=pt;
    }
  }
}

public void drawLine ( List < mxPoint > pts , Map < String , Object > style ) { String strokeColor = mxUtils . getString ( style , mxConstants . STYLE_STROKECOLOR ) ; int strokeWidth = ( int ) ( mxUtils . getInt ( style , mxConstants . STYLE_STROKEWIDTH , 1 ) * scale ) ; if ( strokeColor != null && strokeWidth > 0 ) { mxPoint last = pts . get ( 0 ) ; for ( int i = 1 ; i < pts . size ( ) ; i ++ ) { mxPoint pt = pts . get ( i ) ; drawSegment ( ( int ) last . getX ( ) , ( int ) last . getY ( ) , ( int ) pt . getX ( ) , ( int ) pt . getY ( ) , strokeColor , strokeWidth ) ; last = pt ; } } }
draws the given lines as segments between all points of the given list of mxpoints .
