private void paintFullCurve ( Graphics g , int i ) { if ( this . measures [ i ] . getNumberOfValues ( this . measureSelected ) == 0 ) { // no values of this measure available return ; } g . setColor ( this . colors [ i ] ) ; int height = getHeight ( ) ; // // compute the relation of minimum PF and current PF // double processFrequencyFactor = pf / this.min_processFrequency; int n = this . measures [ i ] . getNumberOfValues ( this . measureSelected ) ; int [ ] x = new int [ n ] ; int [ ] y = new int [ n ] ; for ( int j = 0 ; j < n ; j ++ ) { x [ j ] = ( int ) ( j * x_resolution ) ; y [ j ] = ( int ) ( height - ( this . measures [ i ] . getValue ( this . measureSelected , j ) / this . upper_y_value ) * height ) ; if ( this . isStandardDeviationPainted ) { int len = ( int ) ( ( this . measureStds [ i ] . getValue ( this . measureSelected , j ) / this . upper_y_value ) * height ) ; paintStandardDeviation ( g , len , x [ j ] , y [ j ] ) ; } } g . drawPolyline ( x , y , n ) ; }
Draws a single curve on the canvas .