com.esri.core.map
Class GraphicsUtil

java.lang.Object
  extended by com.esri.core.map.GraphicsUtil

public class GraphicsUtil
extends Object

The Class GraphicsUtil.

Since:
1.0

Constructor Summary
GraphicsUtil()
           
 
Method Summary
static Object convertStringFieldValue(String strfieldValue, String fieldname, Field[] fields)
          Convert string field value.
static SpatialReference getSpatialReference(Graphic g)
          Gets the spatial reference.
static void updateFeatureSetGeometryType(FeatureSet fs, Geometry.Type type)
          Update feature set geometry type.
static void updateTextSymbolsText(FeatureSet fset)
          This utility method is to go through all features in the feature set to find if the feature has a TextSymbol but no text being assigned, then try to use feature attribute text property to assign it if the text attribute text is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsUtil

public GraphicsUtil()
Method Detail

getSpatialReference

public static final SpatialReference getSpatialReference(Graphic g)
Gets the spatial reference.

Parameters:
g - the g
Returns:
the spatial reference
Since:
1.0

updateTextSymbolsText

public static final void updateTextSymbolsText(FeatureSet fset)
This utility method is to go through all features in the feature set to find if the feature has a TextSymbol but no text being assigned, then try to use feature attribute text property to assign it if the text attribute text is not null.

Parameters:
fset - a FeatureSet object
Since:
1.0

updateFeatureSetGeometryType

public static final void updateFeatureSetGeometryType(FeatureSet fs,
                                                      Geometry.Type type)
Update feature set geometry type.

Parameters:
fs - the fs
type - the type
Since:
1.0

convertStringFieldValue

public static final Object convertStringFieldValue(String strfieldValue,
                                                   String fieldname,
                                                   Field[] fields)
Convert string field value.

Parameters:
strfieldValue - the strfield value
fieldname - the fieldname
fields - the fields
Returns:
the object
Since:
1.0


Copyright © 2010. All Rights Reserved.