private void renderDotAndLabel( Canvas canvas, RadarData lineData, // float previousX,float previousY, float currentX, float currentY, int listID) { PlotLine plotLine = lineData.getPlotLine(); if (!plotLine.getDotStyle().equals(XEnum.DotStyle.HIDE)) { PlotDot pDot = plotLine.getPlotDot(); PlotDotRender.getInstance() .renderDot( canvas, pDot, currentX - pDot.getDotRadius(), currentY - pDot.getDotRadius(), currentX, currentY, lineData.getPlotLine().getDotPaint()); // 标识图形 } // 是否显示标签 if (lineData.getLabelVisible()) { canvas.drawText( getFormatterDotLabel(lineData.getLinePoint().get(listID)), currentX, currentY, lineData.getPlotLine().getDotLabelPaint()); } }