RangeColorizer
A class that is used to colorize the items and groups of RadTreeMapElement by given stops and palette with colors.
Definition
Namespace:Telerik.WinControls.UI.TreeMap
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RangeColorizer : BaseColorizer
Inheritance: objectBaseColorizerRangeColorizer
Inherited Members
Constructors
Creates a new instance of the RangeColorizer class.
public RangeColorizer()
Properties
Gets or sets a value indicating whether the values in the Stops collection are absolute or relative(between 0 and 1).
public bool IsAbsolute { get; set; }
Gets or sets the palette.
public TreeMapPalette Palette { get; set; }
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.
public List<double> Stops { get; }
Methods
protected virtual void AddDefaultRangePaletteColors()
Colorizes the groups.
public override void ColorizeGroups(IEnumerable<TreeMapDataItemGroup> groups)
The groups.
Overrides:
Colorizes the items by given stops collection in absolute values.
protected virtual void ColorizeItems(IEnumerable<TreeMapDataItem> items, List<double> stops)
The items.
stopsList<double>The stops.
Colorizes the items.
public override void ColorizeItems(IEnumerable<TreeMapDataItem> items)
The data items.
Overrides:
protected virtual List<double> GetAbsoluteStops(IEnumerable<TreeMapDataItem> items, List<double> relativeStops)
List<double>
protected virtual List<double> GetStops(IEnumerable<TreeMapDataItem> items)
List<double>
protected virtual List<double> GetStops(IEnumerable<TreeMapDataItemGroup> groups)
List<double>