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
ImageMapHandler is a utility class to handle image maps in HTML format (that is, as <AREA> tags).

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 &lt;AREA&gt; tags as follows:

AttributeDescription
coordsThis attribute defines the position and shape of the hot spot.
hrefThe 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.
titleThis 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:


The items on this page are in the following plugins: MBS ChartDirector Plugin.


CDHLOCLayerMBS   -   CDInterLineLayerMBS


The biggest plugin in space...