Class DefaultFromToModel

    • Constructor Detail

      • DefaultFromToModel

        public DefaultFromToModel()
    • Method Detail

      • getDataCount

        public int getDataCount​(Comparable<?> series)
        Description copied from interface: FromToModel
        Get data count of a specified series.
        Specified by:
        getDataCount in interface FromToModel
        Parameters:
        series - the specified series.
      • getFrom

        public String getFrom​(Comparable<?> series,
                              int index)
        Description copied from interface: FromToModel
        Get from value of a specified series and data index.
        Specified by:
        getFrom in interface FromToModel
        Parameters:
        series - the series.
        index - the data index.
      • getTo

        public String getTo​(Comparable<?> series,
                            int index)
        Description copied from interface: FromToModel
        Get to value of a specified series and data index.
        Specified by:
        getTo in interface FromToModel
        Parameters:
        series - the series.
        index - the data index.
      • 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
        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)
        Description copied from interface: FromToModel
        Append a (from, to) into a series.
        Specified by:
        addValue in interface FromToModel
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
      • 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
        Parameters:
        series - the series.
        from - the from value.
        to - the to value.
        index - the data index.
      • setAutoSort

        @Deprecated
        public void setAutoSort​(boolean auto)
        Deprecated.
        Description copied from interface: FromToModel
        Set model to autosort on x value for each series.
        Specified by:
        setAutoSort in interface FromToModel
      • isAutoSort

        @Deprecated
        public boolean isAutoSort()
        Deprecated.
        Description copied from interface: FromToModel
        check whether to autosort on x value for each series; default is true.
        Specified by:
        isAutoSort in interface FromToModel
      • removeSeries

        public void removeSeries​(Comparable<?> series)
        Description copied from interface: FromToModel
        /** Remove data of a specified series.
        Specified by:
        removeSeries in interface FromToModel
        Parameters:
        series - the series
      • removeValue

        public void removeValue​(Comparable<?> series,
                                int index)
        Description copied from interface: FromToModel
        Remove (from, to) value of a specified series and data index.
        Specified by:
        removeValue in interface FromToModel
        Parameters:
        series - the series.
        index - the data index.
      • clear

        public void clear()
        Description copied from interface: FromToModel
        clear this model.
        Specified by:
        clear in interface FromToModel