Interface ClosestDataPointFunction<X,​Y>

  • Type Parameters:
    X - Type of horizontal (X) axis.
    Y - Type of vertical (Y) axis.

    public interface ClosestDataPointFunction<X,​Y>
    Represents a function which calculates the closest data point between two data points, compared to a given display position.
    • Method Detail

      • apply

        javafx.scene.chart.XYChart.Data<X,​Y> apply​(javafx.geometry.Point2D pDisplayPosition,
                                                         javafx.scene.chart.XYChart<X,​Y> pChart1,
                                                         javafx.scene.chart.XYChart.Data<X,​Y> pDataPoint1,
                                                         javafx.scene.chart.XYChart<X,​Y> pChart2,
                                                         javafx.scene.chart.XYChart.Data<X,​Y> pDataPoint2)
        Applies this function to the given arguments. To provide an option to calculate closest point between multiple charts, a chart is specified for every point. For single charts, provide same chart for both data points.