code: function(geometry, eventType) {
          var stat, order;
          if(geometry.CLASS_NAME.indexOf('LineString') > -1) {
              stat = this.getBestLength(geometry);
              order = 1;
          } else {
              stat = this.getBestArea(geometry);
              order = 2;
          }
          this.events.triggerEvent(eventType, {
              measure: stat[0],
              units: stat[1],
              order: order,
              geometry: geometry
          });
      }
docs: Method: measure
  
  Parameters:
  geometry - {<OpenLayers.Geometry>}
  eventType - {String}