IVZTreeMap.ItemsToolTipStyle

Fore Syntax

ItemsToolTipStyle: IVZToolTipStyle;

Fore.NET Syntax

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

Description

The ItemsToolTipStyle property determines style of tooltips for tree map leaves.

Comments

The tooltip of a tree map leaf 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 Express, Metabase and Visualizators assemblies. This procedure should be called from the Main entry point.

Change the text shown when no data is available, let us set display mode for map tree item tooltips on click:

Sub UserProc;
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    ItemsToolTipStyle: IVZToolTipStyle; // Text labels style
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;
//Getobjectoftextlabelsstyle     ItemsToolTipStyle := TreeMap.ItemsToolTipStyle;
//Settext,shownwhenno data is available     ItemsToolTipStyle.NoDataText := "no data";
    // Set tooltips display mode
    ItemsToolTipStyle.HoverMode := VisualizatorHoverMode.Click; 
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the tooltip text, shown when data is missing, is changed. The tooltip now appears on left click on a tree map element:

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 and Visualizators assemblies should be imported to this module from the Prognoz.Platform.Interop system assembly.

Change the text shown when no data is available, set display mode for map tree item tooltips on click:

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    ItemsToolTipStyle: IVZToolTipStyle; // Text labels style
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;
//Getobjectoftextlabelsstyle     ItemsToolTipStyle := TreeMap.ItemsToolTipStyle;
//Settext,shownwhenno data is available     ItemsToolTipStyle.NoDataText := "no data";
    // Set tooltips display mode
    ItemsToolTipStyle.HoverMode := VisualizatorHoverMode.vhmClick;  
    // 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