if (axis == X_AXIS)
switch (axis)
  public float getPreferredSpan(int axis)  {    float span = 0;    checkPainter();    GlyphPainter painter = getGlyphPainter();    if (axis == X_AXIS)      {        Element el = getElement();        TabExpander tabEx = null;        View parent = getParent();        if (parent instanceof TabExpander)          tabEx = (TabExpander) parent;        span = painter.getSpan(this, getStartOffset(), getEndOffset(),                               tabEx, 0.F);      }    else      span = painter.getHeight(this);     return span;  }