We tested the following code and it worked fine.
ChartAttribute largeSymbol = new ChartAttribute(Color.yellow, 1, 0, Color.yellow);
largeSymbol.setSymbolSize(18);
StandardLegend legend = new StandardLegend(0.2, 0.15, 0.3, 0.4, legendAttributes, StandardLegend.VERT_DIR);
legend.addLegendItem("Forecast",ChartConstants.HBAR, largeSymbol, legendFont);
You can also changed the size of a legend item using code similar to:
// Change the size of the symbol of the first legend item (index 0) to 18
legend.getLegendItem(0).getLegendItemSymbol().setSymbolSize(18);
You cannot selectively have the legend not resize. You can either have all of the text in the chart automatically resize (axis labels, titles, legends, etc.) or not resize. Use the ChartView setResizeMode method. But you can't mix and match.
gWG.setResizeMode(ChartConstants.NO_RESIZE_OBJECTS);
See the ResizeExamples example program.