Documentation of 'jas2.swingstudio.JAS2DRebinAdaptor' Java class
JAS2DRebinAdaptor
jas2.swingstudio

Class JAS2DRebinAdaptor

    • Method Detail

      • update

        public void update(java.util.Observable obs,
                           java.lang.Object arg)
        Specified by:
        update in interface java.util.Observer
      • rebin

        public double[][][] rebin(int xbins,
                                  double xmin,
                                  double xmax,
                                  int ybins,
                                  double ymin,
                                  double ymax,
                                  boolean wantErrors,
                                  boolean hurry,
                                  boolean overflow)
        Fetch binned data from remote data source. Also caches result to speed up subsequent requests for the same binned data.
        Specified by:
        rebin in interface Rebinnable2DHistogramData
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: DataSource
        Return the caption to be used in the legend for this data.
        Specified by:
        getTitle in interface DataSource
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getStatisticNames

        public java.lang.String[] getStatisticNames()
        Specified by:
        getStatisticNames in interface Statistics
        Returns:
        A list of statistic names
      • getStatistic

        public double getStatistic(java.lang.String name)
        Specified by:
        getStatistic in interface Statistics
        Returns:
        The value for the statistic
      • getExtendedStatistic

        public java.lang.Object getExtendedStatistic(java.lang.String name)
        Description copied from interface: ExtendedStatistics
        Returns an object corresponding to the named statistic. In general the statistic will be displayed by calling its toString method, however if a Format object has been defined for this class (how?) then it will be used instead. By default the following formatters are defined
        java.lang.Double
        jas2.util.ScientificFormat
        jas2.util.DoubleWithError
        jas2.util.ScientificFormat
        If the method returns null, then the getStatistic() method from the subclass will be called instead. This simplifies the use of simple floating point statistics (no need to create a Double object for each one).
        Specified by:
        getExtendedStatistic in interface ExtendedStatistics
        Parameters:
        name - The name of the statistic to return
        See Also:
        ScientificFormat, DoubleWithError
      • getNSlices

        public int getNSlices()
        Description copied from interface: HasSlices
        Number of slices currently attached to plot
        Specified by:
        getNSlices in interface HasSlices
      • getSliceParameters

        public SliceParameters getSliceParameters(int n)
        Description copied from interface: HasSlices
        Get the parameters of a slice. The SliceParameters can subsequently be changed to update the slice.
        Specified by:
        getSliceParameters in interface HasSlices
        Parameters:
        n - The index of the slice
        Returns:
        The Slice parameters of the slice with the specified index
      • getSlice

        public Rebinnable1DHistogramData getSlice(int n)
        Description copied from interface: HasSlices
        Get the data corresponding to the slice. The data will be observable and will notify its observers if the slice changes, or the data from which the slice is derived changes
        Specified by:
        getSlice in interface HasSlices
        Parameters:
        n - The index of the slice
        Returns:
        The data resulting from the slice
      • addSlice

        public int addSlice(double x,
                            double y,
                            double width,
                            double height,
                            double phi)
        Description copied from interface: HasSlices
        Create a new slice with the specified initial parameters
        Specified by:
        addSlice in interface HasSlices
        Returns:
        the index of the slice that was added
      • removeSlice

        public void removeSlice(int n)
        Description copied from interface: HasSlices
        Remove a slice from the source
        Specified by:
        removeSlice in interface HasSlices
        Parameters:
        n - The index of the slice

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.