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

Class JASRebinAdaptor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String[] getAxisLabels()
      Returns the axis labels.
      int getAxisType()
      Returns one of DOUBLE,INTEGER,STRING,DATE or DELTATIME
      int getBins()
      Returns the (suggested) number of bins to use
      java.lang.Object getExtendedStatistic(java.lang.String name)
      Returns an object corresponding to the named statistic.
      double getMax()
      Returns the (suggested) maximum value for the X axis
      double getMin()
      Returns the (suggested) minimum value for the X axis
      double getStatistic(java.lang.String name) 
      java.lang.String[] getStatisticNames() 
      Statistics getStatistics() 
      JASHistStyle getStyle()
      This method is called by the plot to determine what style to be used for a plot.
      java.lang.String getTitle()
      Return the caption to be used in the legend for this data.
      boolean isRebinnable()
      Returns true if the data source is capable of recalculating the bin contents, or false of the interface is not-capable of recalculating the bin contents.
      double[][] rebin(int bins, double min, double max, boolean wantErrors, boolean hurry)
      Fetch binned data from remote data source.
      java.lang.String toString() 
      void update(java.util.Observable obs, java.lang.Object arg) 
      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 bins,
                                double min,
                                double max,
                                boolean wantErrors,
                                boolean hurry)
        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 Rebinnable1DHistogramData
        min - The min of the range over which to bin
        max - The max of the range over which to bin
        wantErrors - If false indicates that the errors are not required and need not be calculated (most implementations will ignore this parameter)
        hurry - If true indicates the results should be provided as fast as possible, even if some approximation is needed (most implementations will ignore this parameter)
        Returns:
        An array representing the binned data and errors (see description above)
      • isRebinnable

        public boolean isRebinnable()
        Description copied from interface: Rebinnable1DHistogramData
        Returns true if the data source is capable of recalculating the bin contents, or false of the interface is not-capable of recalculating the bin contents. In the former case the values returned by getMin, getMax and getBins are just taken to be suggestions, in the latter case they are taken to be fixed in stone.
        Specified by:
        isRebinnable in interface Rebinnable1DHistogramData
        Returns:
        True if the datasource is rebinnable
      • 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
      • getAxisLabels

        public java.lang.String[] getAxisLabels()
        Description copied from interface: Rebinnable1DHistogramData
        Returns the axis labels. Only relevant if the axisType is STRING, otherwise can return null
        Specified by:
        getAxisLabels in interface Rebinnable1DHistogramData
        Returns:
        An array of bin labels to use on the X axis
      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.