public void draw(Shape s){
  try {
    shapepipe.draw(this,s);
  }
 catch (  InvalidPipeException e) {
    try {
      revalidateAll();
      shapepipe.draw(this,s);
    }
 catch (    InvalidPipeException e2) {
    }
  }
 finally {
    surfaceData.markDirty();
  }
}

public void draw ( Shape s ) { try { shapepipe . draw ( this , s ) ; } catch ( InvalidPipeException e ) { try { revalidateAll ( ) ; shapepipe . draw ( this , s ) ; } catch ( InvalidPipeException e2 ) { } } finally { surfaceData . markDirty ( ) ; } }
strokes the outline of a path using the settings of the current graphics state . the rendering attributes applied include the clip , transform , paint or color , composite and stroke attributes .
