|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.data.geometry.WebGeometry
com.esri.adf.web.data.geometry.WebPointCollection
public abstract class WebPointCollection
WebPointCollection is a convenience base class for geometries with multiple
WebPoints such as WebMultiPoint and
WebPath. You can use this as a base class to create geometries representing
multiple points of your own. However, consumers of geometries are discouraged from using this class directly and
should consider using the concrete implementations of this class such as WebMultiPoint and
WebPath.
| Field Summary | |
|---|---|
protected java.util.List<WebPoint> |
points
The List of WebPoints represented by this point collection |
| Fields inherited from class com.esri.adf.web.data.geometry.WebGeometry |
|---|
spatialReference |
| Constructor Summary | |
|---|---|
WebPointCollection(java.util.List<? extends WebPoint> points)
Creates a new WebPointCollection object with the given List of WebPoints. |
|
WebPointCollection(WebSpatialReference spatialReference)
Creates a new WebPointCollection in the given spatial reference. |
|
| Method Summary | |
|---|---|
void |
addPoint(WebPoint point)
Adds a new WebPoint to the List of WebPoints represented by this point collection. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<WebPoint> |
fromMapPoints(WebExtent extent,
int width,
int height)
|
java.util.List<WebPoint> |
fromMapPoints(WebMap webMap)
Converts the List of map points in this collection to a List of screen points. |
java.util.List<WebPoint> |
getPoints()
Returns the List of WebPoints represented by this point collection. |
double[] |
getXs()
Returns an array with horizontal coordinates of all points in the WebPointCollection. |
double[] |
getYs()
Returns an array with vertical coordinates of all points in the WebPointCollection. |
int |
hashCode()
|
protected java.util.List<WebPoint> |
projectPoints(WebSpatialReference toSpatialReference)
Converts the List of map points in this collection from the coordinate system of this geometry to
the given coordinate system. |
java.util.List<WebPoint> |
toMapPoints(WebExtent extent,
int width,
int height)
|
java.util.List<WebPoint> |
toMapPoints(WebMap webMap)
Converts the List of screen points in this collection to a List of map points in the
coordinate system of the given WebMap. |
java.lang.String |
toString()
|
| Methods inherited from class com.esri.adf.web.data.geometry.WebGeometry |
|---|
fromMapGeometry, fromMapGeometry, getGeometryType, getSpatialReference, project, setSpatialReference, toMapGeometry, toMapGeometry |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<WebPoint> points
List of WebPoints represented by this point collection
| Constructor Detail |
|---|
public WebPointCollection(java.util.List<? extends WebPoint> points)
Creates a new WebPointCollection object with the given List of WebPoints. All
points must be in the same spatial reference. The spatial reference of this collection is extracted from the
spatial reference of these points.
points - a List of WebPoints the create this collectionpublic WebPointCollection(WebSpatialReference spatialReference)
Creates a new WebPointCollection in the given spatial reference.
spatialReference - the spatial reference of the WebPointCollection created| Method Detail |
|---|
public java.util.List<WebPoint> getPoints()
Returns the List of WebPoints represented by this point collection.
List of WebPoints represented by this point collectionpublic void addPoint(WebPoint point)
Adds a new WebPoint to the List of WebPoints represented by this point collection.
point - the WebPoint to be added to the List of WebPoints represented by this
point collectionpublic java.util.List<WebPoint> toMapPoints(WebMap webMap)
Converts the List of screen points in this collection to a List of map points in the
coordinate system of the given WebMap. This method is typically used by the sub-classes of this class to
convert the points contained by them.
webMap - The WebMap based on which the coordinates need to be converted
List of points in map coordinates
public java.util.List<WebPoint> toMapPoints(WebExtent extent,
int width,
int height)
public java.util.List<WebPoint> fromMapPoints(WebMap webMap)
Converts the List of map points in this collection to a List of screen points. This
method is typically used by the sub-classes of this class to convert the points contained by them.
webMap - The WebMap based on which the coordinates need to be converted
List of points in screen coordinates
public java.util.List<WebPoint> fromMapPoints(WebExtent extent,
int width,
int height)
protected java.util.List<WebPoint> projectPoints(WebSpatialReference toSpatialReference)
Converts the List of map points in this collection from the coordinate system of this geometry to
the given coordinate system. This method is typically used by the sub-classes of this class to project the points
contained by them.
toSpatialReference - the desired spatial reference of the projected geometry
List of projected pointspublic double[] getXs()
public double[] getYs()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class WebGeometrypublic boolean equals(java.lang.Object obj)
equals in class WebGeometry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||