Class LabelledMarkerDataSet

    • Field Detail

      • dataLabels

        protected java.util.ArrayList<java.lang.String> dataLabels
      • dataStyles

        protected java.util.ArrayList<java.lang.String> dataStyles
      • data

        protected java.util.ArrayList<DoublePoint> data
    • Constructor Detail

      • LabelledMarkerDataSet

        public LabelledMarkerDataSet​(java.lang.String name)
        Parameters:
        name - data set name
    • Method Detail

      • get

        public double get​(int dimIndex,
                          int index)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Specified by:
        get in interface DataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        index - data point index
        Returns:
        the x value
      • getData

        public java.util.List<DoublePoint> getData()
        Returns:
        list containing data point values
      • getDataCount

        public int getDataCount()
        Description copied from interface: DataSet
        Get the number of data points in the data set. The default implementation is the number of points in the highest dimension.
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getDataCount

        public int getDataCount​(int dimIndex)
        Description copied from interface: DataSet
        Get the number of data points in the data set for a specific dimension.
        Specified by:
        getDataCount in interface DataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        Returns:
        the number of data points
      • getDataLabel

        public java.lang.String getDataLabel​(int index)
        Returns label of a data point specified by the index. The label can be used as a category name if CategoryStepsDefinition is used or for annotations displayed for data points.
        Specified by:
        getDataLabel in interface DataSet
        Overrides:
        getDataLabel in class AbstractDataSet<LabelledMarkerDataSet>
        Parameters:
        index - of the data label
        Returns:
        data point label specified by the index or null if no label has been specified
      • getDataLabels

        public java.util.List<java.lang.String> getDataLabels()
        Returns:
        data point labels
      • getDataStyles

        public java.util.List<java.lang.String> getDataStyles()
        Returns:
        data point styles
      • getStyle

        public java.lang.String getStyle​(int index)
        A string representation of the CSS style associated with this specific DataSet data point. @see #getStyle()
        Specified by:
        getStyle in interface DataSet
        Overrides:
        getStyle in class AbstractDataSet<LabelledMarkerDataSet>
        Parameters:
        index - the index of the specific data point
        Returns:
        user-specific data set style description (ie. may be set by user)
      • remove

        public LabelledMarkerDataSet remove​(int fromIndex,
                                            int toIndex)
        remove sub-range of data (marker) points
        Parameters:
        fromIndex - start index
        toIndex - stop index
        Returns:
        itself (fluent design)
      • set

        public LabelledMarkerDataSet set​(int index,
                                         LabelledMarker marker)
        replaces existing data marker with new marker value
        Parameters:
        index - index of existing point
        marker - new marker value
        Returns:
        itself (fluent design)
      • set

        public LabelledMarkerDataSet set​(LabelledMarker[] markers)
        replaces existing with new marker values
        Parameters:
        markers - new marker values
        Returns:
        itself (fluent design)
      • set

        public LabelledMarkerDataSet set​(java.util.List<LabelledMarker> markers)
        replaces existing with new marker values
        Parameters:
        markers - new marker values
        Returns:
        itself (fluent design)