boolean dragThresholdReached = Math.abs(uiAction.getStartX() - x)
> dragThd;
if (dragThresholdReached) {
if (uiAction.getSource() instanceof Overlay) {
if (!uiAction.isDragStarted(plot)) {
plot.fireEvent(new ChartDragStartEvent(plot, x));
uiAction.setDragStarted(true);
uiAction.setDragStartX(uiAction.getStartX());
}
((Overlay) uiAction.getSource()).fire(new ChartDragEvent(plot, x));
chart.setHover(x,y);