IVZTreeMap.BranchItemsToolTipStyle

Syntax

BranchItemsToolTipStyle: IVZToolTipStyle;

Description

The BranchItemsToolTipStyle property determines style of tree map branch tooltips.

Comments

The branch tooltip of a tree map may look as follows:

Example

Executing the example requires that the repository contains an express report with the EXP identifier. The unit containing the example should have links to the Drawing, Express, Metabase and Visualizators system assemblies. The specified procedure should be called from the Main entry point.

Change the background of branch tooltips of the tree map, display animation time and number of colors in the component palette:

Sub UserProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    TreeMap: IVZTreeMap;
    BranchItemsToolTipStyle: IVZToolTipStyle;
Begin
    // Get the current repository
    Metabase := MetabaseClass.Active;
    // Get express report
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
    // Change background of branch tooltips of tree map
    BranchItemsToolTipStyle := TreeMap.BranchItemsToolTipStyle;
    BranchItemsToolTipStyle.Background := New GxSolidBrush.Create(New GxColor.CreateRGB(250,220,220));
    BranchItemsTooltipStyle.NoDataText := "no data";
    // Display animation time
    Debug.WriteLine("Animation time: " + TreeMap.AnimationTime.ToString);
    // Display number of colors in palette
    Debug.WriteLine("Number of colors in palette: " + 
        TreeMap.Palette.BackgroundArray.Count.ToString);
    // Get express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the background of tooltips of tree map branches is changed:

Also, the development environment console window displays tree map animation time and the number of colors in palette:

Animation time: 1.5

Number of colors in the palette: 36

See also:

IVZTreeMap