JFreeChart: Dynamic point selection in ChartPanel using ChartMouseListener and mouse move
问题 I have a chart using JFreeChart where after click it put the markers on a related position (see figure below). What I need is to change the position not after click but on mouse move. I know that using a module ChartMouseListener I can extend its functionlity. ChartMouseListener l = new ChartMouseListener() { @Override public void chartMouseMoved(ChartMouseEvent e) { int newX = e.getTrigger().getX(); int newY = e.getTrigger().getY(); System.out.println("chartMouseMoved to " + newX + " " +