question: void validate ( SunGraphics2D sg2d ) { Region clip = sg2d . getCompClip ( ) ; setBounds ( clip . getLoX ( ) , clip . getLoY ( ) , clip . getHiX ( ) , clip . getHiY ( ) , sg2d . strokeHint ) ; }
target:  This method needs to be called prior to each draw/fillPath() operation to ensure the clip bounds are up to date.