if (axis == Y_AXIS) return this;  checkPainter();   Segment txt = new Segment(); try
View brokenView = this; if (axis == X_AXIS)
  public View breakView(int axis, int p0, float pos, float len)  {    if (axis == Y_AXIS)      return this;    checkPainter();    // Try to find a suitable line break.    Segment txt = new Segment();    try      {        int start = getStartOffset();        int length = getEndOffset() - start;        getDocument().getText(start, length, txt);      }    catch (BadLocationException ex)      {        AssertionError err = new AssertionError("BadLocationException must not "                                                + "be thrown here.");        err.initCause(ex);        throw err;      }    int breakLocation =      Utilities.getBreakLocation(txt, getContainer().getFontMetrics(getFont()),                                 (int) pos, (int) (pos + len),                                 getTabExpander(), p0);    View brokenView = createFragment(p0, breakLocation);    return brokenView;  }