|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.servlet.IlvImageMapAreaGenerator
public class IlvImageMapAreaGenerator
An object used to generate an AREA element of an image map.
The default implementation allows you to generate a rectangular
area corresponding to the bounding box of a graphic object.
No default HREF parameter is generated for an area; you must
overwrite the method 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()).
| Field Summary | |
|---|---|
static int |
CIRCLE_SHAPE
CIRCLE AREA Shape |
static int |
POLYGON_SHAPE
POLYGON AREA Shape |
static int |
RECTANGLE_SHAPE
RECTANGLE AREA Shape |
| Constructor Summary | |
|---|---|
IlvImageMapAreaGenerator()
Creates an Area generator. |
|
| Method Summary | |
|---|---|
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 sub managers, false otherwise. |
void |
setGenerateManagerArea(boolean generateManagerArea)
Specifies whether an area should be generated for sub managers. |
boolean |
shouldGenerate(IlvManagerView view,
IlvGraphic obj,
IlvTransformer t)
This method returns true if an area should be generated
for the specified graphic object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CIRCLE_SHAPE
public static final int RECTANGLE_SHAPE
public static final int POLYGON_SHAPE
| Constructor Detail |
|---|
public IlvImageMapAreaGenerator()
| Method Detail |
|---|
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 sub managers.
Note that this property doesn't affect the generation of the objects of a sub manager but the sub manager itself.
generateManagerArea - true to generate areas for
sub managers, false otherwise.shouldGenerate(IlvManagerView, IlvGraphic, IlvTransformer),
isGenerateManagerArea()public boolean isGenerateManagerArea()
true to generate areas for sub managers, false otherwise.
Note that this property doesn't affect the generation of the objects of a sub manager but the sub manager 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 object
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||