GraphColoriser
Class that arranges shape's ShapeFill and HighlightFill with specified number of those so that two neighboring shapes are not of the same fill and highlight. Before assigning object of this type to InformationLayer.Coloriser property you should specify the ShapeFillCollection and optionally HighlightCollection.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class GraphColoriser : DependencyObject, IMapShapeColorizer
Inheritance: objectGraphColoriser
Implements:
Constructors
Initializes a new instance of the GraphColoriser class.
public GraphColoriser()
Fields
ExtendedPropertyNameProperty
DependencyProperty
DependencyProperty for ExtendedPropertyName value.
public static readonly DependencyProperty ExtendedPropertyNameProperty
HighlightFillCollectionProperty
DependencyProperty
DependencyProperty for HighlightFillCollection property.
public static readonly DependencyProperty HighlightFillCollectionProperty
ShapeFillCollectionProperty
DependencyProperty
DependencyProperty for ShapeFillCollection property.
public static readonly DependencyProperty ShapeFillCollectionProperty
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 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 colorizer usage mode.
public ColorizerUsageMode UsageMode { get; }
Implements:
Methods
Colorize elements from the list.
public void Colorize(IEnumerable<object> shapes)
The shape list.
Implements:
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 GraphColoriser class using the shape list.
public void Prepare(IEnumerable<object> shapes)
The shape list.
Implements:
Empty method for this class.
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: