code: function(feature, initialParams) {
          initialParams = OpenLayers.Util.applyDefaults(initialParams, {
              rotation: 0,
              scale: 1,
              ratio: 1
          });
  
          var oldRotation = this.rotation;
          var oldCenter = this.center;
          OpenLayers.Util.extend(this, initialParams);
  
          var cont = this.events.triggerEvent("beforesetfeature",
              {feature: feature}
          );
          if (cont === false) {
              return;
          }
  
          this.feature = feature;
          this.activate();
  
          this._setfeature = true;
  
          var featureBounds = this.feature.geometry.getBounds();
          this.box.move(featureBounds.getCenterLonLat());
          this.box.geometry.rotate(-oldRotation, oldCenter);
          this._angle = 0;
  
          var ll;
          if(this.rotation) {
              var geom = feature.geometry.clone();
              geom.rotate(-this.rotation, this.center);
              var box = new OpenLayers.Feature.Vector(
                  geom.getBounds().toGeometry());
              box.geometry.rotate(this.rotation, this.center);
              this.box.geometry.rotate(this.rotation, this.center);
              this.box.move(box.geometry.getBounds().getCenterLonLat());
              var llGeom = box.geometry.components[0].components[0];
              ll = llGeom.getBounds().getCenterLonLat();
          } else {
              ll = new OpenLayers.LonLat(featureBounds.left, featureBounds.bottom);
          }
          this.handles[0].move(ll);
          
          delete this._setfeature;
  
          this.events.triggerEvent("setfeature", {feature: feature});
      }
docs: APIMethod: setFeature
  Place the transformation box on a feature and start transforming it.
  If the control is not active, it will be activated.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>}
  initialParams - {Object} Initial values for rotation, scale or ratio.
  Setting a rotation value here will cause the transformation box to
  start rotated. Setting a scale or ratio will not affect the
  transormation box, but applications may use this to keep track of
  scale and ratio of a feature across multiple transforms.