question: protected int drawLabelText ( Object nativeGraphics , int textDecoration , boolean rtl , boolean isTickerRunning , boolean endsWith3Points , Object nativeFont , int txtW , int textSpaceW , int shiftText , String text , int x , int y , int fontHeight ) { if ( ( ! isTickerRunning ) || rtl ) { if ( txtW > textSpaceW && textSpaceW > 0 ) { if ( rtl ) { if ( ( ! isTickerRunning ) && endsWith3Points ) { String points = "..." ; int pointsW = stringWidth ( nativeFont , points ) ; drawString ( nativeGraphics , nativeFont , points , shiftText + x , y , textDecoration , fontHeight ) ; clipRect ( nativeGraphics , pointsW + shiftText + x , y , textSpaceW - pointsW , fontHeight ) ; } x = x - txtW + textSpaceW ; } else if ( endsWith3Points ) { String points = "..." ; int index = 1 ; int widest = charWidth ( nativeFont , 'W' ) ; int pointsW = stringWidth ( nativeFont , points ) ; int textLen = text . length ( ) ; while ( fastCharWidthCheck ( text , index , textSpaceW - pointsW , widest , nativeFont ) && index < textLen ) { index ++ ; } text = text . substring ( 0 , Math . min ( textLen , Math . max ( 1 , index - 1 ) ) ) + points ; txtW = stringWidth ( nativeFont , text ) ; } } } drawString ( nativeGraphics , nativeFont , text , shiftText + x , y , textDecoration , fontHeight ) ; return Math . min ( txtW , textSpaceW ) ; }
target:  Draws the text of a label