Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to CDImageMapHandlerMBS class.
CDImageMapHandlerMBS.Constructor(ImageMap as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Argument | Default | Description |
imageMap | (Mandatory) | A text string representing the image map in HTML format. |
CDImageMapHandlerMBS.getHotSpot(xCoordinate as double, yCoordinate as double) as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This method will retrieve the hot spot under the given point as the "current hot spot". Its attributes can then be retrieved using ImageMapHandler.getKey, ImageMapHandler.getValue and ImageMapHandler.getValue2.
This method returns an integer representing the hot spot, or -1 if the point is not over any hot spot. Each hot spot region is represented by a unique integer, which can be any arbitrary number. The number is mainly used to determine if the cursor has changed from one hot spot to another hot spot.
Argument | Default | Description |
x | (Mandatory) | The x coordinate of a point of which the hot spot is to be retrieved. |
y | (Mandatory) | The y coordinate of a point of which the hot spot is to be retrieved. |
CDImageMapHandlerMBS.getKey(i as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Each hot spot is associated with an arbitrary number of attributes, in which each attribute consists of a key and a value. This method returns the key of the (i + 1)th attribute. (The first attribute is 0, while the nth attribute is n - 1.)
If the argument i is equal or larger than the number of attributes, an null string will be returned. This behaviour can be used to enumerate the attributes and to determine how many attributes are associated for the hot spot.
Argument | Default | Description |
i | (Mandatory) | The index of the attribute to retrieve (index of first attribute is 0). |
CDImageMapHandlerMBS.getValue(i as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Each hot spot is associated with an arbitrary number of attributes, in which each attribute consists of a key and a value. This method returns the value of the (i + 1)th attribute. (The first attribute is 0, while the nth attribute is n - 1.)
Argument | Default | Description |
i | (Mandatory) | The index of the attribute to retrieve (index of first attribute is 0). |
See also:
CDImageMapHandlerMBS.getValue(key as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Each hot spot is associated with an arbitrary number of attributes, in which each attribute consists of a key and a value. This method returns the value of the attribute given the key.
Argument | Default | Description |
key | (Mandatory) | A text string representing the key of the attribute. |
See also:
The items on this page are in the following plugins: MBS ChartDirector Plugin.