return numLines;
    int determineNumLines()    {            numLines = 0;      int end = getEndOffset();      if (end == 0)        return 0;            int breakPoint;      for (int i = getStartOffset(); i < end;)        {          numLines ++;          // careful: check that there's no off-by-one problem here          // depending on which position calculateBreakPosition returns          breakPoint = calculateBreakPosition(i, end);          if (breakPoint == i)            i ++;          else            i = breakPoint;        }      return numLines;    }