code: public void setCenterX(float centerX) {
          if ((points == null) || (center == null)) {
          	checkPoints();
          }
          
          float xDiff = centerX - getCenterX();
          setX(x + xDiff);
      }
docs: Set the x center of this shape.
  
  @param centerX The center point to set.