public static void setupLegendTitle(LegendTitle legend) { if (legend != null) { legend.setBorder(0, 0, 0, 0); legend.setItemPaint(ChartDefaults.legendTextColor); legend.setMargin(2, 2, 2, 2); } } }
public static void setupLegendTitle(LegendTitle legend) { if (legend != null) { legend.setBorder(0, 0, 0, 0); legend.setItemPaint(ChartDefaults.legendTextColor); legend.setMargin(2,2,2,2); } } }
lt.setItemPaint(this.legendItemPaint); if (lt.getWrapper() != null) { applyToBlockContainer(lt.getWrapper());
lt.setItemPaint(this.legendItemPaint); if (lt.getWrapper() != null) { applyToBlockContainer(lt.getWrapper());
legend.setItemPaint(Color.gray); chart.addSubtitle(legend);
void configureLegend(LegendTitle chartLegend) { if (chartLegend != null) { if (findColor(getLegendBackgroundPaint()) != null) { chartLegend.setBackgroundPaint(findColor(getLegendBackgroundPaint())); } if (findColor(getLegendOutlinePaint()) != null) { chartLegend.setFrame(new BlockBorder(findColor(getLegendOutlinePaint()))); } if (findColor(getLegendItemPaint()) != null) { chartLegend.setItemPaint(findColor(getLegendItemPaint())); } } }
chart.getLegend().setItemPaint(foregroung);
if (legend != null) legend.setItemPaint(getChart().getLegendColor());