question: protected void drawValueLabel ( DrawingContext context , Shape point , Row row , int pointIndex , int col ) { Comparable < ? > value = row . get ( col ) ; Format format = getValueFormat ( ) ; if ( ( format == null ) && row . isColumnNumeric ( col ) ) { format = NumberFormat . getInstance ( ) ; } String text = ( format != null ) ? format . format ( value ) : value . toString ( ) ; ColorMapper colors = getValueColor ( ) ; Paint paint = colors . get ( pointIndex ) ; Font font = getValueFont ( ) ; double fontSize = font . getSize2D ( ) ; Location location = getValueLocation ( ) ; double alignX = getValueAlignmentX ( ) ; double alignY = getValueAlignmentY ( ) ; double rotation = getValueRotation ( ) ; double distance = getValueDistance ( ) ; if ( MathUtils . isCalculatable ( distance ) ) { distance *= fontSize ; } else { distance = 0.0 ; } Label label = new Label ( text ) ; label . setAlignmentX ( alignX ) ; label . setAlignmentY ( alignY ) ; label . setRotation ( rotation ) ; label . setColor ( paint ) ; label . setFont ( font ) ; Rectangle2D boundsPoint = point . getBounds2D ( ) ; DrawableContainer labelContainer = new DrawableContainer ( new OuterEdgeLayout ( distance ) ) ; labelContainer . add ( label , location ) ; labelContainer . setBounds ( boundsPoint ) ; labelContainer . draw ( context ) ; }
target:  Draws the specified value label for the specified shape.