EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class RectangleSection

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

public class RectangleSection
extends MapSection

A model object that represents a rectangular clickable section on an ImageMap.

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

Version:
$Id: RectangleSection.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
RectangleSection()
          Default constructor.
RectangleSection(int bottomx, int bottomy, int topx, int topy, String... values)
          Create a new instance using the specified values.
RectangleSection(Point bottom, Point top, String... values)
          Designated constructor.
 
Method Summary
 boolean equals(Object o)
          Compare the specified object with this instance for equality.
 Point getBottom()
          Accessor for property 'bottom'.
 Point getTop()
          Accessor for property 'top'.
 int hashCode()
          Compute a hash code for this instance.
 void setBottom(Point bottom)
          Mutator for property 'bottom'.
 void setTop(Point top)
          Mutator for property 'top'.
 
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

RectangleSection

public RectangleSection()
Default constructor.


RectangleSection

public RectangleSection(int bottomx,
                        int bottomy,
                        int topx,
                        int topy,
                        String... values)
Create a new instance using the specified values.

Parameters:
bottomx - The x-coordinate of the origin of the rectangle.
bottomy - The y-coordinate of the origin of the rectangle.
topx - The x-coordinate of the end of the rectangle.
topy - The y-coordinate of the end of the rectangle.
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.

RectangleSection

public RectangleSection(Point bottom,
                        Point top,
                        String... values)
Designated constructor. Create a new instance with the specified values.

Parameters:
bottom - The bottom corner of the rectangle.
top - The top corner of the rectangle.
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 to be compared.
Returns:
Return true if the two objects are equivalent.

hashCode

public int hashCode()
Description copied from class: MapSection
Compute a hash code for this instance.

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

getBottom

public Point getBottom()
Accessor for property 'bottom'.

Returns:
Value for property 'bottom'.

setBottom

public void setBottom(Point bottom)
Mutator for property 'bottom'.

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

getTop

public Point getTop()
Accessor for property 'top'.

Returns:
Value for property 'top'.

setTop

public void setTop(Point top)
Mutator for property 'top'.

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

EchoPoint API - 3.0.0b5
App Webcontainer