protected static void drawDataPoint(double x,double y,double xprev,double yprev,int size,int shape,Graphics gx){
  drawDataPoint(x,y,size,shape,gx);
  gx.drawLine((int)x,(int)y,(int)xprev,(int)yprev);
}

protected static void drawDataPoint ( double x , double y , double xprev , double yprev , int size , int shape , Graphics gx ) { drawDataPoint ( x , y , size , shape , gx ) ; gx . drawLine ( ( int ) x , ( int ) y , ( int ) xprev , ( int ) yprev ) ; }
draws a data point at a given set of panel coordinates at a given size and connects a line to the previous point .
