2013-02-11 4 views

답변

4

new documentation에 따르면이 클래스는 아무 것도 대체되지 않았습니다. 사용되지 않는 생성자는 단순히 다른 생성자를 사용해야 함을 나타냅니다.

가 가

하여 사용되지 않는 생성자를위한 JavaDoc이 말한다 :이 API와 함께 일하지 않은로 구현으로

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.

, 나는, 말할 수 없다, 그러나 추가 매개 변수 (PointLabelFormatter)이 보인다 간단한 클래스이므로 이전 생성자로 작업 할 수 있다면 거의 동일해야합니다.

+1

예 LineAndPointFormatter는 현재 사용 중이거나 이전 버전에서 사용되지 않은 것으로 보입니다. BarFormatter (int, int)를 사용하여 문제를 해결했습니다. – Herb

+2

LineAndPointFormatter를 사용하지 않는 것에 대해서는 사실이 아닙니다. LineAndPointFormatter는 LineAndPointRenderer가 필요로하는 대응 렌더러로서 가장 널리 사용되는 Formatter 였고 여전히 사용되고 있습니다. 새로운 네 번째 매개 변수는 실제로 PointLabelFormatter 인스턴스이며, null이 아니면 개발자가 각 지점 위에 텍스트를 렌더링 할 수 있습니다. – Nick

+0

@Nick, LineAndPointFormatter (Context ctx, int xmlCfgId)는 어떻습니까? 이 방법은 작동하지 않는 것 같습니다 ... 0.5.2를 사용하고 있으며 리소스 ID를 찾을 수 없다는 오류가 계속 발생합니다. 여기에 질문을 만들었습니다 : http://stackoverflow.com/ 질문/16551799/androidplot-lineandpointformatter-causes-crash-when-passing-in-context-and-col – whyoz

관련 문제