Class PlotComputation

  • Direct Known Subclasses:
    PlotWithAxes, PlotWithoutAxes

    public abstract class PlotComputation
    extends java.lang.Object
    Used as base class for Plot computation. Abstract useful methods from PlotWithAxes and PlotWithoutAxes.
    • Method Detail

      • compute

        public abstract void compute​(Bounds bo)
                              throws ChartException,
                                     java.lang.IllegalArgumentException
        This method computes the entire chart within the given bounds. If the dataset has changed but none of the axis attributes have changed, simply re-compute without 'rebuilding axes'.
        Parameters:
        bo -
        Throws:
        ChartException
        java.lang.IllegalArgumentException
      • getPlotBounds

        public final Bounds getPlotBounds()
        Returns:
        The plot bounds in pixels
      • getModel

        public Chart getModel()
      • getPlotInsets

        public final Insets getPlotInsets()
      • getPointToPixel

        public double getPointToPixel()
        Returns current rate for Point->Pixel.
        Returns:
        Since:
        2.5