question: public synchronized void draw ( final Graphics2D gfx , final float x , final float y ) { if ( ! isEmpty ( ) ) { m_textLayout . draw ( gfx , x , y ) ; for ( final CHighlighting highlighting : new ArrayList < CHighlighting > ( m_highlighting ) ) { final double bpX = ( x + highlighting . getStart ( ) ) - 2. ; final double bpY = ( y - m_charHeight ) + 4 ; final double bpW = highlighting . getEnd ( ) + 4 ; final double bpH = m_charHeight - 1 ; drawHighlighting ( gfx , bpX , bpY , bpW , bpH , highlighting . getColor ( ) ) ; } } }
target:  Draws the line onto a graphics context.