float tabSizePixels = getTabSize() * metrics.charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels;
float next = x; if (tabSize != 0) { int numTabs = (((int) x) - tabBase) / tabSize; next = tabBase + (numTabs + 1) * tabSize; } return next;
  public float nextTabStop(float x, int tabStop)  {    float tabSizePixels = getTabSize() * metrics.charWidth('m');    return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels;  }