|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ord.media.chart.types.ImageMapDesc
ImageMap objects are used to define the attributes of HTML image maps generated by Chart Builder, and are supplied as parameters to setEnableImageMapCS(). A number of attributes are configurable, including the name of the image map, the choice of mouse event handlers, and the configuration of paths and extensions for sequenced HyperLinks.
The following image map event handlers can be selected:
The following example shows how to use an ImageMapDesc to define the attributes of an image map:
PieChart PieCh = new PieChart(); ... ImageMapDesc desc = new ImageMapDesc(); desc.setMapName("imports"); desc.getHrefDesc().setHyperLinkPrefix("images/"); desc.getHrefDesc().setTarget("_blank"); PieCh.setEnableImageMapCS(desc); PieCh.drawBuffer(g2); char imageMap[] = PieCh.getImageMapCS();
Given that the pie chart has three slices, the resulting image map would be generated:
< map name="imports"> < area shape=poly coords=... href=images/imports0.html target=_blank > < area shape=poly coords=... href=images/imports1.html target=_blank > < area shape=poly coords=... href=images/imports2.html target=_blank > </map>
For detailed examples, see the online tutorials.
AxisChart.setEnableImageMapCS(ImageMapDesc)
,
PieChart.setEnableImageMapCS(ImageMapDesc)
,
SequencedHyperLinkDesc
Constructor Summary | |
ImageMapDesc()
|
Method Summary | |
java.lang.String |
getFixedHref()
Get the fixed href. |
SequencedHyperLinkDesc |
getHrefDesc()
Get the href descriptor. |
boolean |
getIsFixedHref()
Return true if the href is fixed. |
java.lang.String |
getMapName()
Get the map name. |
SequencedHyperLinkDesc |
getOnClickDesc()
Get the onClick descriptor. |
SequencedHyperLinkDesc |
getOnMouseOutDesc()
Get the onMouseOut descriptor. |
SequencedHyperLinkDesc |
getOnMouseOverDesc()
Get the onMouseOver descriptor. |
java.lang.String |
getReplacementImageName()
Get the replacement image name. |
void |
setFixedHref(java.lang.String anchor)
Set the fixed href. |
void |
setMapName(java.lang.String mapName)
Set the name of the image map in the generated text. |
void |
setReplacementImageName(java.lang.String imageName)
Set the name of the replacement image for the onMouseOver and onClick expression. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageMapDesc()
Method Detail |
public void setMapName(java.lang.String mapName)
mapName
- Name of map in the generated text.public void setReplacementImageName(java.lang.String imageName)
Coupled image: < IMG NAME="expanded" SRC="monthly/US_Unemployment5.gif" align=left hspace=5 > Mouse Over Events cause a replacement: onMouseover = document.images['expanded'].src = 'monthly/US_Unemployment0.gif'"
imageName
- Name of the image in the generated onMouseOver or onClick expression.public void setFixedHref(java.lang.String anchor)
public java.lang.String getMapName()
public java.lang.String getReplacementImageName()
public java.lang.String getFixedHref()
public boolean getIsFixedHref()
public SequencedHyperLinkDesc getHrefDesc()
public SequencedHyperLinkDesc getOnMouseOverDesc()
public SequencedHyperLinkDesc getOnMouseOutDesc()
public SequencedHyperLinkDesc getOnClickDesc()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |