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.

Author:
Doug Cates - www.moximedia.com
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.
 AimsMultipoint project(Projection projection)
          Projects this object to the specified projection.
 AimsMultipoint project(Projection fromProjection, Projection toProjection)
          Projects this object from one projection to another.
 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()
           
 com.vividsolutions.jts.geom.Geometry toJtsGeometry()
           
 java.lang.String toString()
          Returns a text representation of of this object.
 AimsMultipoint unproject(Projection projection)
          Unprojects this object to geographic from the specified projection.
 
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.

project

public AimsMultipoint project(Projection fromProjection,
                              Projection toProjection)
Projects this object from one projection to another.

Parameters:
fromProjection - The projection of this object.
toProjection - The target projection.
Returns:
The projected object.

project

public AimsMultipoint project(Projection projection)
Projects this object to the specified projection. It is assumed that the coordinate system of the original object is geographic.

Parameters:
projection - The original projection system.
Returns:
An object containing the projected coordinates.

unproject

public AimsMultipoint unproject(Projection projection)
Unprojects this object to geographic from the specified projection.

Parameters:
projection - The projection system.
Returns:
An object containing the unprojected coordinates.

toJtsGeometry

public com.vividsolutions.jts.geom.Geometry toJtsGeometry()
Specified by:
toJtsGeometry in interface AimsShapeObject


Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.