OHOS::UIChartDataSerial

    Graphic

    Description:

    Defines a data set and provides functions such as adding and deleting data points.

    Since:

    1.0

    Version:

    1.0

    Public Member Function Name

    Description

    ()

     

    A constructor used to create a UIChartDataSerial instance.

    ()

    virtual 

    A destructor used to delete the UIChartDataSerial instance.

    (uint16_t maxCount)

    bool 

    Sets the maximum number of data points that can be stored in a data set.

    ModifyPoint (uint16_t , const Point &point)

    bool 

    Modifies the value of a data point in the data set.

    (uint16_t index, &point)

    bool 

    Obtains the coordinates in the chart for a data point in the data set.

    AddPoints (const data, uint16_t count)

    bool 

    Adds data points.

    ClearData ()

    void 

    Clears all data points.

    () const

    uint16_t 

    Obtains the number of data points available in the data set.

    void 

    Sets whether to smooth a polyline.

    IsSmooth () const

    bool 

    Checks whether smoothing is performed on a polyline.

    (bool enable)

    void 

    Enables the fill color of a line chart.

    IsGradient () const

    bool 

    Checks whether a polyline has a fill color.

    () const

    uint16_t 

    Obtains the index of the top point in the data set.

    GetLatestIndex () const

    uint16_t 

    Obtains the index of the frontmost point (the latest added or modified data point in a data set).

    () const

    uint16_t 

    Obtains the index of the bottom point in a data set.

    GetPeakData () const

    int16_t 

    Obtains the Y value of the top point in a data set.

    () const

    int16_t 

    Obtains the Y value of the bottom point in a data set.

    GetLineColor () const

     

    Obtains the polyline color of the data set in a line chart.

    GetFillColor () const

     

    Obtains the fill color of the data set.

    SetFillColor (const &color)

    void 

    Sets the fill color of the data set.

    SetLineColor (const &color)

    void 

    Sets the polyline color of the data set in the line chart.

    HidePoint (uint16_t , uint16_t count)

    Hides some points in the data set.

    GetHideIndex () const

    uint16_t 

    Obtains the index from which the data set starts to hide.

    () const

    uint16_t 

    Obtains the number of hidden points in the data set.

    SetHeadPointStyle (const &style)

    void 

    Sets the style of the frontmost point on a polyline.

    SetTopPointStyle (const &style)

    void 

    Sets the style of the top point of a polyline.

    SetBottomPointStyle (const &style)

    void 

    Sets the style of the bottom point of a polyline.

    GetHeadPointStyle () const

    const & 

    Obtains the style of the frontmost point on a polyline.

    GetTopPointStyle () const

    const & 

    Obtains the style of the top point of a polyline.

    GetBottomPointStyle () const

    const & 

    Obtains the style of the bottom point of a polyline.

    EnableHeadPoint (bool enable)

    void 

    Enables the feature of drawing the frontmost point on a polyline.

    (bool enable)

    void 

    Enables the feature of drawing the top point of a polyline. If there are multiple top points, only the first one is drawn.

    EnableBottomPoint (bool enable)

    void 

    Enables the feature of drawing the bottom point of a polyline. If there are multiple bottom points, only the first one is drawn.

    (size_t size)

    void  

    Overrides the new function.

    operator delete (void *p)

    void