renderLimitLines method
Draws the LimitLines associated with this axis to the screen.
@param c
Implementation
@override
void renderLimitLines(Canvas c) {
List<LimitLine>? limitLines = _xAxis!.getLimitLines();
if (limitLines == null || limitLines.isEmpty) return;
List<double?> position = mRenderLimitLinesBuffer;
position[0] = 0;
position[1] = 0;
for (int i = 0; i < limitLines.length; i++) {
LimitLine l = limitLines[i];
if (!l.enabled) continue;
c.save();
mLimitLineClippingRect = Rect.fromLTRB(
viewPortHandler!.getContentRect().left - l.lineWidth!,
viewPortHandler!.getContentRect().top - l.lineWidth!,
viewPortHandler!.getContentRect().right,
viewPortHandler!.getContentRect().bottom);
c.clipRect(mLimitLineClippingRect);
position[0] = l.limit;
position[1] = 0;
trans!.pointValuesToPixel(position);
renderLimitLineLine(c, l, position);
renderLimitLineLabel(c, l, position, 2.0 + l.yOffset);
c.restore();
}
}