ChartDirector 7.0 (Java Edition)

HotSpotEvent


HotSpotEvent is a subclass of java.awt.event.MouseEvent. It provides information about hot spot events that occurred in a component. This includes both hot spot mouse events (click, enter, exit) and hot spot mouse motion events (moves and drags).

In addition to the information included in a MouseEvent, the HotSpotEvent includes attributes associated with the hot spot. These attributes come from query parameters in the image map that defines the hot spot.

For example, suppose the query parameters for the hot spot is:

x=0&xLabel=Mon&dataSet=0&dataSetName=Revenue&value=100

The HotSpotEvent object will contain the following attributes.

AttributeValue
x0
xLabelMon
dataSet0
dataSetNameRevenue
value100

If there are two attributes with the same name in the query parameters, they will be merged into one attribute, with the values appended together, delimited using the ASCII unit separator character (ASCII code 31).

In addition to the attributes due to query parameters, the HotSpotEvent object contains three additional attributes as follows:



MethodInheritedDescription
get(Self)Gets a named attribute associated with the hot spot.
getAttrValues(Self)Gets a Hashtable containing the attributes associated with the hot spot.
Note: Methods inherited from MouseEvent are omitted.