Class ViewDataClickAction

    • Constructor Detail

      • ViewDataClickAction

        public ViewDataClickAction()
    • Method Detail

      • setHitDetector

        public void setHitDetector​(AbstractScatterPlotHitDetector value)
        Sets the hit detector to use.
        Parameters:
        value - the hit detector
      • hitDetectorTipText

        public String hitDetectorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • showData

        protected void showData​(ScatterPlot panel,
                                SpreadSheet sheet)
        Displays the data.
        Parameters:
        panel - the associated panel
        sheet - the data to display
      • showPolygonPoints

        protected void showPolygonPoints​(ScatterPlot panel)
        Displays the points that were surrounded by the polygon.
        Parameters:
        panel - the associated panel
      • showHits

        protected void showHits​(ScatterPlot panel,
                                int[] hits)
        Displays the points that were determined by the hit detector.
        Parameters:
        panel - the associated panel
        hits - the hits
      • mouseClickOccurred

        public void mouseClickOccurred​(ScatterPlot panel,
                                       MouseEvent e)
        Gets triggered if the user clicks on the canvas.
        Parameters:
        panel - the associated panel
        e - the mouse event