void validate(SunGraphics2D sg2d){
  Region clip=sg2d.getCompClip();
  setBounds(clip.getLoX(),clip.getLoY(),clip.getHiX(),clip.getHiY(),sg2d.strokeHint);
  validateSurface(sg2d);
}

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