Class 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.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class GraphColoriser : DependencyObject, IMapShapeColorizer
Constructors
GraphColoriser()
Initializes a new instance of the GraphColoriser class.
Declaration
public GraphColoriser()
Fields
ExtendedPropertyNameProperty
DependencyProperty for ExtendedPropertyName value.
Declaration
public static readonly DependencyProperty ExtendedPropertyNameProperty
Field Value
System.Windows.DependencyProperty
|
HighlightFillCollectionProperty
DependencyProperty for HighlightFillCollection property.
Declaration
public static readonly DependencyProperty HighlightFillCollectionProperty
Field Value
System.Windows.DependencyProperty
|
ShapeFillCollectionProperty
DependencyProperty for ShapeFillCollection property.
Declaration
public static readonly DependencyProperty ShapeFillCollectionProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ExtendedPropertyName
Gets or sets the extended property name.
Declaration
public string ExtendedPropertyName { get; set; }
Property Value
System.String
|
Implements
HighlightFillCollection
Gets the collection of MapShapeFill instances for the shapes highlighting.
Declaration
public MapShapeFillCollection HighlightFillCollection { get; }
Property Value
MapShapeFillCollection
|
IsPrepared
Gets or sets value which indicates whether colorizer have been prepared already.
Declaration
public bool IsPrepared { get; set; }
Property Value
System.Boolean
|
Implements
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
System.Boolean
|
Implements
ShapeFillCollection
Gets the collection of MapShapeFill instances for the shapes coloring.
Declaration
public MapShapeFillCollection ShapeFillCollection { get; }
Property Value
MapShapeFillCollection
|
UsageMode
Gets colorizer usage mode.
Declaration
public ColorizerUsageMode UsageMode { get; }
Property Value
ColorizerUsageMode
|
Implements
Methods
Colorize(IEnumerable<Object>)
Colorize elements from the list.
Declaration
public void Colorize(IEnumerable<object> shapes)
Parameters
System.Collections.Generic.IEnumerable<System.Object>
shapes
The shape list. |
Implements
OnPrepareCompleted(ShapeColorizerEventArgs)
Raises the PrepareCompleted event.
Declaration
protected virtual void OnPrepareCompleted(ShapeColorizerEventArgs args)
Parameters
ShapeColorizerEventArgs
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 GraphColoriser class using the shape list.
Declaration
public void Prepare(IEnumerable<object> shapes)
Parameters
System.Collections.Generic.IEnumerable<System.Object>
shapes
The shape list. |
Implements
SetColor(IExtendedData)
Empty method for this class.
Declaration
public void SetColor(IExtendedData item)
Parameters
IExtendedData
item
Some item. |
Implements
Events
PrepareCompleted
The Prepare completed event handler.
Declaration
public event EventHandler<ShapeColorizerEventArgs> PrepareCompleted
Event Type
System.EventHandler<ShapeColorizerEventArgs>
|
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 Type
System.EventHandler
|