TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent;  float span = painter.getSpan(this, el.getStartOffset(), el.getEndOffset(), tabEx, 0.F);
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);
  public float getPreferredSpan(int axis)  {    Element el = getElement();    checkPainter();    GlyphPainter painter = getGlyphPainter();    TabExpander tabEx = null;    View parent = getParent();    if (parent instanceof TabExpander)      tabEx = (TabExpander) parent;    // FIXME: Figure out how to determine the x parameter.    float span = painter.getSpan(this, el.getStartOffset(), el.getEndOffset(),                                 tabEx, 0.F);    return span;  }