public class IlvImageMapBuilder extends Object
IlvImageMapBuilder
class is used to generate client-side
image maps from an IlvChart
.
The provided methods generate strings that represent image map area tags. These strings have the following form:
<area shape=... coords=... attributeList>
Each generated tag can be written within an image map definition inside an
HTML file.
Constructor and Description |
---|
IlvImageMapBuilder(IlvChart chart)
Initializes a new builder to generate image map area tags
for the specified chart.
|
Modifier and Type | Method and Description |
---|---|
IlvChart |
getChart()
Returns the chart with which the builder is associated.
|
String |
getDataWindowTag(IlvDataWindow w,
int yAxisIdx,
IlvIMapAttributes attr,
boolean chartOrigin)
Generates an area tag corresponding to the specified data window.
|
String |
getFooterTag(IlvIMapAttributes attr)
Generates an area tag for the chart footer.
|
String |
getHeaderTag(IlvIMapAttributes attr)
Generates an area tag for the chart header.
|
String[] |
getLegendItemTags(IlvIMapDefinition mapDef)
Generates area tags for the legend items.
|
String |
getLegendTag(IlvIMapAttributes attr)
Generates an area tag for the chart legend.
|
String[] |
getRendererTags(IlvIMapDefinition mapDef)
Generates area tags for the chart renderers.
|
public IlvImageMapBuilder(IlvChart chart)
public final IlvChart getChart()
public String getFooterTag(IlvIMapAttributes attr)
attr
- The attributes for the corresponding map area.null
if there is no
footer.public String getHeaderTag(IlvIMapAttributes attr)
attr
- The attributes for the corresponding map area.null
if there is no
header.public String getLegendTag(IlvIMapAttributes attr)
attr
- The attributes for the corresponding map area.null
if no legend has been
added to the chart.public String[] getLegendItemTags(IlvIMapDefinition mapDef)
mapDef
- The map definition, which specifies how areas must be
generated.IlvIMapArea.getTag()
public String getDataWindowTag(IlvDataWindow w, int yAxisIdx, IlvIMapAttributes attr, boolean chartOrigin)
w
- The considered data window.yAxisIdx
- The index of the chart y-axis.attr
- The attributes for the corresponding map area.chartOrigin
- A Boolean value indicating whether the chart is
the origin of the image. If false
, the origin of the
image is the chart area component.public String[] getRendererTags(IlvIMapDefinition mapDef)
mapDef
- The map definition, which specifies how areas must be
generated.IlvIMapArea.getTag()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.