Class RangeColorizer
A class that is used to colorize the items and groups of RadTreeMapElement by given stops and palette with colors.
Inherited Members
Namespace: Telerik.WinControls.UI.TreeMap
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RangeColorizer : BaseColorizer
Constructors
RangeColorizer()
Properties
IsAbsolute
Gets or sets a value indicating whether the values in the Stops collection are absolute or relative(between 0 and 1).
Declaration
public bool IsAbsolute { get; set; }
Property Value
System.Boolean
|
Palette
Gets or sets the palette.
Declaration
public TreeMapPalette Palette { get; set; }
Property Value
TreeMapPalette
|
Stops
Gets the stops collection. Values can be absolute or relative (between 0 and 1) depending on the IsAbsolute property value. If the collection is empty a default relative values collection based on the colors count in the palette is used when the items are being colorized.
Declaration
public List<double> Stops { get; }
Property Value
System.Collections.Generic.List<System.Double>
|
Methods
AddDefaultRangePaletteColors()
Declaration
protected virtual void AddDefaultRangePaletteColors()
ColorizeGroups(IEnumerable<TreeMapDataItemGroup>)
Colorizes the groups.
Declaration
public override void ColorizeGroups(IEnumerable<TreeMapDataItemGroup> groups)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItemGroup>
groups
The groups. |
Overrides
ColorizeItems(IEnumerable<TreeMapDataItem>)
Colorizes the items.
Declaration
public override void ColorizeItems(IEnumerable<TreeMapDataItem> items)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItem>
items
The data items. |
Overrides
ColorizeItems(IEnumerable<TreeMapDataItem>, List<Double>)
Colorizes the items by given stops collection in absolute values.
Declaration
protected virtual void ColorizeItems(IEnumerable<TreeMapDataItem> items, List<double> stops)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItem>
items
The items. |
System.Collections.Generic.List<System.Double>
stops
The stops. |
GetAbsoluteStops(IEnumerable<TreeMapDataItem>, List<Double>)
Declaration
protected virtual List<double> GetAbsoluteStops(IEnumerable<TreeMapDataItem> items, List<double> relativeStops)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItem>
items
|
System.Collections.Generic.List<System.Double>
relativeStops
|
Returns
System.Collections.Generic.List<System.Double>
|
GetBackColor(Double, List<Double>)
Declaration
protected virtual Color GetBackColor(double value, List<double> stops)
Parameters
System.Double
value
|
System.Collections.Generic.List<System.Double>
stops
|
Returns
System.Drawing.Color
|
GetStops(IEnumerable<TreeMapDataItem>)
Declaration
protected virtual List<double> GetStops(IEnumerable<TreeMapDataItem> items)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItem>
items
|
Returns
System.Collections.Generic.List<System.Double>
|
GetStops(IEnumerable<TreeMapDataItemGroup>)
Declaration
protected virtual List<double> GetStops(IEnumerable<TreeMapDataItemGroup> groups)
Parameters
System.Collections.Generic.IEnumerable<TreeMapDataItemGroup>
groups
|
Returns
System.Collections.Generic.List<System.Double>
|