com.moximedia.aims
Class AimsMultipoint

java.lang.Object
  extended bycom.moximedia.aims.AimsMultipoint
All Implemented Interfaces:
AimsShapeObject, java.io.Serializable

public class AimsMultipoint
extends java.lang.Object
implements AimsShapeObject, java.io.Serializable

Implementation of an ArcIMS multipoint object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.moximedia.aims.AimsShapeObject
SHAPE_TYPE_ENVELOPE, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE
 
Constructor Summary
AimsMultipoint()
          Creates a new point object with no arguments.
AimsMultipoint(AimsPoints pts)
          Creates a new polyline object with an AimsPoints object.
 
Method Summary
 void addPoint(AimsPoint pt)
          Adds a point to the points object.
 java.lang.Object clone()
           
 AimsEnvelope getExtent()
          Returns the extent of the polygon, or null if the polygon has no points.
 AimsPoints getPoints()
          Gets the points of the multipoint object.
 int getShapeType()
           
 boolean isValid()
          Returns a boolean indicator of whether this shape is valid.
 void setPoints(AimsPoints pts)
          Sets the points of the multipoint object.
 java.lang.String toAxlString()
          Returns the AXL string to refresh this object.
 java.lang.String toAxlString(AimsEnvironment env)
          Returns the AXL string to refresh this object.
 java.lang.String toGmlString()
           
 java.lang.String toString()
          Returns a text representation of of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AimsMultipoint

public AimsMultipoint()
Creates a new point object with no arguments.


AimsMultipoint

public AimsMultipoint(AimsPoints pts)
Creates a new polyline object with an AimsPoints object.

Method Detail

getShapeType

public int getShapeType()
Specified by:
getShapeType in interface AimsShapeObject

getPoints

public AimsPoints getPoints()
Gets the points of the multipoint object.

Returns:
points An AimsPoints object containing the multipoint points.

setPoints

public void setPoints(AimsPoints pts)
Sets the points of the multipoint object.


addPoint

public void addPoint(AimsPoint pt)
Adds a point to the points object.

Parameters:
pt - A point to add to the points collection.

getExtent

public AimsEnvelope getExtent()
Returns the extent of the polygon, or null if the polygon has no points.

Returns:
An AimsEnvelope containing the extent.

toString

public java.lang.String toString()
Returns a text representation of of this object.

Returns:
A string describing the object

toAxlString

public java.lang.String toAxlString()
Returns the AXL string to refresh this object. This method is not typically used by the application programmer.

Specified by:
toAxlString in interface AimsShapeObject
Returns:
The AXL string to refresh this object.

toAxlString

public java.lang.String toAxlString(AimsEnvironment env)
Returns the AXL string to refresh this object. This method is not typically used by the application programmer.

Specified by:
toAxlString in interface AimsShapeObject
Returns:
The AXL string to refresh this object.

clone

public java.lang.Object clone()
Specified by:
clone in interface AimsShapeObject

toGmlString

public java.lang.String toGmlString()
Specified by:
toGmlString in interface AimsShapeObject

isValid

public boolean isValid()
Returns a boolean indicator of whether this shape is valid.

Specified by:
isValid in interface AimsShapeObject
Returns:
True if the shape is valid, otherwise false.