code: public void setJustification(justifyTypes justify) {
          if (justify == justifyTypes.BEGIN) mTextView.setGravity(Gravity.LEFT);
          else if (justify == justifyTypes.MIDDLE) mTextView.setGravity(Gravity.CENTER);
          else if (justify == justifyTypes.END) mTextView.setGravity(Gravity.RIGHT);
              else if (justify == justifyTypes.FIRST) mTextView.setGravity(Gravity.START);
                  else mTextView.setGravity(Gravity.NO_GRAVITY);
      }
docs: set the justification to left, center/middle or right.  The values from
  the enumerated type are from X3D's <FontStyle> justify setting.
  @param justify