code: public void set(float val, Layout.Axis axis) {
          switch (axis) {
              case X:
                  x = val;
                  break;
              case Y:
                  y = val;
                  break;
              case Z:
                  z = val;
                  break;
              default:
                  throw new RuntimeAssertion("Bad axis specified: %s", axis);
          }
      }
docs: Sets axis dimension
  @param val dimension
  @param axis Axis. It might be either {@link Layout.Axis#X X} or
  {@link Layout.Axis#Y Y} or {@link Layout.Axis#Z Z}