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