public class IlvSDMImageMapAreaGenerator extends IlvImageMapAreaGenerator
CIRCLE_SHAPE, POLYGON_SHAPE, RECTANGLE_SHAPE| Constructor and Description |
|---|
IlvSDMImageMapAreaGenerator()
Creates a new SDM image map generator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateALT(IlvManagerView view,
IlvGraphic graphic)
This method returns the ALT attribute of the area
for the specified graphic object.
|
String |
generateCOORDS(IlvManagerView view,
IlvGraphic obj,
IlvRect bounds,
IlvTransformer t)
This method returns the coordinates of the area
for the specified graphic object.
|
String |
generateHREF(IlvManagerView view,
IlvGraphic graphic)
This method returns the HREF attribute of the area
for the specified graphic object.
|
String |
getImageMapFunction()
Returns the name of the function contained in the HREFs
of the image map generated by this servlet.
|
int |
getShape(IlvManagerView view,
IlvGraphic obj,
IlvTransformer t)
This method returns the shape of the area
for the specified graphic object.
|
void |
setImageMapFunction(String function)
Changes the name of the function contained in the HREFs
of the image map generated by this servlet.
|
generateONMOUSEOUT, generateONMOUSEOVER, generateTARGET, isGenerateManagerArea, setGenerateManagerArea, shouldGeneratepublic IlvSDMImageMapAreaGenerator()
public int getShape(IlvManagerView view, IlvGraphic obj, IlvTransformer t)
IlvImageMapAreaGenerator.POLYGON_SHAPE for links or IlvImageMapAreaGenerator.RECTANGLE_SHAPE
for nodes.getShape in class IlvImageMapAreaGeneratorpublic String generateCOORDS(IlvManagerView view, IlvGraphic obj, IlvRect bounds, IlvTransformer t)
generateCOORDS in class IlvImageMapAreaGeneratorview - The manager view.obj - The graphic object.bounds - The bounding box.t - The transformer.public String generateHREF(IlvManagerView view, IlvGraphic graphic)
The HREF can be specified in the style sheet using
the property imageMapHRef.
If the HREF is not specified in the style sheet, the method
returns a JavaScript call: javascript:select(id).
The select function must be defined in the DHTML client.
A different name for the JavaScript function can be specified in the style sheet
using the property imageMapFunction. The default function
can also be changed by calling setImageMapFunction(java.lang.String).
generateHREF in class IlvImageMapAreaGeneratorview - The manager view.graphic - The graphic object.public void setImageMapFunction(String function)
By default, the function name is select.
function - The new function name.generateHREF(ilog.views.IlvManagerView, ilog.views.IlvGraphic)public String getImageMapFunction()
public String generateALT(IlvManagerView view, IlvGraphic graphic)
imageMapAlt. If this property is not defined,
the following fallbacks are attempted in turn: the name
property, the toolTipText property, and finally
the ID of the object.generateALT in class IlvImageMapAreaGeneratorview - The manager view.graphic - The graphic object.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.