EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class PolygonSection

java.lang.Object
  extended by echopoint.model.MapSection
      extended by echopoint.model.PolygonSection
All Implemented Interfaces:
Serializable

public class PolygonSection
extends MapSection

A model object that represents a clickable polygon section in an ImageMap.

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

Version:
$Id: PolygonSection.java 86 2008-11-09 14:44:29Z sptrakesh $
Author:
Rakesh 2008-10-19
See Also:
Serialized Form

Field Summary
 
Fields inherited from class echopoint.model.MapSection
actionCommand, altText
 
Constructor Summary
PolygonSection()
          Default constructor.
PolygonSection(Collection<Point> vertices, String... values)
           
PolygonSection(int[] vertices, String... values)
          Create a new instance using the specified values.
PolygonSection(String... values)
          Create a new instance using the specified values.
 
Method Summary
 boolean equals(Object o)
          Compare the specified object with this instance for equality.
 Collection<Point> getVertices()
          Accessor for property 'vertices'.
 int hashCode()
          Compute a hash code for this instance.
 void setVertices(Collection<Point> vertices)
          Mutator for property 'vertices'.
 
Methods inherited from class echopoint.model.MapSection
getActionCommand, getAltText, setActionCommand, setAltText
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonSection

public PolygonSection()
Default constructor.


PolygonSection

public PolygonSection(String... values)
Create a new instance using the specified values.

Parameters:
values - The MapSection.actionCommand and MapSection.altText values. Note that unless MapSection.actionCommand is specified the section will not be saved in the image map.

PolygonSection

public PolygonSection(int[] vertices,
                      String... values)
Create a new instance using the specified values.

Parameters:
vertices - The array of vertices that represent the polygon. Note that each vertex is represented by a pair of integer values.
values - Optionally the MapSection.actionCommand and MapSection.altText values. Note that unless MapSection.actionCommand is specified the section will not be saved in the image map.

PolygonSection

public PolygonSection(Collection<Point> vertices,
                      String... values)
Method Detail

equals

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

Overrides:
equals in class MapSection
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 MapSection
Returns:
The hash code for this instance.

getVertices

public Collection<Point> getVertices()
Accessor for property 'vertices'.

Returns:
Value for property 'vertices'.

setVertices

public void setVertices(Collection<Point> vertices)
Mutator for property 'vertices'.

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

EchoPoint API - 3.0.0b5
App Webcontainer