IVZTreeMap.BranchItemsToolTipStyle

Fore Syntax

BranchItemsToolTipStyle: IVZToolTipStyle;

Fore.NET Syntax

BranchItemsToolTipStyle: Prognoz.Platform.Interop.Visualizators.VZToolTipStyle;

Description

The BranchItemsToolTipStyle property determines style of tree map branch tooltips.

Comments

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

Fore Example

Executing the example requires that the repository contains an express report with the EXP identifier. The module containing the example should have links to the Drawing, Express, Metabase and Visualizators system assemblies. This 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; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    BranchItemsToolTipStyle: IVZToolTipStyle; // Style of branch tooltips of tree map
Begin
    // Get metabase object
    Metabase := MetabaseClass.Active;
    // Get express report object
    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);
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the background of branch tooltips of tree map 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

Fore.NET Example

Executing the example requires that the repository contains an express report with the EXP identifier. The selected procedure is the Main entry point in the Program module of the .NET assembly. The Express, Metabase, Drawing and Visualizators assemblies should be imported to this module from the Prognoz.Platform.Interop system assembly.

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

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    BranchItemsToolTipStyle: IVZToolTipStyle; // Style of branch tooltips of tree map
    Brush: GxSolidBrush; // Brush
    Color: GxColor; // Background color
Begin
    // Get metabase object
    Metabase := Params.Metabase;
    // Get express report object
    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;
    Color := New GxColor();
    Color.CreateRGB(250220220);
    Brush := New GxSolidBrush();
    Brush.Create(Color);
    BranchItemsToolTipStyle.Background := Brush;
    // Display animation time
    System.Diagnostics.Debug.WriteLine("Animation time: " 
        + TreeMap.AnimationTime.ToString());
    // Display number of colors in palette
    System.Diagnostics.Debug.WriteLine("Number of colors in palette: " + 
        TreeMap.Palette.BackgroundArray.Count.ToString());
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save();
End Sub;

The result of the executed example is the same as that, executed for Fore language.

See also:

IVZTreeMap