diff options
author | Alexander Kurtakov | 2020-02-18 21:29:32 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-02-18 22:11:53 +0000 |
commit | 69fb2f5af262d4e2abe0f833d791fc63cd6798c0 (patch) | |
tree | b603698727d5b2cfd271e3c13a9b1bb0d11b8621 /profiling | |
parent | 68d82c7bd6c4373dd73997fbde41d4e18374f046 (diff) | |
download | org.eclipse.linuxtools-69fb2f5af262d4e2abe0f833d791fc63cd6798c0.tar.gz org.eclipse.linuxtools-69fb2f5af262d4e2abe0f833d791fc63cd6798c0.tar.xz org.eclipse.linuxtools-69fb2f5af262d4e2abe0f833d791fc63cd6798c0.zip |
Move away of deprecated setBackgroundInPlotArea.
Chart.getPlotArea().setBackground is the correct call.
Change-Id: Icc6b750074eadb6c882bc2f4d7f500fb05ad326a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/157939
Tested-by: Linux Tools Bot <linuxtools-bot@eclipse.org>
Diffstat (limited to 'profiling')
-rwxr-xr-x | profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java b/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java index 8c2470a37a..4680a9f2b7 100755 --- a/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java +++ b/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java @@ -65,7 +65,7 @@ public final class ChartFactory { PieChart chart = new PieChart(view.getParent(), SWT.NONE); chart.setBackground(WHITE); - chart.setBackgroundInPlotArea(GRAD); + chart.getPlotArea().setBackground(GRAD); chart.getTitle().setText(title); chart.getTitle().setForeground(BLACK); @@ -129,7 +129,7 @@ public final class ChartFactory { InteractiveChart chart = new InteractiveChart(view.getParent(), SWT.NONE); chart.setBackground(WHITE); - chart.setBackgroundInPlotArea(GRAD); + chart.getPlotArea().setBackground(GRAD); chart.getTitle().setText(title); chart.getTitle().setForeground(BLACK); |