Packagecom.degrafa
Classpublic class GeometryGroup
InheritanceGeometryGroup Inheritance Graphic Inheritance flash.display.Sprite
ImplementsIGeometry, IGraphic

GeometryGroup is where composition is achieved for all Degrafa objects that render to a graphics context. Nested GeometryGroups can be added each of which may contain IGraphic or IGeometry type objects. GeometryGroup is the principle building block for compositing.

Default MXML Propertygeometry



Public Properties
 PropertyDefined by
  data : String
GeometryGroup
 Inheriteddocument : Object
The MXML document that created this object.
Graphic
 InheritedenableEvents : Boolean
Enable events for this object.
Graphic
 Inheritedfill : IGraphicsFill
Defines the fill object that will be used for rendering this graphic object.
Graphic
 InheritedfillCollection : FillCollection
Access to the Degrafa fill collection object for this graphic object.
Graphic
 Inheritedfills : Array
A array of IGraphicsFill objects.
Graphic
  geometry : Array
A array of IGeometry objects.
GeometryGroup
  geometryCollection : GeometryCollection
[read-only] Access to the Degrafa geometry collection object for this graphic object.
GeometryGroup
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
Graphic
 Inheritedheight : Number
Number that specifies the height, in pixels, in the target's coordinates.
Graphic
 Inheritedid : String
The identifier used by document to refer to this object.
Graphic
 InheritedmeasuredHeight : Number
The default height, in pixels.
Graphic
 InheritedmeasuredWidth : Number
The default width, in pixels.
Graphic
 InheritedpercentHeight : Number
Number that specifies the height as a percentage of the target.
Graphic
 InheritedpercentWidth : Number
Number that specifies the width as a percentage of the target.
Graphic
 Inheritedstroke : IGraphicsStroke
Defines the stroke object that will be used for rendering this graphic object.
Graphic
 InheritedstrokeCollection : StrokeCollection
Access to the Degrafa stroke collection object for this graphic object.
Graphic
 Inheritedstrokes : Array
A array of IStroke objects.
Graphic
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
Graphic
 Inheritedtarget : DisplayObjectContainer
A target DisplayObjectContainer that this graphic object should be added or drawn to.
Graphic
 Inheritedwidth : Number
Number that specifies the width, in pixels, in the target's coordinates.
Graphic
 Inheritedx : Number
Number that specifies the horizontal position, in pixels, within the target.
Graphic
 Inheritedy : Number
Number that specifies the vertical position, in pixels, within the target.
Graphic
Public Methods
 MethodDefined by
  
GeometryGroup
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
Graphic
 Inherited
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
Graphic
  
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for graphic objects.
GeometryGroup
 Inherited
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
Graphic
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
Graphic
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
Graphic
Events
 EventSummaryDefined by
 Inherited  Graphic
 Inherited  Graphic
Property detail
dataproperty
data:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get data():String
    public function set data(value:String):void
geometryproperty 
geometry:Array  [read-write]

A array of IGeometry objects. Objects of type GraphicText, GraphicImage and GeometryGroup are added to the target display list.

This property can be used as the source for data binding.

Implementation
    public function get geometry():Array
    public function set geometry(value:Array):void
geometryCollectionproperty 
geometryCollection:GeometryCollection  [read-only]

Access to the Degrafa geometry collection object for this graphic object.

This property can be used as the source for data binding.

Implementation
    public function get geometryCollection():GeometryCollection
Constructor detail
GeometryGroup()constructor
public function GeometryGroup()
Method detail
draw()method
public override function draw(graphics:Graphics, rc:Rectangle):void

Begins the draw phase for graphic objects. All graphic objects override this to do their specific rendering.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.