Platforms to show: All Mac Windows Linux Cross-Platform
CDImageMapHandlerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It determines if a given point is on a hot spot as defined by the image map, and retrieves the hot spot parameters.
The BaseChart.getHTMLImageMap method can be used to automatically generate image maps for charts automatically.
The advantages of using HTML image map format is that it is easy for developers to customize the hot spots. For example, one can create custom buttons in the chart image by drawing custom text boxes, and then create custom image maps to define the text boxes as hot spots. These custom image maps can be appended to the image maps generated by BaseChart.getHTMLImageMap using simple string concatenation.
ImageMapHandler will process the various attributes of the HTML <AREA> tags as follows:
AttributeDescription
coords | This attribute defines the position and shape of the hot spot. |
href | The URL specified in this attribute will become the attributes of the hot spot. The path portion of the URL will become the path attribute, while the query parameters will become the attributes of the hot spot as is. |
title | This attribute defines the tool tip text to display when the mouse moves over and stops on the hot spot. |
- 5 methods
- method Constructor(ImageMap as string)
- method getHotSpot(xCoordinate as double, yCoordinate as double) as integer
- method getKey(i as Integer) as string
- method getValue(i as Integer) as string
- method getValue(key as string) as string
This class has no sub classes.
Some examples using this class:
- /ChartDirector/ChartDirector Control
- /ChartDirector/ChartDirector Control for Web
- /ChartDirector/ChartDirector Control Retina
- /ChartDirector/finance with ChartDirector Control
- /ChartDirector/math function plot
- /ChartDirector/math function plot centered
- /ChartDirector/math function plot centered and axes
- /ChartDirector/RealTime ViewPort
- /ChartDirector/simplebar with ImageMapHandler
- /ChartDirector/symbolline zoom improved
The items on this page are in the following plugins: MBS ChartDirector Plugin.
CDHLOCLayerMBS - CDInterLineLayerMBS