EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class CircleSection

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

public class CircleSection
extends MapSection

A model object that represents a circular clickable section in a ImageMap.

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

Version:
$Id: CircleSection.java 72 2008-10-21 02:51:23Z sptrakesh $
Author:
Rakesh 2008-10-19
See Also:
Serialized Form

Field Summary
 
Fields inherited from class echopoint.model.MapSection
actionCommand, altText
 
Constructor Summary
CircleSection()
          Default constructor.
CircleSection(int x, int y, int radius, String... values)
          Create a new instance using the specified values.
CircleSection(Point centre, int radius, String... values)
          Designated constructor.
 
Method Summary
 boolean equals(Object o)
          Compare the specified object with this instance for equality.
 Point getCentre()
          Accessor for property 'centre'.
 int getRadius()
          Accessor for property 'radius'.
 int hashCode()
          Compute a hash code for this instance.
 void setCentre(Point centre)
          Mutator for property 'centre'.
 void setRadius(int radius)
          Mutator for property 'radius'.
 
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

CircleSection

public CircleSection()
Default constructor.


CircleSection

public CircleSection(int x,
                     int y,
                     int radius,
                     String... values)
Create a new instance using the specified values.

Parameters:
x - The x-coordinate of the centroid of the circular section.
y - The y-coordinate of the centroid of the circular section.
radius - The radius of the circular section.
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.

CircleSection

public CircleSection(Point centre,
                     int radius,
                     String... values)
Designated constructor. Create a new circular section using the specified values.

Parameters:
centre - The point that represents the centroid of the circle.
radius - The radius of the circular section.
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.
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 that is to be compared.
Returns:
Return true if the specified object is equivalent.

hashCode

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

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

getCentre

public Point getCentre()
Accessor for property 'centre'.

Returns:
Value for property 'centre'.

setCentre

public void setCentre(Point centre)
Mutator for property 'centre'.

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

getRadius

public int getRadius()
Accessor for property 'radius'.

Returns:
Value for property 'radius'.

setRadius

public void setRadius(int radius)
Mutator for property 'radius'.

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

EchoPoint API - 3.0.0b5
App Webcontainer