private Shape scaleShape(Shape shape,double scalingFactor){
  if (scalingFactor != 1) {
    AffineTransform t=new AffineTransform();
    t.scale(scalingFactor,scalingFactor);
    shape=t.createTransformedShape(shape);
  }
  return shape;
}

private Shape scaleShape ( Shape shape , double scalingFactor ) { if ( scalingFactor != 1 ) { AffineTransform t = new AffineTransform ( ) ; t . scale ( scalingFactor , scalingFactor ) ; shape = t . createTransformedShape ( shape ) ; } return shape ; }
scales a shape according to the scaling factor for value ( given by the sizeprovider if one such exists ) . if no sizeprovider exists , the shape is returned unmodified .
