|
|||||||||
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
com.esri.adf.web.data.geometry.WebPath
public class WebPath
WebPath
is a class used for representing a several connected segments of a WebPolyline
.
WebPath
holds a list of WebPoint
s.
Field Summary |
---|
Fields inherited from class com.esri.adf.web.data.geometry.WebPointCollection |
---|
points |
Fields inherited from class com.esri.adf.web.data.geometry.WebGeometry |
---|
spatialReference |
Constructor Summary | |
---|---|
WebPath()
Constructs an empty WebPath with null for spatial reference. |
|
WebPath(List<? extends WebPoint> points)
Constructs a WebPath using the |
|
WebPath(WebSpatialReference spatialReference)
Constructs an empty WebPath with the given WebSpatialReference . |
Method Summary | |
---|---|
WebPath |
fromMapGeometry(WebExtent extent,
int width,
int height)
Converts a geometry in map coordinates to a geometry of the same type in screen coordinates. |
WebPath |
fromMapGeometry(WebMap webMap)
Converts a geometry in map coordinates to a geometry of the same type in screen coordinates. |
String |
getGeometryType()
Returns a text representing the type of the geometry. |
WebPath |
project(WebSpatialReference toSpatialReference)
Converts the geometry in map coordinates from the spatialReference of this geometry to a geometry in
the desired spatial reference. |
WebPath |
toMapGeometry(WebExtent extent,
int width,
int height)
Converts a geometry in screen coordinates to a geometry of the same type in map coordinates. |
WebPath |
toMapGeometry(WebMap webMap)
Converts a geometry in screen coordinates to a geometry of the same type in map coordinates. |
Methods inherited from class com.esri.adf.web.data.geometry.WebPointCollection |
---|
addPoint, equals, fromMapPoints, fromMapPoints, getPoints, getXs, getYs, hashCode, projectPoints, toMapPoints, toMapPoints, toString |
Methods inherited from class com.esri.adf.web.data.geometry.WebGeometry |
---|
getSpatialReference, setSpatialReference |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebPath(List<? extends WebPoint> points)
WebPath
using the
points
- a list of WebPoint
spublic WebPath(WebSpatialReference spatialReference)
WebPath
with the given WebSpatialReference
.
spatialReference
- a spatial reference to be usedpublic WebPath()
WebPath
with null
for spatial reference.
Method Detail |
---|
public String getGeometryType()
WebGeometry
Returns a text representing the type of the geometry. WebGeometry
objects of the same type must return
the same text.
getGeometryType
in class WebGeometry
public WebPath toMapGeometry(WebMap webMap)
WebGeometry
Converts a geometry in screen coordinates to a geometry of the same type in map coordinates. The coordinate system
of the converted geometry is the same as the coordinate system of the WebMap
.
toMapGeometry
in class WebGeometry
webMap
- The WebMap
based on which the coordinates need to be converted
WebGeometry
in map coordinatespublic WebPath toMapGeometry(WebExtent extent, int width, int height)
WebGeometry
Converts a geometry in screen coordinates to a geometry of the same type in map coordinates. The coordinate system of the converted geometry is the same as the coordinate system of the specified extent.
toMapGeometry
in class WebGeometry
extent
- the WebExtent
of the map imagewidth
- the width of the map imageheight
- the height of the map image
WebGeometry
in map coordinatespublic WebPath fromMapGeometry(WebMap webMap)
WebGeometry
Converts a geometry in map coordinates to a geometry of the same type in screen coordinates. Since the converted
geometry is a screen geometry, the coordinate system of the converted geometry will be null
.
fromMapGeometry
in class WebGeometry
webMap
- The WebMap
based on which the coordinates need to be converted
WebGeometry
in screen coordinatespublic WebPath fromMapGeometry(WebExtent extent, int width, int height)
WebGeometry
Converts a geometry in map coordinates to a geometry of the same type in screen coordinates. Since the converted
geometry is a screen geometry, the coordinate system of the converted geometry will be null
.
fromMapGeometry
in class WebGeometry
extent
- the WebExtent
of the map imagewidth
- the width of the map imageheight
- the height of the map image
WebGeometry
in screen coordinatespublic WebPath project(WebSpatialReference toSpatialReference)
WebGeometry
Converts the geometry in map coordinates from the spatialReference
of this geometry to a geometry in
the desired spatial reference. If the desired spatial reference is same as that of this geometry, this same
geometry is returned. Otherwise, a new WebGeometry
object is created and populated with the converted
coordinates. The type of the projected geometry is same as this geometry.
project
in class WebGeometry
toSpatialReference
- the desired spatial reference of the projected geometry
WebGeometry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |