The Legend has a Symbol method which controls the width and position of the color rectangle associated to each Legend item.

Example:
myChart.getLegend().getSymbol().setPosition(LegendSymbolPosition.RIGHT);