提交 2bc1bc26 编写于 作者: S serge-rider

#4209 Chart grid render fix


Former-commit-id: 79a0e0cf
上级 fbcd6612
......@@ -218,7 +218,9 @@ public class DashboardItem extends Composite implements DashboardContainer {
@Override
public void updateDashboardData(DashboardDataset dataset) {
UIUtils.asyncExec(() -> {
renderer.updateDashboardData(this, lastUpdateTime, dataset);
if (renderer != null) {
renderer.updateDashboardData(this, lastUpdateTime, dataset);
}
});
lastUpdateTime = new Date();
}
......
......@@ -116,7 +116,10 @@ public class DashboardRendererHistogram implements DashboardRenderer {
// Set background
plot.setBackgroundPaint(AWTUtils.makeAWTColor(composite.getBackground()));
plot.setBackgroundPaint(histogramChart.getBackgroundPaint());
Color gridColor = AWTUtils.makeAWTColor(UIStyles.getDefaultTextForeground());
plot.setDomainGridlinePaint(gridColor);
plot.setRangeGridlinePaint(gridColor);
DashboardChartComposite chartComposite = new DashboardChartComposite(container, composite, SWT.NONE, preferredSize);
chartComposite.setChart(histogramChart);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册