示例#1
0
 /// <summary>
 /// Since rasters are numeric and not relying on an SQL expression, this allows
 /// this only sets the legend text using the method and digits to help with
 /// formatting.
 /// </summary>
 /// <param name="settings">An EditorSettings from either a feature scheme or color scheme.</param>
 public virtual void ApplyMinMax(EditorSettings settings)
 {
     LegendText = Range.ToString(settings.IntervalSnapMethod, settings.IntervalRoundingDigits);
 }
 /// <summary>
 /// Applies the minimum and maximum in order to create the filter expression.  This will also
 /// count the members that match the specified criteria.
 /// </summary>
 /// <returns>The integer count of the members selected by this expression</returns>
 public override void ApplyMinMax(EditorSettings settings)
 {
     
     base.ApplyMinMax(settings);
     FeatureEditorSettings fs = settings as FeatureEditorSettings;
     if (fs == null) return;
     string field = "[" + fs.FieldName.ToUpper() + "]";
     if (!string.IsNullOrEmpty(fs.NormField)) field += "/[" + fs.NormField.ToUpper() + "]";
     IntervalSnapMethods method = settings.IntervalSnapMethod;
     int digits = settings.IntervalRoundingDigits;
     LegendText = Range.ToString(method, digits);
     _filterExpression = Range.ToExpression(field);
 }