Вопрос

I am trying to implement Androidplot and I am getting the following error:

The constructor LineAndPointFormatter(Integer, Integer, Integer) is deprecated

Can any one tell me what LineAndPointFormatter has been replaced with and how to implement it.

Many thanks.

Это было полезно?

Решение

Based on the new documentation, this class hasn't been replaced with anything. A deprecated constructor merely indicates you're supposed to use a different constructor.

The javadoc for the the deprecated constructor says this:

Deprecated. As of 0.5.1: Use LineAndPointFormatter(Integer, Integer, Integer, PointLabelFormatter) instead. Set corresponding parameter to null to disable the drawing of lines, vertexes or fill. Uses a default of FillDirection.BOTTOM.

As for implementation, I can't say, as I haven't worked with this API, however the extra parameter (PointLabelFormatter) seems like a simple class, so if you can work with the previous constructor, this should be largely the same.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top