public class IltFacesImageMapAreaGenerator extends IlvImageMapAreaGenerator
AREA element for an image
map based on the graphic base of a representation object. The default
behavior is to display a ToolTip for the object.
Note: This implementation does not support the mapping of graphic decorations in a representation object.
CIRCLE_SHAPE, POLYGON_SHAPE, RECTANGLE_SHAPE| Constructor and Description |
|---|
IltFacesImageMapAreaGenerator()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateALT(IlvManagerView view,
IlvGraphic object)
Returns the
ALT attribute of this area for a specified
graphic object. |
String |
generateCOORDS(IlvManagerView view,
IlvGraphic graphic,
IlvRect bounds,
IlvTransformer viewTransformer)
Returns the coordinates of the
AREA mapped to the base
of a given graphic object. |
protected IlpRepresentationObject |
getRepresentationObject(IlvGraphic object)
Accesses the representation object, that is, an
IlpRepresentationObject instance from a given graphic
object in a manager view. |
int |
getShape(IlvManagerView view,
IlvGraphic graphic,
IlvTransformer viewTrasnformer)
Returns the shape of the area for the graphic object specified.
|
generateHREF, generateONMOUSEOUT, generateONMOUSEOVER, generateTARGET, isGenerateManagerArea, setGenerateManagerArea, shouldGeneratepublic IltFacesImageMapAreaGenerator()
The generateManagerArea property is set to
true by default on JViews TGO Faces.
public int getShape(IlvManagerView view, IlvGraphic graphic, IlvTransformer viewTrasnformer)
IlvImageMapAreaGenerator.POLYGON_SHAPE instance for links and polygroupsIlvImageMapAreaGenerator.RECTANGLE_SHAPE instance for other nodesgetShape in class IlvImageMapAreaGeneratorview - The manager view containing the objectsgraphic - The graphic object being processedviewTrasnformer - The current view transformergraphic.public String generateCOORDS(IlvManagerView view, IlvGraphic graphic, IlvRect bounds, IlvTransformer viewTransformer)
AREA mapped to the base
of a given graphic object. This area corresponds to a representation
object in the underlying graph view.generateCOORDS in class IlvImageMapAreaGeneratorview - The manager view containing the objects.graphic - The graphic object being processed.bounds - The bounding area of the view.viewTransformer - The current view transformer.AREA mapped to the base
of a given graphic object.public String generateALT(IlvManagerView view, IlvGraphic object)
ALT attribute of this area for a specified
graphic object. This default implementation tries to retrieve the
IlpObjectKeys.ToolTipString CSS property of
object.generateALT in class IlvImageMapAreaGeneratorview - The manager view containing the objects.object - The graphic object to be processed.ALT attribute of this area for a specified
graphic object.protected IlpRepresentationObject getRepresentationObject(IlvGraphic object)
IlpRepresentationObject instance from a given graphic
object in a manager view.object - The IlvGraphic instance corresponding to the
representation object.object is not mapped to
an IlpRepresentationObject instance, null
is returned.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.