protected Shape stroke(Shape line){
  if (line == null) {
    return null;
  }
  Stroke stroke=getStroke();
  Shape lineShape=stroke.createStrokedShape(line);
  return lineShape;
}

protected Shape stroke ( Shape line ) { if ( line == null ) { return null ; } Stroke stroke = getStroke ( ) ; Shape lineShape = stroke . createStrokedShape ( line ) ; return lineShape ; }
returns the stroked shape of the specified line .
