int index;  View v = null;  switch (direction) { case EAST: index = getViewIndex(pos + 1, b);   if (index == -1) return pos;  v  = getView(index); break; case WEST: index = getViewIndex(pos - 1, b);   if (index == -1)
  protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b,                                                  Shape a, int direction,                                                  Position.Bias[] biasRet)    throws BadLocationException  {    // FIXME: Implement this correctly.    return pos;  }