public class

GraphicsUtil

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

Class Overview

The Class GraphicsUtil.

Summary

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

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

public static final SpatialReference getSpatialReference (Graphic g)

Gets the spatial reference.

Parameters
g the g
Returns
  • 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 a FeatureSet object