public class

GraphicsUtil

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

Class Overview

The Class GraphicsUtil.

Summary

Public Constructors
GraphicsUtil()
Public Methods
static final int abgrToColor(int color)
Convert an Color integer in ABGR to ARGB format.
static final int colorToAbgr(int color)
Convert an Color integer in ARGB to ABGR format.
static final Object convertStringFieldValue(String strfieldValue, String fieldname, Field[] fields)
Convert string field value.
static final SpatialReference getSpatialReference(Graphic g)
Gets the spatial reference.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GraphicsUtil ()

Public Methods

public static final int abgrToColor (int color)

Convert an Color integer in ABGR to ARGB format.

Parameters
color int: a color in integer in ARGB format
Returns
int a color in integer in ARGB format.

public static final int colorToAbgr (int color)

Convert an Color integer in ARGB to ABGR format.

Parameters
color int: a color in integer in ARGB format
Returns
int a color in integer in ABGR format.

public static final Object convertStringFieldValue (String strfieldValue, String fieldname, Field[] fields)

Convert string field value.

Parameters
strfieldValue String: the strfield value
fieldname String: the fieldname
fields Field: the fields
Returns
Object the object

public static final SpatialReference getSpatialReference (Graphic g)

Gets the spatial reference.

Parameters
g Graphic: the g
Returns
SpatialReference the spatial reference

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 FeatureSet: a FeatureSet object