|
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.SequencedHyperLinkDesc
SequencedHyperLink objects allow control over the various components of expressions, such as href, onMouseOver, onMouseOut and onClick, generated in each area specification of an HTML image map.
When generating image map files, Chart Builder generates hyperlinks for each HTML area specification. The hyperlinks are numerically sequenced. The following example shows an the image map for a bar chart that contains three bars and that uses href expressions. The sequenced hyperlinks are shown in Italic font.
< area shape=rect coords=... href=foo0.html > < area shape=rect coords=... href=foo1.html > < area shape=rect coords=... href=foo2.html >
The default sequenced hyperlinks generated by Chart Builder are defined as follows:
Sequenced hyperlinks are also embedded in expressions for handling mouse events, such as onMouseOver, as shown in the following example:
< area shape=rect coords=... href=foo0.html > onMouseOver="document.images['barchart'].src='bars/worldpop0.gif' < area shape=rect coords=... href=foo1.html > onMouseOver="document.images['barchart'].src='bars/worldpop1.gif' < area shape=rect coords=... href=foo2.html > onMouseOver="document.images['barchart'].src='bars/worldpop2.gif'
In the example, "bars/worldpop0.gif" is the first sequenced hyperlink for the onMouseOver expression.
The SequencedHyperLinkDesc class allows one to alter the characteristics of sequenced hyperlinks:
setHyperLinkPrefix("images/") => "images/foo0.html"
setHyperLinkName("myname") => "myname0.html"
setHyperLinkExtension(".gif") => "foo0.gif"
Target and useMap expressions are also supported. By default, neither target nor useMap expressions are generated. For example, if one invoked setTarget("_blank") for the image map containing three bars, the generated HTML code would appear as follows:
< area shape=rect coords=... href=foo0.html target=_blank > < area shape=rect coords=... href=foo1.html target=_blank > < area shape=rect coords=... href=foo2.html target=_blank >
Similarly, if one invoked setUseMap("mymap") for the image map containing three bars, the generated HTML code would appear as follows:
< area shape=rect coords=... href=foo0.html useMap=#mymap0 > < area shape=rect coords=... href=foo1.html useMap=#mymap1 > < area shape=rect coords=... href=foo2.html useMap=#mymap2 >
Note that the useMap expressions are also sequenced.
Note: Although Internet Explorer provides support for useMap expressions within an image map, Netscape Navigator does not support useMap expressions within image maps.
ImageMapDesc
Constructor Summary | |
SequencedHyperLinkDesc()
|
Method Summary | |
boolean |
getEnable()
Get the enable flag of the hyperlink. |
java.lang.String |
getHyperLinkExtension()
Get the extension of the referenced hyperlink. |
java.lang.String |
getHyperLinkName()
Get the name of the referenced hyperlink. |
java.lang.String |
getHyperLinkPrefix()
Get the prefix of the referenced hyperlink. |
int |
getHyperLinkStartIndex()
Get the start index of the referenced hyperlink. |
java.lang.String |
getTarget()
Get the target of the sequenced hyperlink. |
java.lang.String |
getUseMap()
Get the useMap of the sequenced hyperlink. |
void |
setDisable()
Disable the generation of the sequenced hyperlink. |
void |
setEnable()
Enable the generation of the sequenced hyperlink. |
void |
setHyperLinkExtension(java.lang.String extension)
Set the extension of the referenced hyperlink. |
void |
setHyperLinkName(java.lang.String name)
Set the name of the referenced hyperlink. |
void |
setHyperLinkPrefix(java.lang.String prefix)
Set the prefix of the referenced hyperlink. |
void |
setHyperLinkStartIndex(int startIndex)
Set the index of the first sequenced hyperlink. |
void |
setTarget(java.lang.String target)
Set the target of the hyperlink. |
void |
setUseMap(java.lang.String useMap)
Set the useMap of the hyperlink. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequencedHyperLinkDesc()
Method Detail |
public void setHyperLinkPrefix(java.lang.String prefix)
prefix
- String to be used as the prefix.public void setHyperLinkExtension(java.lang.String extension)
extension
- String to be used as the extension.public void setHyperLinkName(java.lang.String name)
name
- String to be used as the name of the hyperlink.public void setHyperLinkStartIndex(int startIndex)
startIndex
- The index for the first hyperlink.public void setEnable()
public void setDisable()
public void setTarget(java.lang.String target)
target
- The target of the hyperlink.public void setUseMap(java.lang.String useMap)
useMap
- The name of the image map.public java.lang.String getHyperLinkPrefix()
public java.lang.String getHyperLinkExtension()
public java.lang.String getHyperLinkName()
public int getHyperLinkStartIndex()
public java.lang.String getTarget()
public java.lang.String getUseMap()
public boolean getEnable()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |