* Draws a polyline.
*/
public static PolyLine drawPolyLine(JPanel form, Array_Of_DataPoint<DataPoint> points,
int penColor, int lineStyle, int lineWeight) {
setForm(form);
PolyLine line = new PolyLine();
line.setPointArray(points);
line.setLineStyle(lineStyle);
line.setLineWeight(lineWeight);
line.setVisible(true);
DataPoint lastPoint = points.get(points.size()-1);
ColourChange.setForeground(line, penColor);
Parent.set(line, form);
processActions();
setXPen(form, lastPoint.X);