This code rotates the curve defined by f[x] about the y-axis.

f[x_] :=x^2

Plot[f[x], {x,0,1}]

fpp=ParametricPlot3D[{r Cos[ang],r Sin[ang],f[r]},{r,0,3},{ang,0, 2Pi}]

This code rotates the curve defined by f[x] about the x-axis.

ParametricPlot3D[{r,f[r] Cos[ang],f[r] Sin[ang]},{r,0,1},{ang,0,2 π}]

Rotating about y=-2 can be done fairly easily.

ParametricPlot3D[{r,(f[r]+2) Cos[ang],(f[r]+2) Sin[ang]},{r,0,1},{ang,0,2 π}]

Rotating about x=3 takes a little skill, but it is possible.

fpp=ParametricPlot3D[{r Cos[ang],r Sin[ang],f[r+3]},{r,-3,-2},{ang,0, 2Pi}]