use of org.eclipse.swtchart.extensions.internal.marker.SeriesLabelMarker in project swtchart by eclipse.
the class ScrollableChart method setSeriesLabelMarker.
private void setSeriesLabelMarker() {
IPlotArea plotArea = (IPlotArea) baseChart.getPlotArea();
IChartSettings chartSettings = baseChart.getChartSettings();
//
if (seriesLabelMarker != null) {
plotArea.removeCustomPaintListener(seriesLabelMarker);
}
//
seriesLabelMarker = new SeriesLabelMarker(baseChart);
seriesLabelMarker.setForegroundColor(chartSettings.getColorSeriesLabelMarker());
plotArea.addCustomPaintListener(seriesLabelMarker);
//
if (chartSettings.isShowSeriesLabelMarker()) {
seriesLabelMarker.setDraw(true);
} else {
seriesLabelMarker.setDraw(false);
}
}
Aggregations