Class
GradientColorizer

A class that is used to colorize the items and groups of RadTreeMapElement by given start and end palettes with colors.

Definition

Namespace:Telerik.WinControls.UI.TreeMap

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class GradientColorizer : BaseColorizer

Inheritance: objectBaseColorizerGradientColorizer

Inherited Members BaseColorizer.GetForeColor(Color)BaseColorizer.UpdateOwnerColors()BaseColorizer.TreeMapElement

Constructors

GradientColorizer()

Creates a new instance of the GradientColorizer class.

Declaration

cs-api-definition
public GradientColorizer()

Properties

EndColor

Gets or sets the end color. Defines the end color when there are no groups in RadTreeMapElement.

Declaration

cs-api-definition
public Color EndColor { get; set; }

Property Value

Color

EndPalette

Gets or sets the end palette. Defines the end colors for each group of RadTreeMapElement.

Declaration

cs-api-definition
public TreeMapPalette EndPalette { get; set; }

Property Value

TreeMapPalette

StartColor

Gets or sets the start color. Defines the start color when there are no groups in RadTreeMapElement.

Declaration

cs-api-definition
public Color StartColor { get; set; }

Property Value

Color

StartPalette

Gets or sets the start palette. Defines the start colors for each group of RadTreeMapElement.

Declaration

cs-api-definition
public TreeMapPalette StartPalette { get; set; }

Property Value

TreeMapPalette

Methods

ColorizeGroups(IEnumerable<TreeMapDataItemGroup>)

Colorizes the groups.

Declaration

cs-api-definition
public override void ColorizeGroups(IEnumerable<TreeMapDataItemGroup> groups)

Parameters

groups

IEnumerable<TreeMapDataItemGroup>

The groups.

Overrides BaseColorizer.ColorizeGroups(IEnumerable<TreeMapDataItemGroup>)

ColorizeItems(IEnumerable<TreeMapDataItem>)

Colorizes the items.

Declaration

cs-api-definition
public override void ColorizeItems(IEnumerable<TreeMapDataItem> items)

Parameters

items

IEnumerable<TreeMapDataItem>

The items.

Overrides BaseColorizer.ColorizeItems(IEnumerable<TreeMapDataItem>)

ColorizeItems(IEnumerable<TreeMapDataItem>, Color, Color)

Colorizes the items by given start and end colors.

Declaration

cs-api-definition
protected virtual void ColorizeItems(IEnumerable<TreeMapDataItem> items, Color start, Color end)

Parameters

items

IEnumerable<TreeMapDataItem>

The data items.

start

Color

The start color.

end

Color

The end color.

MixColor(double, Color, Color)

Mixes a color.

Declaration

cs-api-definition
protected virtual Color MixColor(double ratio, Color startColor, Color endColor)

Parameters

ratio

double

The ratio of start color in the result color.

startColor

Color

The start color.

endColor

Color

The background color.

Returns

Color

The mixed color.