com.esri.adf.web.data.geometry
Class WebCircle

java.lang.Object
  extended by com.esri.adf.web.data.geometry.WebGeometry
      extended by com.esri.adf.web.data.geometry.WebCircle
All Implemented Interfaces:
Serializable

Deprecated.

@Deprecated
public class WebCircle
extends WebGeometry

See Also:
Serialized Form

Field Summary
protected  WebPoint center
          Deprecated.  
protected  double radius
          Deprecated.  
 
Fields inherited from class com.esri.adf.web.data.geometry.WebGeometry
spatialReference
 
Constructor Summary
WebCircle()
          Deprecated.  
WebCircle(WebPoint center, double radius)
          Deprecated.  
WebCircle(WebSpatialReference spatialReference)
          Deprecated.  
 
Method Summary
 WebCircle fromMapGeometry(WebMap webMap)
          Deprecated.  Converts a geometry in map coordinates to a geometry of the same type in screen coordinates.
 WebPoint getCenter()
          Deprecated.  
 String getGeometryType()
          Deprecated.  Returns a text representing the type of the geometry.
 double getRadius()
          Deprecated.  
 WebCircle project(WebSpatialReference toSpatialReference)
          Deprecated.  Converts the geometry in map coordinates from the spatialReference of this geometry to a geometry in the desired spatial reference.
 void setCenter(WebPoint center)
          Deprecated.  
 void setRadius(double radius)
          Deprecated.  
 WebCircle toMapGeometry(WebMap webMap)
          Deprecated.  Converts a geometry in screen coordinates to a geometry of the same type in map coordinates.
 String toString()
          Deprecated.  
 
Methods inherited from class com.esri.adf.web.data.geometry.WebGeometry
equals, fromMapGeometry, getSpatialReference, hashCode, setSpatialReference, toMapGeometry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

center

protected WebPoint center
Deprecated. 

radius

protected double radius
Deprecated. 
Constructor Detail

WebCircle

public WebCircle()
Deprecated. 

WebCircle

public WebCircle(WebPoint center,
                 double radius)
Deprecated. 

WebCircle

public WebCircle(WebSpatialReference spatialReference)
Deprecated. 
Method Detail

getCenter

public WebPoint getCenter()
Deprecated. 

setCenter

public void setCenter(WebPoint center)
Deprecated. 

getRadius

public double getRadius()
Deprecated. 

setRadius

public void setRadius(double radius)
Deprecated. 

getGeometryType

public String getGeometryType()
Deprecated. 
Description copied from class: WebGeometry

Returns a text representing the type of the geometry. WebGeometry objects of the same type must return the same text.

Specified by:
getGeometryType in class WebGeometry
Returns:
a text representing the type of the geometry

toMapGeometry

public WebCircle toMapGeometry(WebMap webMap)
Deprecated. 
Description copied from class: 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.

Specified by:
toMapGeometry in class WebGeometry
Parameters:
webMap - The WebMap based on which the coordinates need to be converted
Returns:
the WebGeometry in map coordinates

fromMapGeometry

public WebCircle fromMapGeometry(WebMap webMap)
Deprecated. 
Description copied from class: 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.

Specified by:
fromMapGeometry in class WebGeometry
Parameters:
webMap - The WebMap based on which the coordinates need to be converted
Returns:
the WebGeometry in screen coordinates

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

project

public WebCircle project(WebSpatialReference toSpatialReference)
Deprecated. 
Description copied from class: 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.

Specified by:
project in class WebGeometry
Parameters:
toSpatialReference - the desired spatial reference of the projected geometry
Returns:
the projected WebGeometry