Class AbstractJmadDataSet

  • All Implemented Interfaces:
    MarkerXProvider, cern.jdve.data.DataSet, java.lang.Cloneable
    Direct Known Subclasses:
    ListDataSet, ValidityMatrixDataSet

    public abstract class AbstractJmadDataSet
    extends cern.jdve.data.AbstractDataSet
    implements MarkerXProvider
    This class is the basic implementation of our DataSets
    • 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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractJmadDataSet​(java.lang.String name)
      the constructor, which needs the name of the dataset
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int arg0, double arg1, double arg2)  
      protected void fireFullChange()
      fires a full-change event to all listeners.
      java.lang.String getDataLabel​(int index)  
      java.util.List<java.lang.String> getLabels()  
      double getX​(int index)  
      java.util.List<java.lang.Double> getXPositions​(java.lang.String elementName)  
      java.util.List<java.lang.Double> getXValues()  
      void refresh()
      enforces a refresh.
      void remove​(int arg0, int arg1)  
      void setLabels​(java.util.List<java.lang.String> labels)  
      protected void setXValues​(java.util.List<java.lang.Double> xValues)  
      • Methods inherited from class cern.jdve.data.AbstractDataSet

        add, addDataSetListener, clear, clone, computeLimits, createRanges, ensureEditable, findMaxXIndex, findMaxYIndex, findMinXIndex, findMinYIndex, fireDataAdded, fireDataChanged, fireDataRemoved, fireDataSetChanged, getDataCnt, 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

        getDataCount, getY
    • Constructor Detail

      • AbstractJmadDataSet

        protected AbstractJmadDataSet​(java.lang.String name)
        the constructor, which needs the name of the dataset
        Parameters:
        name - the name of the dataset
    • Method Detail

      • add

        public void add​(int arg0,
                        double arg1,
                        double arg2)
        Specified by:
        add in interface cern.jdve.data.DataSet
      • remove

        public void remove​(int arg0,
                           int arg1)
        Specified by:
        remove in interface cern.jdve.data.DataSet
      • refresh

        public void refresh()
        enforces a refresh.
      • fireFullChange

        protected final void fireFullChange()
        fires a full-change event to all listeners.
      • getDataLabel

        public java.lang.String getDataLabel​(int index)
        Specified by:
        getDataLabel in interface cern.jdve.data.DataSet
        Overrides:
        getDataLabel in class cern.jdve.data.AbstractDataSet
      • setLabels

        public void setLabels​(java.util.List<java.lang.String> labels)
        Parameters:
        labels - the labels, which correspond to the indizes
      • getLabels

        public java.util.List<java.lang.String> getLabels()
        Returns:
        the actual data-labels
      • getX

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

        public java.util.List<java.lang.Double> getXPositions​(java.lang.String elementName)
        Specified by:
        getXPositions in interface MarkerXProvider
        Parameters:
        elementName - the element for which to calc for which to calc the x-position
        Returns:
        the x-positions for the element
      • setXValues

        protected void setXValues​(java.util.List<java.lang.Double> xValues)
      • getXValues

        public final java.util.List<java.lang.Double> getXValues()