You could use Apache Commons math.
For linear, polynomial, exponential, logarithmic, and power trend lines OLSMultipleLinearRegression is all you need.
In this S.O. previous question, you can found the code for the trend lines.
Then you can simply add new series to yout chart with values derived from the trendline.