ColorMeasureScale
Class that calculates the range collection for the further use in Map Legend. ShapeFill, Min, Max, Mode and properties corresponding to the mode should be determined here.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class ColorMeasureScale : DependencyObject, IMapShapeColorizer
Inheritance: objectColorMeasureScale
Implements:
Constructors
Initializes a new instance of the ColorMeasureScale class.
public ColorMeasureScale()
Fields
ExtendedPropertyNameProperty
DependencyProperty
DependencyProperty for ExtendedPropertyName value.
public static readonly DependencyProperty ExtendedPropertyNameProperty
HighlightFillCollectionProperty
DependencyProperty
DependencyProperty for HighlightFillCollection property.
public static readonly DependencyProperty HighlightFillCollectionProperty
MaxValueProperty
DependencyProperty
DependencyProperty for Max value.
public static readonly DependencyProperty MaxValueProperty
MinValueProperty
DependencyProperty
DependencyProperty for Min value.
public static readonly DependencyProperty MinValueProperty
ModeProperty
DependencyProperty
DependencyProperty for Mode value.
public static readonly DependencyProperty ModeProperty
RangeDistributionProperty
DependencyProperty
DependencyProperty for IRangeDistribution value.
public static readonly DependencyProperty RangeDistributionProperty
ShapeFillCollectionProperty
DependencyProperty
DependencyProperty for ShapeFillCollection property.
public static readonly DependencyProperty ShapeFillCollectionProperty
TickMarkCountProperty
DependencyProperty
DependencyProperty for TickMarkCount value.
public static readonly DependencyProperty TickMarkCountProperty
TickMarkStepProperty
DependencyProperty
DependencyProperty for TickMarkStep value.
public static readonly DependencyProperty TickMarkStepProperty
Properties
Gets or sets the extended property name.
public string ExtendedPropertyName { get; set; }
Implements:
Gets the collection of MapShapeFill instances for the shapes highlighting.
public MapShapeFillCollection HighlightFillCollection { get; }
Gets or sets value which indicates whether colorizer have been prepared already.
public bool IsPrepared { get; set; }
Implements:
Gets or sets the value of Max for the whole MapRangeCollection.
public double MaxValue { get; set; }
Gets or sets the value of Min for the whole MapRangeCollection.
public double MinValue { get; set; }
Gets or sets ColorScaleMode.
public ColorScaleMode Mode { get; set; }
Readonly property to get MapRangeCollection.
public MapRangeCollection RangeCollection { get; }
Gets or sets ranges distribution. This property specify class which creates range distribution. It makes sense when "Count" mode is used for ColorMeasureScale.
public IRangeDistribution RangeDistribution { get; set; }
Gets or sets value which indicates whether colorizer should be re-prepared when items collection of the information layer is changed.
public bool ResetOnItemsChanged { get; set; }
Implements:
Gets the collection of MapShapeFill instances for the shapes coloring.
public MapShapeFillCollection ShapeFillCollection { get; }
Gets or sets the number of tick marks.
public int TickMarkCount { get; set; }
Gets or sets the number of steps.
public double TickMarkStep { get; set; }
Gets colorizer usage mode.
public ColorizerUsageMode UsageMode { get; }
Implements:
Methods
Colorize elements from the list.
public void Colorize(IEnumerable<object> shapes)
The shape list.
Implements:
Returns MapShapeFill from MapRangeCollection corresponding the value.
public MapShapeFill GetColorByValue(double value)
Value.
Returns:MapShapeFill instance corresponding value.
Raises the PrepareCompleted event.
protected virtual void OnPrepareCompleted(ShapeColorizerEventArgs args)
The ShapeColorizerEventArgs instance containing the event data.
Raises the UpdateLegend event.
protected virtual void OnUpdateLegend()
Prepares the instance of the ColorMeasureScale class using the shape list.
public void Prepare(IEnumerable<object> shapes)
The shape list.
Implements:
Sets color to item by extended data.
public void SetColor(IExtendedData item)
Item of IExtendedData type.
Implements:
Colors shapes according to specified property from extended data.
public void SetColorByExtendedData(IEnumerable<object> shapes, string propertyName, bool autoRange)
Shapes collection.
propertyNamestringName of property from extended data (should have numeric type).
autoRangeboolIf set to true automatically calculates the scale range.
Colors shapes according to specified property from extended data.
public void SetColorByExtendedData(IEnumerable<object> shapes, string propertyName)
Shapes collection.
propertyNamestringName of property from extended data (should have numeric type).
Set callback that colors the framework element. If the parameter is null, then built-in callback will be used.
public void SetColorCallback(ColorMeasureScale.SetColorDelegate colorCallback)
Delegate method.
Specifies Min and Max value according to extended data of shapes.
public void SetScaleRangeByExtendedData(IEnumerable<object> shapes, string propertyName)
Shapes.
propertyNamestringProperty name.
Events
The Prepare completed event handler.
public event EventHandler<ShapeColorizerEventArgs> PrepareCompleted
Implements:
The update legend event handler. Occurs when the instance is changed and the map legend should be updated.
public event EventHandler UpdateLegend
Implements: