Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CDImageMapHandlerMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: ImageMapHandler is a utility class to handle image maps in HTML format (that is, as <AREA> tags).
Notes:
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.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


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


CDHLOCLayerMBS   -   CDInterLineLayerMBS




Links
MBS Xojo PDF Plugins