public class IlvImageMapAreaGenerator extends Object
generateHREF
to generate
an HREF parameter.
When an "image map" request is sent to the IlvManagerServlet
,
an area will be generated for a graphic object if the following conditions
are true:
layer.setProperty(IlvManagerServlet.ImageMapAreaGeneratorProperty, Boolean.TRUE)
.
obj.setProperty(IlvManagerServlet.ImageMapAreaGeneratorProperty, new IlvImageMapAreaGenerator())
.
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLE_SHAPE
CIRCLE AREA Shape
|
static int |
POLYGON_SHAPE
POLYGON AREA Shape
|
static int |
RECTANGLE_SHAPE
RECTANGLE AREA Shape
|
Constructor and Description |
---|
IlvImageMapAreaGenerator()
Creates an Area generator.
|
Modifier and Type | Method and Description |
---|---|
String |
generateALT(IlvManagerView view,
IlvGraphic obj)
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 obj)
This method returns the HREF attribute of the area
for the specified graphic object.
|
String |
generateONMOUSEOUT(IlvManagerView view,
IlvGraphic obj)
This method returns the ONMOUSEOUT attribute of the area
for the specified graphic object.
|
String |
generateONMOUSEOVER(IlvManagerView view,
IlvGraphic obj)
This method returns the ONMOUSEOVER attribute of the area
for the specified graphic object.
|
String |
generateTARGET(IlvManagerView view,
IlvGraphic obj)
This method returns the TARGET attribute of the area
for the specified graphic object.
|
int |
getShape(IlvManagerView view,
IlvGraphic obj,
IlvTransformer t)
This method returns the shape of the area
for the specified graphic object.
|
boolean |
isGenerateManagerArea()
Returns
true to generate areas for submanagers, false otherwise. |
void |
setGenerateManagerArea(boolean generateManagerArea)
Specifies whether an area should be generated for submanagers.
|
boolean |
shouldGenerate(IlvManagerView view,
IlvGraphic obj,
IlvTransformer t)
This method returns
true if an area should be generated
for the specified graphic object. |
public static final int CIRCLE_SHAPE
public static final int RECTANGLE_SHAPE
public static final int POLYGON_SHAPE
public IlvImageMapAreaGenerator()
public boolean shouldGenerate(IlvManagerView view, IlvGraphic obj, IlvTransformer t)
This method returns true
if an area should be generated
for the specified graphic object. The default implementation returns a value that
depends on the graphic object type:
IlvManager
instance, this methods returns true
.IlvManager
instance and this manager is collapsed,
this method returns true
.IlvManager
instance and this manager is not collapsed,
this method returns the result of isGenerateManagerArea()
.public void setGenerateManagerArea(boolean generateManagerArea)
Specifies whether an area should be generated for submanagers.
Note that this property doesn't affect the generation of the objects of a submanager but the submanager itself.
generateManagerArea
- true
to generate areas for
submanagers, false
otherwise.shouldGenerate(IlvManagerView, IlvGraphic, IlvTransformer)
,
isGenerateManagerArea()
public boolean isGenerateManagerArea()
true
to generate areas for submanagers, false
otherwise.
Note that this property doesn't affect the generation of the objects of a submanager but the submanager itself.
shouldGenerate(IlvManagerView, IlvGraphic, IlvTransformer)
,
setGenerateManagerArea(boolean)
public int getShape(IlvManagerView view, IlvGraphic obj, IlvTransformer t)
public String generateCOORDS(IlvManagerView view, IlvGraphic obj, IlvRect bounds, IlvTransformer t)
view
- The manager viewobj
- The graphic objectbounds
- The bounds of the view, in view coordinatest
- The transformer to draw the objectpublic String generateHREF(IlvManagerView view, IlvGraphic obj)
null
.public String generateALT(IlvManagerView view, IlvGraphic obj)
public String generateTARGET(IlvManagerView view, IlvGraphic obj)
public String generateONMOUSEOVER(IlvManagerView view, IlvGraphic obj)
public String generateONMOUSEOUT(IlvManagerView view, IlvGraphic obj)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.