mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #6308 from gdicristofaro/6876-suppressPopup
6876 suppress popup
This commit is contained in:
commit
964b9b411c
@ -148,17 +148,12 @@ public class PieChartPanel extends AbstractLoadableComponent<List<PieChartPanel.
|
||||
this.chart = ChartFactory.createPieChart(
|
||||
title,
|
||||
dataset,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
false);
|
||||
|
||||
chart.setBackgroundPaint(null);
|
||||
chart.getLegend().setItemFont(DEFAULT_FONT);
|
||||
chart.getTitle().setFont(DEFAULT_HEADER_FONT);
|
||||
|
||||
// don't show a legend by default
|
||||
chart.removeLegend();
|
||||
|
||||
PiePlot plot = ((PiePlot) chart.getPlot());
|
||||
|
||||
plot.setLabelGenerator(DEFAULT_LABEL_GENERATOR);
|
||||
@ -169,6 +164,8 @@ public class PieChartPanel extends AbstractLoadableComponent<List<PieChartPanel.
|
||||
// Create Panel
|
||||
ChartPanel panel = new ChartPanel(chart);
|
||||
panel.addOverlay(overlay);
|
||||
panel.setPopupMenu(null);
|
||||
|
||||
this.setLayout(new BorderLayout());
|
||||
this.add(panel, BorderLayout.CENTER);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user