|
|||||||||
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
WebPoint
s 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 List<WebPoint> |
points
The List of WebPoint s represented by this point collection |
Fields inherited from class com.esri.adf.web.data.geometry.WebGeometry |
---|
spatialReference |
Constructor Summary | |
---|---|
WebPointCollection(List<? extends WebPoint> points)
Creates a new WebPointCollection object with the given List of WebPoint s. |
|
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 WebPoint s represented by this point collection. |
boolean |
equals(Object obj)
|
List<WebPoint> |
fromMapPoints(WebExtent extent,
int width,
int height)
|
List<WebPoint> |
fromMapPoints(WebMap webMap)
Converts the List of map points in this collection to a List of screen points. |
List<WebPoint> |
getPoints()
Returns the List of WebPoint s 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 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. |
List<WebPoint> |
toMapPoints(WebExtent extent,
int width,
int height)
|
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 . |
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 List<WebPoint> points
List
of WebPoint
s represented by this point collection
Constructor Detail |
---|
public WebPointCollection(List<? extends WebPoint> points)
Creates a new WebPointCollection
object with the given List
of WebPoint
s. 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 WebPoint
s the create this collectionpublic WebPointCollection(WebSpatialReference spatialReference)
Creates a new WebPointCollection
in the given spatial reference.
spatialReference
- the spatial reference of the WebPointCollection
createdMethod Detail |
---|
public List<WebPoint> getPoints()
Returns the List
of WebPoint
s represented by this point collection.
List
of WebPoint
s represented by this point collectionpublic void addPoint(WebPoint point)
Adds a new WebPoint
to the List
of WebPoint
s represented by this point collection.
point
- the WebPoint
to be added to the List
of WebPoint
s represented by this
point collectionpublic 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 coordinatespublic List<WebPoint> toMapPoints(WebExtent extent, int width, int height)
public 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 coordinatespublic List<WebPoint> fromMapPoints(WebExtent extent, int width, int height)
protected 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 String toString()
toString
in class Object
public int hashCode()
hashCode
in class WebGeometry
public boolean equals(Object obj)
equals
in class WebGeometry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |