Class ErrorDataSetAdapter

  • All Implemented Interfaces:
    ValidityDataSet, cern.jdve.data.DataSet, java.lang.Cloneable

    public class ErrorDataSetAdapter
    extends cern.jdve.data.AbstractDataSet
    implements ValidityDataSet, cern.jdve.data.DataSet
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ErrorDataSetAdapter.ErrorAddMode
      this enum determines, if the errors should be added (PLUS) or subtracted (MINUS) from the y-values.
    • Field Summary

      • Fields inherited from class cern.jdve.data.AbstractDataSet

        PROPERTY_EDITABLE, PROPERTY_EDITION_HINT, PROPERTY_MARKER, PROPERTY_NAME, PROPERTY_STYLE, PROPERTY_UNDEF_VALUE, PROPERTY_VISIBLE, PROPERTY_VISIBLE_IN_LEGEND, xRange, yRange
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, double x, double y)  
      static cern.jdve.data.DataSource createDefaultErrorDataSource​(ErrorDataSet dataSet)
      creates a DefaultDataSource with one dataset containing the dataset with plus errors and one with minus errors
      int getDataCount()  
      boolean getValidity​(int index)
      return the style for a given Datapoint
      double getX​(int index)  
      double getY​(int index)  
      boolean hasValidityInformation()
      should return, if validity-information is available, false otherwise.
      void remove​(int fromIndex, int toIndex)  
      • Methods inherited from class cern.jdve.data.AbstractDataSet

        add, addDataSetListener, clear, clone, computeLimits, createRanges, ensureEditable, findMaxXIndex, findMaxYIndex, findMinXIndex, findMinYIndex, fireDataAdded, fireDataChanged, fireDataRemoved, fireDataSetChanged, getDataCnt, getDataLabel, getDataPointIndex, getEditionHint, getIndexWindow, getName, getProperty, getUndefValue, getXRange, getYRange, indexOf, initRanges, interpolate, isAdjusting, isEditable, isLimitsValid, isVisible, isVisible, isVisibleLegend, removeDataSetListener, set, setAdjusting, setEditable, setEditionHint, setLimitsValid, setName, setProperty, setUndefValue, setVisible, setVisibleLegend, toString, updateRange, updateRange
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface cern.jdve.data.DataSet

        add, addDataSetListener, getDataLabel, getEditionHint, getIndexWindow, getName, getProperty, getUndefValue, getXRange, getYRange, indexOf, interpolate, isEditable, isVisible, isVisibleLegend, removeDataSetListener, set, setProperty
    • Method Detail

      • getY

        public double getY​(int index)
        Specified by:
        getY in interface cern.jdve.data.DataSet
      • getValidity

        public boolean getValidity​(int index)
        Description copied from interface: ValidityDataSet
        return the style for a given Datapoint
        Specified by:
        getValidity in interface ValidityDataSet
        Parameters:
        index - the index for which to retrieve the style
        Returns:
        the Style
      • hasValidityInformation

        public boolean hasValidityInformation()
        Description copied from interface: ValidityDataSet
        should return, if validity-information is available, false otherwise.
        Specified by:
        hasValidityInformation in interface ValidityDataSet
        Returns:
        true, if validity information is available, false otherwise
      • add

        public void add​(int index,
                        double x,
                        double y)
        Specified by:
        add in interface cern.jdve.data.DataSet
      • getDataCount

        public int getDataCount()
        Specified by:
        getDataCount in interface cern.jdve.data.DataSet
      • getX

        public double getX​(int index)
        Specified by:
        getX in interface cern.jdve.data.DataSet
      • remove

        public void remove​(int fromIndex,
                           int toIndex)
        Specified by:
        remove in interface cern.jdve.data.DataSet
      • createDefaultErrorDataSource

        public static final cern.jdve.data.DataSource createDefaultErrorDataSource​(ErrorDataSet dataSet)
        creates a DefaultDataSource with one dataset containing the dataset with plus errors and one with minus errors
        Parameters:
        dataSet -
        Returns: