/// <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> 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() + "]"; IntervalSnapMethod method = settings.IntervalSnapMethod; int digits = settings.IntervalRoundingDigits; LegendText = Range.ToString(method, digits); _filterExpression = Range.ToExpression(field); }
/// <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> 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() + "]"; } IntervalSnapMethod method = settings.IntervalSnapMethod; int digits = settings.IntervalRoundingDigits; LegendText = Range.ToString(method, digits); _filterExpression = Range.ToExpression(field); }
/// <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); }