public void calculateLineHeight(int lines) {
    if (lines == 0 || myMiddleLineHeight == 0) {
      myMiddleLineHeight = 10;
    }
    else {
      myMiddleLineHeight /= lines;
    }
  }
public void calculateLineHeight(int lines)