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

      • 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
      • 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
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getX

        public double getX​(int index)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Specified by:
        getX in interface DataSet
        Parameters:
        index - the index of the data point
        Returns:
        the x value
      • getY

        public double getY​(int index)
        Description copied from interface: DataSet
        Gets the y value of the data point with the index i
        Specified by:
        getY in interface DataSet
        Parameters:
        index - the index of the data point
        Returns:
        the y value
      • set

        public LabelledMarkerDataSet set​(java.util.List<LabelledMarker> markers)
        replaces existing with new marker values
        Parameters:
        markers - new marker values
        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​(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)
      • 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)
      • 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
      • 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)