The Legend Title method displays text at the top of the Legend rectangle.

Example:
myChart.getLegend().getTitle().setVisible(true)