public void install() { chartPanel.addMouseListener(this); chartPanel.addMouseMotionListener(this); chartPanel.setMouseZoomable(false); }
public void install() { chartPanel.addMouseListener(this); chartPanel.addMouseMotionListener(this); chartPanel.setMouseZoomable(false); }
/** * Constructor for the container. * * @param tooltab The tooltab. */ public ChartCanvas(ToolTab tool) { super(tool); this.showLabels = true; this.forceLabels = false; this.showLegend = true; this.chartType = CHARTTYPE_PIECHART; this.paintMode = PaintMaps.PAINTMODE_CONVERSATION; this.visible_messages = new ArrayList(); this.visible_components = new ArrayList(); this.dataset_sent = new CategoryPieDataset(); this.dataset_received = new CategoryPieDataset(); this.dataset_total = new CategoryPieDataset(); chart = chartType == CHARTTYPE_PIECHART ? createPieChart() : createBarChart(); chartPanel = new org.jfree.chart.ChartPanel(chart); chartPanel.setMouseZoomable(true, true); chartPanel.setPopupMenu(null); // deactivate standard popup this.setLayout(new BorderLayout()); this.add(BorderLayout.CENTER, chartPanel); chartPanel.addMouseListener(new ChartMouseListener()); }
chartPanel.addMouseListener(listener); chartPanel.addMouseMotionListener(listener);
enableEvents(AWTEvent.MOUSE_MOTION_EVENT_MASK); setDisplayToolTips(tooltips); addMouseListener(this); addMouseMotionListener(this);
enableEvents(AWTEvent.MOUSE_MOTION_EVENT_MASK); setDisplayToolTips(tooltips); addMouseListener(this); addMouseMotionListener(this);
chartPanel.removeMouseListener( ml ); chartPanel.addMouseListener( new MouseListener()
chartPanel.removeMouseListener( ml ); chartPanel.addMouseListener( new MouseListener()
jChartPanel.addMouseListener(listener); jChartPanel.setDomainZoomable(false); jChartPanel.setRangeZoomable(false);
chartPanel.addChartMouseListener(this); chartPanel.addMouseMotionListener(this); chartPanel.addMouseListener(this); chartPanel.setAutoscrolls(false); chartPanel.setMouseZoomable(false);