Class DefaultFromToWeightModel

    • Constructor Detail

      • DefaultFromToWeightModel

        public DefaultFromToWeightModel()
    • Method Detail

      • setValue

        public void setValue​(Comparable<?> series,
                             String from,
                             String to,
                             int index)
        Description copied from interface: FromToModel
        Replace the value of the new (from, to) into a series at specified index.
        Specified by:
        setValue in interface FromToModel
        Overrides:
        setValue in class DefaultFromToModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        index - the data index.
      • addValue

        public void addValue​(Comparable<?> series,
                             String from,
                             String to,
                             int index)
        Description copied from interface: FromToModel
        Add a (from, to) into a series at specified index.
        Specified by:
        addValue in interface FromToModel
        Overrides:
        addValue in class DefaultFromToModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        index - the data index.
      • getWeight

        public Number getWeight​(Comparable<?> series,
                                int index)
        Description copied from interface: FromToWeightModel
        Get weight value of a specified series and data index.
        Specified by:
        getWeight in interface FromToWeightModel
        Parameters:
        series - the series.
        index - the data index.
      • addValue

        public void addValue​(Comparable<?> series,
                             String from,
                             String to,
                             Number weight)
        Description copied from interface: FromToWeightModel
        Append a (from, to, weight) into a series.
        Specified by:
        addValue in interface FromToWeightModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        weight - the weight value.
      • addValue

        public void addValue​(Comparable<?> series,
                             String from,
                             String to,
                             Number weight,
                             int index)
        Description copied from interface: FromToWeightModel
        Add a (from, to, weight) into a series at the specified index.
        Specified by:
        addValue in interface FromToWeightModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        weight - the weight value.
        index - the data index.
      • setValue

        public void setValue​(Comparable<?> series,
                             String from,
                             String to,
                             Number weight,
                             int index)
        Description copied from interface: FromToWeightModel
        Replace a (from, to, weight) into a series at the specified index.
        Specified by:
        setValue in interface FromToWeightModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        weight - the weight value.
        index - the data index.