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.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class GraphColoriser : DependencyObject, IMapShapeColorizer

Inheritance: objectGraphColoriser

Implements: IMapShapeColorizer

Constructors

GraphColoriser()

Initializes a new instance of the GraphColoriser class.

Declaration

cs-api-definition
public GraphColoriser()

Fields

ExtendedPropertyNameProperty

DependencyProperty for ExtendedPropertyName value.

Declaration

cs-api-definition
public static readonly DependencyProperty ExtendedPropertyNameProperty

Field Value

DependencyProperty

HighlightFillCollectionProperty

DependencyProperty for HighlightFillCollection property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightFillCollectionProperty

Field Value

DependencyProperty

ShapeFillCollectionProperty

DependencyProperty for ShapeFillCollection property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeFillCollectionProperty

Field Value

DependencyProperty

Properties

ExtendedPropertyName

Gets or sets the extended property name.

Declaration

cs-api-definition
public string ExtendedPropertyName { get; set; }

Property Value

string

Implements IMapShapeColorizer.ExtendedPropertyName

HighlightFillCollection

Gets the collection of MapShapeFill instances for the shapes highlighting.

Declaration

cs-api-definition
public MapShapeFillCollection HighlightFillCollection { get; }

Property Value

MapShapeFillCollection

IsPrepared

Gets or sets value which indicates whether colorizer have been prepared already.

Declaration

cs-api-definition
public bool IsPrepared { get; set; }

Property Value

bool

Implements IMapShapeColorizer.IsPrepared

ResetOnItemsChanged

Gets or sets value which indicates whether colorizer should be re-prepared when items collection of the information layer is changed.

Declaration

cs-api-definition
public bool ResetOnItemsChanged { get; set; }

Property Value

bool

Implements IMapShapeColorizer.ResetOnItemsChanged

ShapeFillCollection

Gets the collection of MapShapeFill instances for the shapes coloring.

Declaration

cs-api-definition
public MapShapeFillCollection ShapeFillCollection { get; }

Property Value

MapShapeFillCollection

UsageMode

Gets colorizer usage mode.

Declaration

cs-api-definition
public ColorizerUsageMode UsageMode { get; }

Property Value

ColorizerUsageMode

Implements IMapShapeColorizer.UsageMode

Methods

Colorize(IEnumerable<object>)

Colorize elements from the list.

Declaration

cs-api-definition
public void Colorize(IEnumerable<object> shapes)

Parameters

shapes

IEnumerable<object>

The shape list.

Implements IMapShapeColorizer.Colorize(IEnumerable<object>)

OnPrepareCompleted(ShapeColorizerEventArgs)

Raises the PrepareCompleted event.

Declaration

cs-api-definition
protected virtual void OnPrepareCompleted(ShapeColorizerEventArgs args)

Parameters

args

ShapeColorizerEventArgs

The ShapeColorizerEventArgs instance containing the event data.

OnUpdateLegend()

Raises the UpdateLegend event.

Declaration

cs-api-definition
protected virtual void OnUpdateLegend()

Prepare(IEnumerable<object>)

Prepares the instance of the GraphColoriser class using the shape list.

Declaration

cs-api-definition
public void Prepare(IEnumerable<object> shapes)

Parameters

shapes

IEnumerable<object>

The shape list.

Implements IMapShapeColorizer.Prepare(IEnumerable<object>)

SetColor(IExtendedData)

Empty method for this class.

Declaration

cs-api-definition
public void SetColor(IExtendedData item)

Parameters

item

IExtendedData

Some item.

Implements IMapShapeColorizer.SetColor(IExtendedData)

Events

PrepareCompleted

The Prepare completed event handler.

Declaration

cs-api-definition
public event EventHandler<ShapeColorizerEventArgs> PrepareCompleted

Event Value

EventHandler<ShapeColorizerEventArgs>

Implements IMapShapeColorizer.PrepareCompleted

UpdateLegend

The update legend event handler. Occurs when the instance is changed and the map legend should be updated.

Declaration

cs-api-definition
public event EventHandler UpdateLegend

Event Value

EventHandler

Implements IMapShapeColorizer.UpdateLegend