|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.edit.util.EditWebUtil
public class EditWebUtil
A helper class for ADF related functions.
Constructor Summary | |
---|---|
EditWebUtil()
|
Method Summary | |
---|---|
static com.esri.arcgis.carto.IMap |
getIMap(AGSLocalMapResource resource)
Gets IMap from a given resource. |
static AGSLocalMapResource |
getLocalMapResource(String resourceID,
WebContext wContext)
Retrieves the AGSLocalMapResource from the web context. |
static void |
logSevereMessage(String message,
Throwable e)
Logs severe message to log system. |
static void |
showVertices(com.esri.arcgis.geodatabase.IFeature feature,
WebGraphics graphic,
WebSimpleMarkerSymbol sms,
WebSpatialReference webref,
List<GraphicElement> stock,
com.esri.arcgis.server.IServerContext ctx)
Shows vertices of the selected features. |
static com.esri.arcgis.geometry.IEnvelope |
toEnvelope(com.esri.arcgisws.EnvelopeN ext,
com.esri.arcgis.server.IServerContext ctx)
Converts the WebExtent to an Envelope. |
static com.esri.arcgis.geometry.IEnvelope |
toEnvelope(WebExtent ext,
com.esri.arcgis.server.IServerContext ctx)
Converts the WebExtent to an Envelope. |
static com.esri.arcgis.geometry.IGeometry |
toIGeometry(WebPoint pt,
com.esri.arcgis.server.IServerContext ctx)
Converts a web point to IGeometry. |
static com.esri.arcgis.geometry.IGeometry |
toIGeometry(WebPolygon wPolygon,
com.esri.arcgis.server.IServerContext ctx)
Converts a web polygon to an IGeometry. |
static com.esri.arcgis.geometry.IGeometry |
toIGeometry(WebPolyline wLine,
com.esri.arcgis.server.IServerContext ctx)
Converts a web line to an IGeometry. |
static com.esri.arcgis.geometry.ILine |
toILine(WebPolyline wline,
com.esri.arcgis.server.IServerContext ctx)
Converts a ILine from a web line. |
static com.esri.arcgis.geometry.ISpatialReference |
toISpatialReference(com.esri.arcgisws.SpatialReference sref,
com.esri.arcgis.server.IServerContext ctx)
Converts WebSpatialReference to ISpatialReference. |
static com.esri.arcgis.geometry.ISpatialReference |
toISpatialReference(WebSpatialReference ref,
com.esri.arcgis.server.IServerContext ctx)
Converts WebSpatialReference to ISpatialReference. |
static String |
toLocalMessage(String message)
Converts the message to a localized message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditWebUtil()
Method Detail |
---|
public static com.esri.arcgis.geometry.IEnvelope toEnvelope(WebExtent ext, com.esri.arcgis.server.IServerContext ctx) throws Exception
ctx
- set to null to use ArcObject.
Exception
public static com.esri.arcgis.geometry.ISpatialReference toISpatialReference(WebSpatialReference ref, com.esri.arcgis.server.IServerContext ctx)
ref
- the WebSpatialReference to convert
public static com.esri.arcgis.geometry.IGeometry toIGeometry(WebPolygon wPolygon, com.esri.arcgis.server.IServerContext ctx) throws Exception
wPolygon
- the polygon to convert
Exception
public static com.esri.arcgis.geometry.ILine toILine(WebPolyline wline, com.esri.arcgis.server.IServerContext ctx) throws Exception
ctx
- current resourcewline
- source
Exception
public static com.esri.arcgis.geometry.IGeometry toIGeometry(WebPolyline wLine, com.esri.arcgis.server.IServerContext ctx) throws Exception
wLine
- the line to convert.
Exception
public static com.esri.arcgis.geometry.IGeometry toIGeometry(WebPoint pt, com.esri.arcgis.server.IServerContext ctx) throws Exception
pt
- the point to convert
Exception
public static void showVertices(com.esri.arcgis.geodatabase.IFeature feature, WebGraphics graphic, WebSimpleMarkerSymbol sms, WebSpatialReference webref, List<GraphicElement> stock, com.esri.arcgis.server.IServerContext ctx) throws Exception
feature
- the selected feature.graphic
- web graphics to draw on.sms
- the marker symbol.webref
- the target spatial reference.stock
- the created vertices points.
Exception
public static com.esri.arcgis.geometry.IEnvelope toEnvelope(com.esri.arcgisws.EnvelopeN ext, com.esri.arcgis.server.IServerContext ctx) throws Exception
ctx
- set to null to use ArcObject.
Exception
public static com.esri.arcgis.geometry.ISpatialReference toISpatialReference(com.esri.arcgisws.SpatialReference sref, com.esri.arcgis.server.IServerContext ctx)
sref
- the WebSpatialReference to convertctx
-
public static void logSevereMessage(String message, Throwable e)
public static String toLocalMessage(String message)
message
-
public static AGSLocalMapResource getLocalMapResource(String resourceID, WebContext wContext)
resourceID
- the resource id, or null.wContext
- the current web context.
public static com.esri.arcgis.carto.IMap getIMap(AGSLocalMapResource resource) throws com.esri.arcgis.interop.AutomationException, IOException
resource
- the map resource.
com.esri.arcgis.interop.AutomationException
- If the ArcObject component throws an exception.
IOException
- If there are interop problems.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |