Class SwingPlot

    • Field Detail

      • plot

        protected final AbstractPlot plot
        The JFreeChart plot.
    • Constructor Detail

      • SwingPlot

        public SwingPlot​(AbstractPlot plot)
        Construct a new Swing container for an AbstractPlot.
        Parameters:
        plot - AbstractPlot; the plot to embed
    • Method Detail

      • setChart

        protected void setChart​(JFreeChart chart)
        Add the chart.
        Parameters:
        chart - JFreeChart; the chart
      • setStatusLabel

        protected final void setStatusLabel​(String label)
        Manually set status label from sub class. Will be overwritten by a moving mouse pointer over the axes.
        Parameters:
        label - String; label to set
      • addPopUpMenuItems

        protected void addPopUpMenuItems​(JPopupMenu popupMenu)
        Overridable method to add pop up items.
        Parameters:
        popupMenu - JPopupMenu; pop up menu
      • getChartMouseListener

        protected ChartMouseListener getChartMouseListener()
        Overridable; may return a chart listener for additional functions.
        Returns:
        ChartMouseListener, null by default
      • getPlot

        public AbstractPlot getPlot()
        Retrieve the plot.
        Returns:
        AbstractPlot; the plot