Java 类org.jfree.chart.fx.interaction.ChartMouseEventFX 实例源码

项目:jfree-fxdemos    文件:CrosshairOverlayFXDemo1.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    Rectangle2D dataArea = this.chartViewer.getCanvas().getRenderingInfo().getPlotInfo().getDataArea();
    JFreeChart chart = event.getChart();
    XYPlot plot = (XYPlot) chart.getPlot();
    ValueAxis xAxis = plot.getDomainAxis();
    double x = xAxis.java2DToValue(event.getTrigger().getX(), dataArea, 
            RectangleEdge.BOTTOM);
    // make the crosshairs disappear if the mouse is out of range
    if (!xAxis.getRange().contains(x)) { 
        x = Double.NaN;                  
    }
    double y = DatasetUtils.findYValue(plot.getDataset(), 0, x);
    this.xCrosshair.setValue(x);
    this.yCrosshair.setValue(y);
}
项目:ccu-historian    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:ccu-historian    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:ccu-historian    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:ccu-historian    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:aya-lang    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:aya-lang    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:aya-lang    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:aya-lang    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:populus    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:populus    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:populus    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:populus    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:ECG-Viewer    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:ECG-Viewer    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:ECG-Viewer    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:ECG-Viewer    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:group-five    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:group-five    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:group-five    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:group-five    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:buffer_bci    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:buffer_bci    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:buffer_bci    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:buffer_bci    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:buffer_bci    文件:ChartCanvas.java   
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:buffer_bci    文件:ChartCanvas.java   
public void dispatchMouseClickedEvent(Point2D point, MouseEvent e) {
    double x = point.getX();
    double y = point.getY();
    ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
    ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
    for (ChartMouseListenerFX listener : this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:buffer_bci    文件:ChartViewer.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseClicked(event);
    }
}
项目:buffer_bci    文件:ChartViewer.java   
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    // relay the event from the canvas to our registered listeners
    for (ChartMouseListenerFX listener: this.chartMouseListeners) {
        listener.chartMouseMoved(event);
    }
}
项目:jfree-fxdemos    文件:CrosshairOverlayFXDemo1.java   
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    // ignore
}
项目:jfree-fxdemos    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:jfree-fxdemos    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:ccu-historian    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:ccu-historian    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:aya-lang    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:aya-lang    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:populus    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:populus    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:ECG-Viewer    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseClicked(ChartMouseEventFX event) {
    System.out.println(event);
}
项目:ECG-Viewer    文件:BarChartFXDemo1.java   
/**
 * Write the event to the console, just to illustrate.
 * 
 * @param event  event info. 
 */
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
    System.out.println(event);
}