Packagecom.esri.ags.utils
Classpublic class GraphicUtil

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. You do not create instances of GraphicUtil; instead you call methods such as the GraphicUtil.getGraphicsExtent() method.

See also

com.esri.ags.Graphic


Public Methods
 MethodDefined by
  
getGraphicsExtent(graphics:Array):Extent
[static] Returns the extent of all the graphics in the argument array.
GraphicUtil
Method detail
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.

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

See also