/// <summary> /// Creates a new instance of FeatureScheme /// </summary> protected FeatureScheme() { // This normally is replaced by a shape type specific collection, and is just a precaution. _appearsInLegend = false; _cachedUniqueValues = new Dictionary<string, ArrayList>(); EditorSettings = new FeatureEditorSettings(); Breaks = new List<Break>(); }
/// <summary> /// Initializes a new instance of the <see cref="FeatureScheme"/> class. /// </summary> protected FeatureScheme() { // This normally is replaced by a shape type specific collection, and is just a precaution. AppearsInLegend = false; _cachedUniqueValues = new Dictionary <string, ArrayList>(); EditorSettings = new FeatureEditorSettings(); Breaks = new List <Break>(); }
/// <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); }