Packagecom.esri.ags.utils
Classpublic class GraphicUtil
InheritanceGraphicUtil Inheritance Object

The GraphicUtil utility class is an all-static class with methods for working with Graphic objects, for example getGraphicsExtent() which will return the unioned extent for an array of graphics and getGeometries() which will extract the array of geometries for a array of graphics. You shouldn't create instances of GraphicUtil; instead call methods such as the GraphicUtil.getGraphicsExtent() method.

See also

com.esri.ags.Graphic


Public Methods
 MethodDefined By
  
getGeometries(graphics:Array):Array
[static] Extracts array of geometries from array of graphics [added in version 2.0].
GraphicUtil
  
getGraphicsExtent(graphics:Array):Extent
[static] Returns the extent of all the graphics in the argument array.
GraphicUtil
Method Detail
getGeometries()method
public static function getGeometries(graphics:Array):Array

Since : ArcGIS API for Flex 2.0

Extracts array of geometries from array of graphics [added in version 2.0].

Parameters

graphics:Array — The array of Graphic objects to get geometries from.

Returns
Array — geometries The array of Geometry objects.

See also

getGraphicsExtent()method 
public static function getGraphicsExtent(graphics:Array):Extent

Returns the extent of all the graphics in the argument array. If the width and height of the resultant extent is 0, null is returned.

Parameters

graphics:Array — The array of Graphic objects to calculate extent for.

Returns
Extent — The unioned extent of all the input graphics.

See also