code: public float get(Layout.Axis axis) {
          switch (axis) {
              case X:
                  return x;
              case Y:
                  return y;
              case Z:
                  return z;
              default:
                  throw new RuntimeAssertion("Bad axis specified: %s", axis);
          }
      }
docs: Gets axis 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}
  @return axis dimension