com.esri.core.geometry
Class MultiPoint

java.lang.Object
  extended by com.esri.core.geometry.Geometry
      extended by com.esri.core.geometry.MultiPoint
All Implemented Interfaces:
Serializable

public final class MultiPoint
extends Geometry
implements Serializable

A class for a collection of points

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry
Geometry.Type
 
Field Summary
 
Fields inherited from class com.esri.core.geometry.Geometry
m_description
 
Constructor Summary
MultiPoint()
           
 
Method Summary
protected  Object _getImpl()
           
 void add(double x, double y)
          Adds a Point with the specified x, y coordinates to this multipoint
 void add(double x, double y, double z)
          Adds a Point with the specified x, y, z coordinates to this multipoint
 void add(MultiPoint src, int srcFrom, int srcTo)
          Appends points from another MultiPoint at the end of this one.
 void add(Point point)
          Adds the specified point to this multipoint
 void addAttribute(int semantics)
          Adds a new attribute to the Geometry.
 void copyTo(Geometry dst)
          Copies this geometry to another Geometry of the same type.
 Geometry createInstance()
          Creates instance of empty Geometry with the same VertexDescription.
 void dropAllAttributes()
          Drops all attributes from the Geometry with exception of POSITON.
 void dropAttribute(int semantics)
          Drops an attribute from the Geometry.
 boolean equals(Object other)
           
 VertexDescription getDescription()
          Returns the VertexDescription of this instance.
 int getDimension()
          Returns the Geometry Dimension.
 Point getPoint(int index)
           
 int getPointCount()
           
 Geometry.Type getType()
          Returns the Geometry type.
 int hashCode()
           
 boolean isEmpty()
          Returns True if the Geometry is empty.
 void mergeVertexDescription(VertexDescription src)
          Merges the new VertexDescription by adding missing attributes from the src.
 void queryEnvelope2D(com.esri.core.geometry.Envelope2D env)
          Returns tight bbox of the Geometry in X, Y plane, ignoring Z coordinate.
 void resize(int pointCount)
          Resizes the MultiPoint to have the given size.
 void setEmpty()
          Sets the Geometry as empty.
 void setPoint(int index, Point pointSrc)
           
 
Methods inherited from class com.esri.core.geometry.Geometry
addID, addM, addZ, calculateArea2D, calculateLength2D, hasID, hasM, hasZ, isSegment, queryEnvelope
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPoint

public MultiPoint()
Method Detail

getPoint

public Point getPoint(int index)

getPointCount

public int getPointCount()

_getImpl

protected Object _getImpl()
Overrides:
_getImpl in class Geometry

add

public void add(Point point)
Adds the specified point to this multipoint

Parameters:
point - - the Point to be added to this multipoint

add

public void add(double x,
                double y)
Adds a Point with the specified x, y coordinates to this multipoint

Parameters:
x - - the new Point's X coordinate
y - - the new Point's Y coordinate

add

public void add(double x,
                double y,
                double z)
Adds a Point with the specified x, y, z coordinates to this multipoint

Parameters:
x - - the new Point's X coordinate
y - - the new Point's Y coordinate
z - - the new Point's Z coordinate

add

public void add(MultiPoint src,
                int srcFrom,
                int srcTo)
Appends points from another MultiPoint at the end of this one.

Parameters:
src - The source MultiPoint
srcFrom - The start index in the source multipoint to start appending the points.
srcTo - The end index in the source MultiPoint right after the last point to be appended. Use -1 to indicate the rest of the source mp.

resize

public void resize(int pointCount)
Resizes the MultiPoint to have the given size.

Parameters:
pointCount - - the

setPoint

public void setPoint(int index,
                     Point pointSrc)

copyTo

public void copyTo(Geometry dst)
Description copied from class: Geometry
Copies this geometry to another Geometry of the same type. The result Geometry is exact copy.

Specified by:
copyTo in class Geometry

createInstance

public Geometry createInstance()
Description copied from class: Geometry
Creates instance of empty Geometry with the same VertexDescription.

Specified by:
createInstance in class Geometry

getDimension

public int getDimension()
Description copied from class: Geometry
Returns the Geometry Dimension. (0 for Point and MultiPoint, 1 for curves, 2 for objects that have area, 3 for objects with volume)

Specified by:
getDimension in class Geometry

getType

public Geometry.Type getType()
Description copied from class: Geometry
Returns the Geometry type.

Specified by:
getType in class Geometry

getDescription

public VertexDescription getDescription()
Description copied from class: Geometry
Returns the VertexDescription of this instance.


addAttribute

public void addAttribute(int semantics)
Description copied from class: Geometry
Adds a new attribute to the Geometry.


dropAllAttributes

public void dropAllAttributes()
Description copied from class: Geometry
Drops all attributes from the Geometry with exception of POSITON.


dropAttribute

public void dropAttribute(int semantics)
Description copied from class: Geometry
Drops an attribute from the Geometry. Dropping the attribute is equivalent to setting the attribute to the default value for each vertex, However, it is faster and the result Geometry has smaller memory footprint and smaller size when persisted.


mergeVertexDescription

public void mergeVertexDescription(VertexDescription src)
Description copied from class: Geometry
Merges the new VertexDescription by adding missing attributes from the src. The Geometry will have a union of the current and the src descriptions.


isEmpty

public boolean isEmpty()
Description copied from class: Geometry
Returns True if the Geometry is empty.

Specified by:
isEmpty in class Geometry

queryEnvelope2D

public void queryEnvelope2D(com.esri.core.geometry.Envelope2D env)
Description copied from class: Geometry
Returns tight bbox of the Geometry in X, Y plane, ignoring Z coordinate.


setEmpty

public void setEmpty()
Description copied from class: Geometry
Sets the Geometry as empty.

Specified by:
setEmpty in class Geometry

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010. All Rights Reserved.