question: private void drawTextElements ( Canvas canvas , float textSize , Typeface typeface , ColorStateList textColor , String [ ] texts , float [ ] textX , float [ ] textY , Paint paint , int alpha , boolean showActivated , int activatedDegrees , boolean activatedOnly ) { paint . setTextSize ( textSize ) ; paint . setTypeface ( typeface ) ; final float activatedIndex = activatedDegrees / ( 360.0f / NUM_POSITIONS ) ; final int activatedFloor = ( int ) activatedIndex ; final int activatedCeil = ( ( int ) Math . ceil ( activatedIndex ) ) % NUM_POSITIONS ; for ( int i = 0 ; i < 12 ; i ++ ) { final boolean activated = ( activatedFloor == i || activatedCeil == i ) ; if ( activatedOnly && ! activated ) { continue ; } final int [ ] stateMask = new int [ ] { android . R . attr . state_enabled , ( showActivated && activated ? android . R . attr . state_selected : 0 ) } ; final int color = textColor . getColorForState ( stateMask , 0 ) ; paint . setColor ( color ) ; paint . setAlpha ( getMultipliedAlpha ( color , alpha ) ) ; canvas . drawText ( texts [ i ] , textX [ i ] , textY [ i ] , paint ) ; } }
target:  Draw the 12 text values at the positions specified by the textGrid parameters.