org.apache.cocoon.faces.samples.components.model
Class ImageArea

java.lang.Object
  extended by org.apache.cocoon.faces.samples.components.model.ImageArea
All Implemented Interfaces:
Serializable

public class ImageArea
extends Object
implements Serializable

ImageArea is a JavaBean that represents a hotspot in an image map. Within a particular image map, no two hotspots may have the same alternate text, because this is treated as a key.

See Also:
Serialized Form

Constructor Summary
ImageArea()
          Construct an uninitialized ImageArea instance.
ImageArea(String alt, String coords, String shape)
          Construct an ImageArea initialized with the specified property values.
 
Method Summary
 String getAlt()
          Return the alternate text for this hotspot.
 String getCoords()
          Return the coordinate positions for this hotspot.
 String getShape()
          Return the shape for this hotspot.
 void setAlt(String alt)
          Set the alternate text for this hotspot.
 void setCoords(String coords)
          Set the coordinate positions for this hotspot.
 void setShape(String shape)
          Set the shape for this hotspot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageArea

public ImageArea()

Construct an uninitialized ImageArea instance.


ImageArea

public ImageArea(String alt,
                 String coords,
                 String shape)

Construct an ImageArea initialized with the specified property values.

Parameters:
alt - Alternate text for this hotspot
coords - Coordinate positions for this hotspot
shape - Shape of this hotspot (default, rect, circle, poly)
Method Detail

getAlt

public String getAlt()

Return the alternate text for this hotspot.


setAlt

public void setAlt(String alt)

Set the alternate text for this hotspot.

Parameters:
alt - The new alternate text

getCoords

public String getCoords()

Return the coordinate positions for this hotspot.


setCoords

public void setCoords(String coords)

Set the coordinate positions for this hotspot.

Parameters:
coords - The new coordinate positions

getShape

public String getShape()

Return the shape for this hotspot.


setShape

public void setShape(String shape)

Set the shape for this hotspot.

Parameters:
shape - The new shape


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.