EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class MapSection

java.lang.Object
  extended by echopoint.model.MapSection
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CircleSection, PolygonSection, RectangleSection

public abstract class MapSection
extends Object
implements Serializable

An asbtract base class for model objects that represent the clickable sections in a ImageMap. Concrete sub-classes exist that represent the different types of shapes that are supported by HTML image maps.

Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.

Version:
$Id: MapSection.java 70 2008-10-20 10:02:42Z sptrakesh $
Author:
Rakesh 2008-10-19
See Also:
Serialized Form

Field Summary
protected  String actionCommand
          The action command to associate with this clickable section.
protected  String altText
          The alternate text (title) to associate with the clickable section.
 
Constructor Summary
protected MapSection()
          Default constructor.
protected MapSection(String actionCommand, String altText)
          Create a new instance using the specified action command and title.
 
Method Summary
 boolean equals(Object o)
          Compare the specified object with this instance for equality.
 String getActionCommand()
          Accessor for property 'actionCommand'.
 String getAltText()
          Accessor for property 'altText'.
 int hashCode()
          Compute a hash code for this instance.
 void setActionCommand(String actionCommand)
          Mutator for property 'actionCommand'.
 void setAltText(String altText)
          Mutator for property 'altText'.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionCommand

protected String actionCommand
The action command to associate with this clickable section.


altText

protected String altText
The alternate text (title) to associate with the clickable section.

Constructor Detail

MapSection

protected MapSection()
Default constructor.


MapSection

protected MapSection(String actionCommand,
                     String altText)
Create a new instance using the specified action command and title.

Parameters:
actionCommand - The action command to associated with this section.
altText - The title to associate with this section.
Method Detail

equals

public boolean equals(Object o)
Compare the specified object with this instance for equality.

Overrides:
equals in class Object
Parameters:
o - The object to be compared.
Returns:
Return true if the two objects are equivalent.

hashCode

public int hashCode()
Compute a hash code for this instance.

Overrides:
hashCode in class Object
Returns:
The hash code for this instance.

getActionCommand

public String getActionCommand()
Accessor for property 'actionCommand'.

Returns:
Value for property 'actionCommand'.

setActionCommand

public void setActionCommand(String actionCommand)
Mutator for property 'actionCommand'.

Parameters:
actionCommand - Value to set for property 'actionCommand'.

getAltText

public String getAltText()
Accessor for property 'altText'.

Returns:
Value for property 'altText'.

setAltText

public void setAltText(String altText)
Mutator for property 'altText'.

Parameters:
altText - Value to set for property 'altText'.

EchoPoint API - 3.0.0b5
App Webcontainer