/** * Draw the circle background of index if pass true. * * @param drawCircle true, draw circle, else not. */ public void setDrawCircle(boolean drawCircle) { this.drawCircle = drawCircle; postInvalidate(); }
/** * Draw label if pass true. * * @param drawLabel true, draw label, else not. */ public void setDrawLabel(boolean drawLabel) { this.drawLabel = drawLabel; postInvalidate(); }
/** * Set line width of the vertical line. * * @param lineWidth the width of vertical line */ public void setLineWidth(int lineWidth) { this.lineWidth = lineWidth; postInvalidate(); }
/** * Draw index if pass true. * * @param drawIndex true, draw index, else not */ public void setDrawIndex(boolean drawIndex) { this.drawIndex = drawIndex; postInvalidate(); }
/** * Draw cursor if pass true. * * @param drawCursor true, draw cursor, else not. */ public void setDrawCursor(boolean drawCursor) { this.drawCursor = drawCursor; postInvalidate(); }
/** * Set line color of the vertical line. * * @param lineColor the color of vertical line */ public void setLineColor(@ColorInt int lineColor) { this.lineColor = lineColor; postInvalidate(); }
/** * Set all points. * * @param points route points */ public void setPoints(List<RouteViewPoint> points) { this.points.clear(); if (points != null) this.points.addAll(points); requestLayout(); postInvalidate(); }
/** * Draw transit if pass true. * * @param drawTransit true, draw transit, else not. */ public void setDrawTransit(boolean drawTransit) { this.drawTransit = drawTransit; requestLayout(); postInvalidate(); }