Packagecom.gestureworks.cml.element
Classpublic class Graphic
InheritanceGraphic Inheritance GraphicFactory Inheritance TouchContainer Inheritance TouchContainerFactory Inheritance TouchSprite Inheritance flash.display.Sprite
Subclasses GraphicElement

The graphic element can draw many types of graphic types. It supports most of the properties of the AS3 Graphics class. It supports the following shapes: It supports the following fill types:
 
        
        var g:Graphic = new Graphic();
        g.fill = "color";
        g.color = 0xFF0000;
        g.x = 100;
        g.y = 100;
        g.shape = "ellipse";
        g.width = 100;
        g.height = 50;
        addChild(g);
        
     



Public Properties
 PropertyDefined By
 Inherited_$height : Number = 0
TouchSprite
 Inherited_$rotation : Number = 0
TouchSprite
 Inherited$rotation : Number
TouchSprite
 Inherited_$scaleX : Number = 1
TouchSprite
 Inherited$scaleX : Number
TouchSprite
 Inherited_$scaleY : Number = 1
TouchSprite
 Inherited$scaleY : Number
TouchSprite
 Inherited$transformPoint : Point
TouchSprite
 Inherited_$width : Number = 0
TouchSprite
 Inherited_$x : Number = 0
TouchSprite
 Inherited$x : Number
TouchSprite
 Inherited_$y : Number = 0
TouchSprite
 Inherited$y : Number
TouchSprite
 InheritedanchorX : Number
Sets the anchor X of curve.
GraphicFactory
 InheritedanchorY : Number
Sets the anchor Y of curve.
GraphicFactory
 InheritedautoShuffle : Boolean
autoshuffles
TouchContainerFactory
 InheritedbottomLeftRadius : Number
sets the bottom left radius of the graphic object
GraphicFactory
 InheritedbottomRightRadius : Number
sets the bottom right radius of the graphic object
GraphicFactory
 InheritedbroadcastTarget : Boolean
TouchSprite
 InheritedchildList : ChildList
[read-only] returns the childlist
TouchContainerFactory
 Inheritedclass_ : String
Object's css class;
TouchContainerFactory
 InheritedclassName : String
sets the class name of displayobject
TouchContainerFactory
 InheritedcloneExclusions : Vector.<String>
[read-only] Returns a list of properties to exclude when cloning this object
TouchContainer
 InheritedclusterBubbling : Boolean
Allows touch points from a childclusters to copy into container touch objects in the local parent child display list stack.
TouchSprite
 InheritedclusterEvents : Boolean
Determins whether clusterEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedclusterID : int
TouchSprite
 InheritedcmlIndex : int
sets the cml index
TouchContainerFactory
 Inheritedcml_item : Boolean
TouchSprite
 InheritedcO : ClusterObject
TouchSprite
 Inheritedcolor : uint
Sets fill color when fill type is color
GraphicFactory
 InheritedcontrolX : Number
Sets the control X of curve.
GraphicFactory
 InheritedcontrolY : Number
Sets the control y value of curve.
GraphicFactory
 InheritedcornerHeight : Number
Sets the height of the ellipse that is used to round the rectangle.
GraphicFactory
 InheritedcornerWidth : Number
Sets the width of the ellipse that is used to round the rectangle.
GraphicFactory
 InheriteddebugDisplay : Boolean
TouchSprite
 InheriteddeltaFilterOn : Boolean
Determins whether filtering is applied to the delta values.
TouchSprite
 InheriteddimensionsTo : String
sets the dimensions of touchcontainer
TouchContainerFactory
 InheriteddisableAffineTransform : Boolean
Determins whether internal (native) transformations are affine (dynamically centered) on the touchSprite.
TouchSprite
 InheriteddisableNativeTransform : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheriteddN : Number
TouchSprite
 InheriteddropShadow : Boolean
Sets the drop shadow effect
TouchContainerFactory
 Inheritedfill : String
Sets fill type, choose: color, gradient todo: implement shader and bitmap fills
GraphicFactory
 InheritedfillAlpha : Number
Sets fill alpha when fill type is color
GraphicFactory
 InheritedGESTRELIST_UPDATE : String = gestureList update
[static]
TouchSprite
 InheritedgestureEventComplete : Boolean
Indicates weather all gestureEvents have been completed on the touchSprite.
TouchSprite
 InheritedgestureEventRelease : Boolean
Indicates whether all touch points have been released on the touchSprite.
TouchSprite
 InheritedgestureEvents : Boolean
Determins whether gestureEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedgestureEventStart : Boolean
Indicates whether any gestureEvents have been started on the touchSprite.
TouchSprite
 InheritedgestureFilters : Boolean
TouchSprite
 InheritedgestureList : Object
TouchSprite
 InheritedgestureReleaseInertia : Boolean
Determins whether release inertia is given to gestureEvents on the touchSprite.
TouchSprite
 InheritedgestureTouchInertia : Boolean
Determins whether touch inertia is processed on the touchSprite.
TouchSprite
 Inherited_gestureTweenOn : Boolean = false
TouchSprite
 InheritedgestureTweenOn : Boolean
TouchSprite
 InheritedgO : GestureListObject
TouchSprite
 InheritedgradientAlphas : String
Sets gradient alphas when fill type is gradient Alpha values corespond to the colors in the gradientColors array Ordered list, max 12 (ex: 1, 1, 1)
GraphicFactory
 InheritedgradientColors : String
Sets gradient colors when fill type is gradient Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
GraphicFactory
 InheritedgradientFocalPointRatio : Number
A number that controls the location of the focal point of the gradient.
GraphicFactory
 InheritedgradientHeight : Number
The height (in pixels) to which the gradient will spread.
GraphicFactory
 InheritedgradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
GraphicFactory
 InheritedgradientRatios : String
Color distribution ratios; valid values are 0-255.
GraphicFactory
 InheritedgradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient.
GraphicFactory
 InheritedgradientSpread : String
Specifies which gradient spread method to use.
GraphicFactory
 InheritedgradientType : String
Sets gradient type when fill type is gradient.
GraphicFactory
 InheritedgradientWidth : Number
Sets the width (in pixels) to which the gradient will spread.
GraphicFactory
 InheritedgradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally.
GraphicFactory
 InheritedgradientY : Number
Sets how far (in pixels) the gradient is shifted vertically.
GraphicFactory
 Inheritedgroup : String
TouchContainerFactory
 Inheritedheight : Number
[override] Sets graphics with
GraphicFactory
 Inheritedid : String
sets childlist id
TouchContainerFactory
 Inheritedlayout : *
speciffies the type of layout
TouchContainerFactory
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
TouchContainer
 InheritedlayoutList : Dictionary
TouchContainer
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
TouchContainer
 Inheritedline : String
Sets line type, choose: color, gradient todo: implement shader and bitmap lines
GraphicFactory
 InheritedlineAlpha : Number
Sets the alpha of the line
GraphicFactory
 InheritedlineCaps : String
Specifies the type of cap on the line ends Choose: none, round, or square
GraphicFactory
 InheritedlineColor : uint
Sets the color of the line Line type must be color
GraphicFactory
 InheritedlineGradientAlphas : String
Sets lineGradient alphas when line type is gradient Alpha values corespond to the colors in the gradient color list Ordered list, max 12 (ex: 1, 1, 1)
GraphicFactory
 InheritedlineGradientColors : String
Sets lineGradient colors when line type is gradient Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
GraphicFactory
 InheritedlineGradientFocalPointRatio : Number
A number that controls the location of the focal point of the lineGradient.
GraphicFactory
 InheritedlineGradientHeight : Number
The height (in pixels) to which the gradient will spread.
GraphicFactory
 InheritedlineGradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
GraphicFactory
 InheritedlineGradientRatios : String
Color distribution ratios; valid values are 0-255.
GraphicFactory
 InheritedlineGradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient.
GraphicFactory
 InheritedlineGradientSpread : String
Specifies which gradient spread method to use.
GraphicFactory
 InheritedlineGradientType : String
Sets lineGradient type when line type is gradient.
GraphicFactory
 InheritedlineGradientWidth : Number
Sets the width (in pixels) to which the gradient will spread.
GraphicFactory
 InheritedlineGradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally.
GraphicFactory
 InheritedlineGradientY : Number
Sets how far (in pixels) the gradient is shifted vertically.
GraphicFactory
 InheritedlineJoints : String
Specifies the type of joint on the line ends Choose: miter, round, or bevel
GraphicFactory
 InheritedlineMiterLimit : Number
Specifies the limit at which the miter is cut off
GraphicFactory
 InheritedlinePixelHinting : Boolean
Specifies whether to hint strokes to full pixels.
GraphicFactory
 InheritedlineScaleMode : String
Specifies how the line stroke size changes when graphic is scaled Choose: normal, none, or vertical normal - Always scale the line thickness when the object is scaled (the default).
GraphicFactory
 InheritedlineStroke : Number
Sets the width of the line stroke (in pixels)
GraphicFactory
 InheritedmaxScale : Number
This method is called after class initialization.
TouchContainerFactory
 InheritedminScale : Number
This method is called after class initialization.
TouchContainerFactory
 InheritedmouseChildren : Boolean
[override] sets the mousechildren value to true or false.
TouchContainerFactory
 InheritedN : int
TouchSprite
 InheritednestedTransform : Boolean
TouchSprite
 Inheritedoutline_alpha : Number
sets the alpha of outline
TouchContainerFactory
 Inheritedoutline_color : Number
sets the color of outline
TouchContainerFactory
 Inheritedoutline_joint : String
TODO
TouchContainerFactory
 InheritedoutlineOn : String
specifies the outline of container to true or false
TouchContainerFactory
 Inheritedoutline_stroke : int
sets the line stroke of outline
TouchContainerFactory
 InheritedpathCommands : String
Sets the path moveTo and lineTo values
GraphicFactory
 InheritedpathCommandsVector : Vector.<int>
GraphicFactory
 InheritedpathCoordinates : String
Sets the path coordinates
GraphicFactory
 InheritedpathCoordinatesVector : Vector.<Number>
GraphicFactory
 InheritedpointArray : Vector.<PointObject>
[read-only]
TouchSprite
 InheritedpointCount : int
TouchSprite
 InheritedpropertyStates : Array
Deprecated: Please Use state
TouchContainerFactory
 Inheritedradius : Number
Sets radius (in pixels) of circle.
GraphicFactory
 Inheritedscale : Number
Scales display object
TouchContainer
 Inheritedshape : String
Sets predefined shape type.
GraphicFactory
 InheritedsO : StrokeObject
TouchSprite
 InheritedstartX : Number
Sets starting X position for curve
GraphicFactory
 InheritedstartY : Number
Sets starting Y position for curve
GraphicFactory
 Inheritedstate : Array
property states array
TouchContainerFactory
 Inheritedtargeting : Boolean
Turns off manual ALL targeting control, defaults to a simple hit test targeting model with exclusive target clustering
TouchSprite
 InheritedtargetList : Array
Allows touch and gesture events to explicitly target a group of defined touch objects which can be outside of the local parent child display list stack
TouchSprite
 InheritedtargetObject : Object
Allows touch and gesture events to explicitly target a touch object this can be outside the local parent child display list stack
TouchSprite
 InheritedtargetParent : Boolean
Allows touch and gesture events to explicitly target the parent touch object
TouchSprite
 Inheritedtc : TouchCluster
TouchSprite
 Inheritedtd : TouchDebugDisplay
TouchSprite
 Inheritedtg : TouchGesture
TouchSprite
 InheritedtiO : TimelineObject
TouchSprite
 InheritedtopLeftRadius : Number
sets the top left radius of the graphic object
GraphicFactory
 InheritedtopRightRadius : Number
sets the top right radius of the grpahic object
GraphicFactory
 InheritedtouchChildren : Boolean
TouchSprite
 InheritedtouchObjectID : int
[read-only]
TouchSprite
 Inheritedtp : TouchPipeline
TouchSprite
 InheritedtraceDebugModeOn : Boolean
TouchSprite
 InheritedtransformComplete : Boolean
TouchSprite
 InheritedtransformEventComplete : Boolean
TouchSprite
 InheritedtransformEvents : Boolean
Determins whether transformEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedtransformEventStart : Boolean
TouchSprite
 InheritedtransformGestureVectors : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheritedtransformStart : Boolean
TouchSprite
 InheritedtrO : TransformObject
TouchSprite
 Inheritedtt : TouchTransform
TouchSprite
 Inheritedwidth : Number
[override] Sets graphics with
GraphicFactory
 Inheritedx_lock : Boolean
TouchSprite
 Inheritedy_lock : Boolean
TouchSprite
Protected Properties
 PropertyDefined By
 InheritedcmlGestureList : Object
TouchContainerFactory
 InheritedgradientAlphaArray : Array
GraphicFactory
 InheritedgradientColorArray : Array
GraphicFactory
 Inherited_gradientInterpolation : String = rgb
GraphicFactory
 InheritedgradientRatioArray : Array
GraphicFactory
 Inherited_gradientRotation : Number = 0
GraphicFactory
 Inherited_gradientSpread : String = pad
GraphicFactory
 Inherited_gradientType : String = linear
GraphicFactory
 Inherited_height : Number = 0
GraphicFactory
 Inherited_lineCaps : String = none
GraphicFactory
 InheritedlineGradientAlphaArray : Array
GraphicFactory
 InheritedlineGradientColorArray : Array
GraphicFactory
 Inherited_lineGradientInterpolation : String = rgb
GraphicFactory
 InheritedlineGradientRatioArray : Array
GraphicFactory
 Inherited_lineGradientRotation : Number = 0
GraphicFactory
 Inherited_lineGradientSpread : String = pad
GraphicFactory
 Inherited_lineGradientType : String = linear
GraphicFactory
 Inherited_lineJoints : String = miter
GraphicFactory
 Inherited_lineMiterLimit : Number = 3
GraphicFactory
 Inherited_lineScaleMode : String = normal
GraphicFactory
 Inheritedmatrix : Matrix
GraphicFactory
 Inherited_width : Number = 0
GraphicFactory
Public Methods
 MethodDefined By
  
Constructor
Graphic
 Inherited
TODO
TouchContainerFactory
 Inherited
method searches the child and adds to the list
TouchContainerFactory
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override] Registers event listeners.
TouchSprite
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
TouchContainer
 Inherited
childToList(id:String, child:*):void
child appended to the childlist
TouchContainerFactory
 Inherited
clear():void
Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings.
GraphicFactory
  
clone():*
[override] Returns clone of self
Graphic
 Inherited
Copies all of drawing commands from the source Graphics object into the calling Graphics object.
GraphicFactory
  
[override] CML display callback Initialisation
Graphic
  
dispose():void
[override] Dispose method
Graphic
 Inherited
hideIndex(index:int):void
hides child list index
TouchContainer
 Inherited
hideKey(key:String):void
hides childlist key visibility
TouchContainer
  
init():void
[override] Initialisation method
Graphic
 Inherited
makeGestureList(value:XMLList):Object
TODO
TouchContainerFactory
 Inherited
onTouchDown(event:TouchEvent, target:* = null):void
decides how to assign the captured touch point to a cluster can pass to parent, an explicit target, an explicit list or targets or a passed to any touch object in the local display stack.
TouchSprite
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
TouchContainer
 Inherited
postparseCML(cml:XMLList):void
postparse method
TouchContainerFactory
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
TouchContainer
 Inherited
method sets the dimensions of each child
TouchContainerFactory
 Inherited
showIndex(index:int):void
shows index of the child list
TouchContainer
 Inherited
showKey(key:String):void
shows the child list key visibility
TouchContainer
 Inherited
TouchSprite
 Inherited
TouchSprite
 Inherited
TouchSprite
  
[override] Graphics drawing method
Graphic
 Inherited
Registers/unregisters event handlers depending on the active modes
TouchSprite
 Inherited
TouchSprite
 Inherited
updateProperties(state:Number = 0):void
update properties of child
TouchContainerFactory
 Inherited
TouchSprite
 Inherited
TouchSprite
Protected Methods
 MethodDefined By
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
randomMinMax(min:Number, max:Number):Number
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
thumbUpdate(event:Event):void
This method is called after class initialization.
TouchContainerFactory
Constructor Detail
Graphic()Constructor
public function Graphic()

Constructor

Method Detail
clone()method
override public function clone():*

Returns clone of self

Returns
*
displayComplete()method 
override public function displayComplete():void

CML display callback Initialisation

dispose()method 
override public function dispose():void

Dispose method

init()method 
override public function init():void

Initialisation method

updateGraphic()method 
override public function updateGraphic():void

Graphics drawing method