protected void paintValues ( Graphics g , boolean paintLines ) { Point valueLocation ; Point lastLocation = null ; for ( int i = 0 ; i < getValueCount ( ) ; i ++ ) { valueLocation = getPointFor ( i ) ; GraphicUtils . fillCircle ( g , valueLocation , getPointDiameter ( ) ) ; if ( paintLines && lastLocation != null ) { g . drawLine ( lastLocation . x , lastLocation . y , valueLocation . x , valueLocation . y ) ; } lastLocation = valueLocation ; } }
Paints diagram - content on the base of the values for different dimensions .