question: protected void paintHorizontalLabel ( Graphics g , int value , Component label ) { int labelCenter = xPositionForValue ( value ) ; int labelLeft = labelCenter - ( label . getPreferredSize ( ) . width / 2 ) ; g . translate ( labelLeft , 0 ) ; label . paint ( g ) ; g . translate ( - labelLeft , 0 ) ; }
target:  Called for every label in the label table.  Used to draw the labels for horizontal sliders. The graphics have been translated to labelRect.y already.