public class

FeatureUtil

extends Object
java.lang.Object
   ↳ com.esri.core.map.FeatureUtil

Class Overview

The Class FeatureUtil.

Summary

Public Constructors
FeatureUtil()
Public Methods
static final Map<Integer, Graphic> getGraphicMap(FeatureSet set, String oidFieldName)
Creates a map of Object IDs to their corresponding Graphics
static final Graphic newGraphic(int uid, Geometry geometry, Symbol symbol, Map<String, Object> attributes, int drawOrder)
Created a Graphic with the given UID.
static final Graphic newGraphic(int uid, Geometry geometry, Symbol symbol, Map<String, Object> attributes)
Created a Graphic with the given UID.
static final void updateFeatureSetGeometryType(FeatureSet fs, Geometry.Type type)
Update feature set geometry type.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FeatureUtil ()

Public Methods

public static final Map<Integer, Graphic> getGraphicMap (FeatureSet set, String oidFieldName)

Creates a map of Object IDs to their corresponding Graphics

Parameters
set FeatureSet: The FeatureSet from which to build the map
Returns
Map<Integer, Graphic> The map of object IDs to their corresponding graphics

public static final Graphic newGraphic (int uid, Geometry geometry, Symbol symbol, Map<String, Object> attributes, int drawOrder)

Created a Graphic with the given UID.

Parameters
uid int: the uid of the new Graphic
geometry Geometry: the geometry using by the graphic
symbol Symbol: the symbol to draw the graphic with
attributes Map: the attributes of the graphic
drawOrder int: the draw order of the graphic
Returns
Graphic the new Graphic instance.

public static final Graphic newGraphic (int uid, Geometry geometry, Symbol symbol, Map<String, Object> attributes)

Created a Graphic with the given UID.

Parameters
uid int: the uid of the new Graphic
geometry Geometry: the geometry using by the graphic
symbol Symbol: the symbol to draw the graphic with
attributes Map: the attributes of the graphic
Returns
Graphic the new Graphic instance.

public static final void updateFeatureSetGeometryType (FeatureSet fs, Geometry.Type type)

Update feature set geometry type.

Parameters
fs FeatureSet: the featureset
type Geometry.Type: the type