protected void paintLinePart(Graphics g, int xMin, int xMax, int hGap, int y) {
    if (xMax > xMin) paintLine(g, xMin + hGap, y, xMax - xMin);
  }
protected void paintLinePart(Graphics g, int xMin, int xMax, int hGap, int y)