In an HTML-client application, you can use a thin graph to display graphical data. The thin graph creates an imagemap. In a Java-client application or applet, you can also create an imagemap from an instance of the Graph bean.
The Graph bean provides the information that you need when you create your own imagemap. The Graph bean does not create an imagemap, but it gives you information about the structure of the graph and about the geometry of each graph component.
The information is provided in two different forms:
As XML. You use XML when you create the imagemap in a Java virtual machine (JVM) other than the JVM where the graph was created.
As an enumeration of components. You use the enumeration when you create the imagemap in the same JVM as the graph.
In either form of the information, you specify the components about which you
want information. These components are the components with which you want your
users to be able to interact. Your choices are described in the following table,
in which the left column lists the components and the right indicates the constant
to use for ImageMap methods. You can use the OR operator ( |
)
to combine these constants.
Components |
Constant for ImageMap methods |
---|---|
Components that represent data, such as bars, data markers, pie slices, and so on |
|
Everything in the legend of the graph |
|
Tick labels on data axes, such as "$100K" |
|
Tick labels on the ordinal axis, such as "January" |
|
Marker text, slice labels, and pie labels on the graph |
|
Title, subtitle, and footnote of the graph |
|
All of the items listed previously in this table |
|
Saving Imagemap Information in XML
Using API to Get Imagemap
Information