src/main/java/com/mxgraph/canvas/mxHtmlCanvas.java
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.
	 * 
	 * @param pts List of points that define the line.
	 * @param style Style to be used for painting the line.
	 */
Draws the given lines as segments between all points of the given list
of mxPoints.

@param pts List of points that define the line.
@param style Style to be used for painting the line.
Draws the given lines as segments between all points of the given list of mxPoints . @param pts List of points that define the line . @param style Style to be used for painting the line .
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.
Draws the given lines as segments between all points of the given list of mxPoints .