Class TimeSeriesLineDataset

    • Constructor Detail

      • TimeSeriesLineDataset

        public TimeSeriesLineDataset()
        Creates a dataset.
        It uses the global options has default.
      • TimeSeriesLineDataset

        public TimeSeriesLineDataset​(boolean hidden)
        Creates a dataset.
        It uses the global options has default.
        Parameters:
        hidden - if true, it will be initially hidden.
      • TimeSeriesLineDataset

        public TimeSeriesLineDataset​(IsDefaultOptions defaultValues)
        Creates the dataset using a default.
        Parameters:
        defaultValues - default options
      • TimeSeriesLineDataset

        public TimeSeriesLineDataset​(IsDefaultOptions defaultValues,
                                     boolean hidden)
        Creates the dataset using a default.
        Parameters:
        defaultValues - default options
        hidden - if true, it will be initially hidden.
      • TimeSeriesLineDataset

        protected TimeSeriesLineDataset​(Type type,
                                        boolean hidden)
        Creates the dataset using a default and chart type related to the dataset.
        Parameters:
        type - chart type related to the dataset
        hidden - if true, it will be initially hidden.
      • TimeSeriesLineDataset

        protected TimeSeriesLineDataset​(Type type,
                                        IsDefaultOptions defaultValues,
                                        boolean hidden)
        Creates the dataset using a default and chart type related to the dataset.
        Parameters:
        type - chart type related to the dataset
        defaultValues - default options
        hidden - if true, it will be initially hidden.
    • Method Detail

      • setDataString

        public final void setDataString​(String... data)
        Description copied from class: LineDataset
        Sets the data property of a dataset for a chart is specified as an array of strings. Each point in the data array corresponds to the label at the same index on the x axis.
        Overrides:
        setDataString in class LineDataset
        Parameters:
        data - an array of strings
      • setDataString

        public final void setDataString​(List<String> data)
        Description copied from class: LineDataset
        Sets the data property of a dataset for a chart is specified as an array of strings. Each point in the data array corresponds to the label at the same index on the x axis.
        Overrides:
        setDataString in class LineDataset
        Parameters:
        data - a list of strings
      • getDataString

        public final List<String> getDataString()
        Description copied from class: LineDataset
        Returns the data property of a dataset for a chart is specified as an array of strings. Each point in the data array corresponds to the label at the same index on the x axis.
        Overrides:
        getDataString in class LineDataset
        Returns:
        a list of strings or an empty list of strings if the data type is not DataType.STRINGS.
      • getDataString

        public final List<String> getDataString​(boolean binding)
        Description copied from class: LineDataset
        Returns the data property of a dataset for a chart is specified as an array of strings. Each point in the data array corresponds to the label at the same index on the x axis.
        Overrides:
        getDataString in class LineDataset
        Parameters:
        binding - if true binds the new array list in the container
        Returns:
        a list of strings or an empty list of strings if the data type is not DataType.STRINGS.
      • setOrder

        public default void setOrder​(int order)
        Sets the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Parameters:
        order - the drawing order of dataset.
      • getOrder

        public default int getOrder()
        Returns the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Returns:
        the drawing order of dataset
      • setPointStyle

        public default void setPointStyle​(PointStyle... pointStyle)
        Sets the style of the point.
        Parameters:
        pointStyle - array of the style of the point.
      • getPointStyle

        public default List<PointStyle> getPointStyle()
        Returns the style of the point.
        Returns:
        the style of the point or null if point style is set as image
      • setPointStyle

        public default void setPointStyle​(Img... pointStyle)
        Sets the style of the point as image.
        Parameters:
        pointStyle - image element of the style of the point as image.
      • getPointStyleType

        public default PointStyleType getPointStyleType()
        Returns the type of point style.
        Returns:
        the type of point style
      • getPointStyleAsImages

        public default List<Img> getPointStyleAsImages()
        Returns the style of the point as image.
        If property is missing or not an image, returns null.
        Returns:
        image of the style of the point as image.
        If property is missing or not a image, returns null.
      • setPointStyle

        public default void setPointStyle​(Canvas... pointStyle)
        Sets the style of the point as canvas.
        Parameters:
        pointStyle - canvas element of the style of the point as canvas.
      • getPointStyleAsCanvas

        public default List<Canvas> getPointStyleAsCanvas()
        Returns the style of the point as canvas.
        If property is missing or not an canvas, returns null.
        Returns:
        image of the style of the point as canvas.
        If property is missing or not a canvas, returns null.
      • getPointStyleCallback

        public default PointStyleCallback<DatasetContext> getPointStyleCallback()
        Returns the point style callback, if set, otherwise null.
        Returns:
        the point style callback, if set, otherwise null.
      • setPointStyle

        public default void setPointStyle​(PointStyleCallback<DatasetContext> pointStyleCallback)
        Sets the point style callback.
        Parameters:
        pointStyleCallback - the point style callback.