| Package | com.gestureworks.cml.factories |
| Class | public class GraphicFactory |
| Inheritance | GraphicFactory ElementFactory flash.display.Sprite |
| Subclasses | FrameElement, GraphicElement |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number [override] [write-only]
Sets minimum scale of the display object in pixels
| ElementFactory | |
![]() | bottom : Number | ElementFactory | |
![]() | class_ : String
Object's css class;
| ElementFactory | |
![]() | className : String | ElementFactory | |
![]() | cmlIndex : int | ElementFactory | |
| color : uint
Sets fill color when fill type is color
| GraphicFactory | ||
| cornerHeight : Number
Sets the height of the ellipse that is used to round the rectangle. | GraphicFactory | ||
| cornerWidth : Number
Sets the width of the ellipse that is used to round the rectangle. | GraphicFactory | ||
![]() | debugStyle : * | ElementFactory | |
![]() | displayEvents : String
Use for dispatch completes. | ElementFactory | |
| fill : String
Sets fill type, choose: color, gradient
todo: implement shader and bitmap fills
| GraphicFactory | ||
| fillAlpha : Number
Sets fill alpha when fill type is color
| GraphicFactory | ||
![]() | fixedScale : Boolean | ElementFactory | |
| gradientAlphas : 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 | ||
| gradientColors : String
Sets gradient colors when fill type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| GraphicFactory | ||
| gradientFocalPointRatio : Number
A number that controls the location of the focal point of the gradient. | GraphicFactory | ||
| gradientHeight : Number
The height (in pixels) to which the gradient will spread. | GraphicFactory | ||
| gradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| GraphicFactory | ||
| gradientRatios : String
Color distribution ratios; valid values are 0-255. | GraphicFactory | ||
| gradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | GraphicFactory | ||
| gradientSpread : String
Specifies which gradient spread method to use. | GraphicFactory | ||
| gradientType : String
Sets gradient type when fill type is gradient. | GraphicFactory | ||
| gradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | GraphicFactory | ||
| gradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | GraphicFactory | ||
| gradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | GraphicFactory | ||
| height : Number [override]
Sets graphics with
| GraphicFactory | ||
![]() | heightPercent : String | ElementFactory | |
![]() | horizontalCenter : Number | ElementFactory | |
![]() | id : String | ElementFactory | |
![]() | index : int | ElementFactory | |
![]() | left : Number | ElementFactory | |
| line : String
Sets line type, choose: color, gradient
todo: implement shader and bitmap lines
| GraphicFactory | ||
| lineAlpha : Number
Sets the alpha of the line
| GraphicFactory | ||
| lineCaps : String
Specifies the type of cap on the line ends
Choose: none, round, or square
| GraphicFactory | ||
| lineColor : uint
Sets the color of the line
Line type must be color
| GraphicFactory | ||
| lineGradientAlphas : 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 | ||
| lineGradientColors : String
Sets lineGradient colors when line type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| GraphicFactory | ||
| lineGradientFocalPointRatio : Number
A number that controls the location of the focal point of the lineGradient. | GraphicFactory | ||
| lineGradientHeight : Number
The height (in pixels) to which the gradient will spread. | GraphicFactory | ||
| lineGradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| GraphicFactory | ||
| lineGradientRatios : String
Color distribution ratios; valid values are 0-255. | GraphicFactory | ||
| lineGradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | GraphicFactory | ||
| lineGradientSpread : String
Specifies which gradient spread method to use. | GraphicFactory | ||
| lineGradientType : String
Sets lineGradient type when line type is gradient. | GraphicFactory | ||
| lineGradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | GraphicFactory | ||
| lineGradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | GraphicFactory | ||
| lineGradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | GraphicFactory | ||
| lineJoints : String
Specifies the type of joint on the line ends
Choose: miter, round, or bevel
| GraphicFactory | ||
| lineMiterLimit : Number
Specifies the limit at which the miter is cut off
| GraphicFactory | ||
| linePixelHinting : Boolean
Specifies whether to hint strokes to full pixels. | GraphicFactory | ||
| lineScaleMode : 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 | ||
| lineStroke : Number
Sets the width of the line stroke (in pixels)
| GraphicFactory | ||
![]() | maxScale : Number
Sets maximum scale of the display object in pixels
| ElementFactory | |
![]() | minScale : Number
Sets minimum scale of the display object in pixels
| ElementFactory | |
![]() | propertyStates : Array | ElementFactory | |
| radius : Number
Sets radius (in pixels) of circle. | GraphicFactory | ||
![]() | right : Number | ElementFactory | |
![]() | scale : Number
Scales display object
| ElementFactory | |
![]() | scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
| shape : String
Sets predefined shape type. | GraphicFactory | ||
![]() | top : Number | ElementFactory | |
![]() | verticalCenter : Number | ElementFactory | |
| width : Number [override]
Sets graphics with
| GraphicFactory | ||
![]() | widthPercent : String | ElementFactory | |
| Property | Defined By | ||
|---|---|---|---|
| gradientAlphaArray : Array | GraphicFactory | ||
| gradientColorArray : Array | GraphicFactory | ||
| _gradientInterpolation : String = rgb | GraphicFactory | ||
| gradientRatioArray : Array | GraphicFactory | ||
| _gradientRotation : Number = 0 | GraphicFactory | ||
| _gradientSpread : String = pad | GraphicFactory | ||
| _gradientType : String = linear | GraphicFactory | ||
| _height : Number = 0 | GraphicFactory | ||
| _lineCaps : String = none | GraphicFactory | ||
| lineGradientAlphaArray : Array | GraphicFactory | ||
| lineGradientColorArray : Array | GraphicFactory | ||
| _lineGradientInterpolation : String = rgb | GraphicFactory | ||
| lineGradientRatioArray : Array | GraphicFactory | ||
| _lineGradientRotation : Number = 0 | GraphicFactory | ||
| _lineGradientSpread : String = pad | GraphicFactory | ||
| _lineGradientType : String = linear | GraphicFactory | ||
| _lineJoints : String = miter | GraphicFactory | ||
| _lineMiterLimit : Number = 3 | GraphicFactory | ||
| _lineScaleMode : String = normal | GraphicFactory | ||
| matrix : Matrix | GraphicFactory | ||
| _width : Number = 0 | GraphicFactory | ||
| Method | Defined By | ||
|---|---|---|---|
| GraphicFactory | |||
clear():void
Clears the graphics that were drawn to this Graphics object,
and resets fill and line style settings. | GraphicFactory | ||
![]() | clone():Object
Returns clone of self
| ElementFactory | |
copyFrom(source:GraphicFactory):void
Copies all of drawing commands from the source Graphics object
into the calling Graphics object. | GraphicFactory | ||
![]() | displayComplete():void | ElementFactory | |
![]() | dispose():void
Destructor
| ElementFactory | |
![]() | parseCML(cml:XMLList):XMLList | ElementFactory | |
![]() | postparseCML(cml:XMLList):void | ElementFactory | |
![]() | print(value:*):void
Prints to console
| ElementFactory | |
![]() | updateProperties(state:Number = 0):void | ElementFactory | |
| _gradientInterpolation | property |
protected var _gradientInterpolation:String = rgb| _gradientRotation | property |
protected var _gradientRotation:Number = 0| _gradientSpread | property |
protected var _gradientSpread:String = pad| _gradientType | property |
protected var _gradientType:String = linear| _height | property |
protected var _height:Number = 0| _lineCaps | property |
protected var _lineCaps:String = none| _lineGradientInterpolation | property |
protected var _lineGradientInterpolation:String = rgb| _lineGradientRotation | property |
protected var _lineGradientRotation:Number = 0| _lineGradientSpread | property |
protected var _lineGradientSpread:String = pad| _lineGradientType | property |
protected var _lineGradientType:String = linear| _lineJoints | property |
protected var _lineJoints:String = miter| _lineMiterLimit | property |
protected var _lineMiterLimit:Number = 3| _lineScaleMode | property |
protected var _lineScaleMode:String = normal| _width | property |
protected var _width:Number = 0| color | property |
color:uintSets fill color when fill type is color
The default value is 0x333333.
public function get color():uint public function set color(value:uint):void| cornerHeight | property |
cornerHeight:NumberSets the height of the ellipse that is used to round the rectangle. Shape type must be round rectangle.
The default value is 10.
public function get cornerHeight():Number public function set cornerHeight(value:Number):void| cornerWidth | property |
cornerWidth:NumberSets the width of the ellipse that is used to round the rectangle. Shape type must be round rectangle.
The default value is 10.
public function get cornerWidth():Number public function set cornerWidth(value:Number):void| fill | property |
fill:StringSets fill type, choose: color, gradient todo: implement shader and bitmap fills
The default value is color.
public function get fill():String public function set fill(value:String):void| fillAlpha | property |
fillAlpha:NumberSets fill alpha when fill type is color
The default value is 1.
public function get fillAlpha():Number public function set fillAlpha(value:Number):void| gradientAlphaArray | property |
protected var gradientAlphaArray:Array| gradientAlphas | property |
gradientAlphas:StringSets 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)
The default value is 1, 1.
public function get gradientAlphas():String public function set gradientAlphas(value:String):void| gradientColorArray | property |
protected var gradientColorArray:Array| gradientColors | property |
gradientColors:StringSets gradient colors when fill type is gradient Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
The default value is 0x333333, 0xAAAAAA.
public function get gradientColors():String public function set gradientColors(value:String):void| gradientFocalPointRatio | property |
gradientFocalPointRatio:NumberA number that controls the location of the focal point of the gradient. A value of 0 sets the focal point in the center. A value of 1 sets the focal point at one border of the gradient circle. A value of -1 sets the focal point at the other border of the gradient circle. A value less than -1 or greater than 1 is rounded to -1 or 1, respectively.
The default value is 0.0.
public function get gradientFocalPointRatio():Number public function set gradientFocalPointRatio(value:Number):void| gradientHeight | property |
gradientHeight:NumberThe height (in pixels) to which the gradient will spread. Fill type must be gradient.
The default value is 100.
public function get gradientHeight():Number public function set gradientHeight(value:Number):void| gradientInterpolation | property |
gradientInterpolation:StringSpecifies which interpolation value to use: RGB or linearRGB
The default value is RGB.
public function get gradientInterpolation():String public function set gradientInterpolation(value:String):void| gradientRatioArray | property |
protected var gradientRatioArray:Array| gradientRatios | property |
gradientRatios:StringColor distribution ratios; valid values are 0-255. This value defines the percentage of the width where the color is sampled at 100%. The value 0 represents the left position in the gradient box, and 255 represents the right position in the gradient box. Fill type must be gradient. The values must increase sequentially; for example, "0, 63, 127, 190, 255". Ordered list, (ex: 0, 255)
The default value is 0, 255.
public function get gradientRatios():String public function set gradientRatios(value:String):void| gradientRotation | property |
gradientRotation:NumberSets the rotation (in degrees) that will be applied to the gradient. Fill type must be gradient.
The default value is 0.
public function get gradientRotation():Number public function set gradientRotation(value:Number):void| gradientSpread | property |
gradientSpread:StringSpecifies which gradient spread method to use. Choose: pad, reflect, or repeat. Fill type must be gradient.
The default value is pad.
public function get gradientSpread():String public function set gradientSpread(value:String):void| gradientType | property |
gradientType:StringSets gradient type when fill type is gradient. Choose: linear or radial
public function get gradientType():String public function set gradientType(value:String):void| gradientWidth | property |
gradientWidth:NumberSets the width (in pixels) to which the gradient will spread. Fill type must be gradient.
The default value is 100.
public function get gradientWidth():Number public function set gradientWidth(value:Number):void| gradientX | property |
gradientX:NumberSets how far (in pixels) the gradient is shifted horizontally. Fill type must be gradient.
The default value is 0.
public function get gradientX():Number public function set gradientX(value:Number):void| gradientY | property |
gradientY:NumberSets how far (in pixels) the gradient is shifted vertically. Fill type must be gradient.
The default value is 0.
public function get gradientY():Number public function set gradientY(value:Number):void| height | property |
height:Number[override] Sets graphics with
The default value is 0.
public function get height():Number public function set height(value:Number):void| line | property |
line:StringSets line type, choose: color, gradient todo: implement shader and bitmap lines
The default value is color.
public function get line():String public function set line(value:String):void| lineAlpha | property |
lineAlpha:NumberSets the alpha of the line
The default value is 1.
public function get lineAlpha():Number public function set lineAlpha(value:Number):void| lineCaps | property |
lineCaps:StringSpecifies the type of cap on the line ends Choose: none, round, or square
The default value is none.
public function get lineCaps():String public function set lineCaps(value:String):void| lineColor | property |
lineColor:uintSets the color of the line Line type must be color
The default value is 0xFFFFFF.
public function get lineColor():uint public function set lineColor(value:uint):void| lineGradientAlphaArray | property |
protected var lineGradientAlphaArray:Array| lineGradientAlphas | property |
lineGradientAlphas:StringSets 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)
The default value is 1, 1.
public function get lineGradientAlphas():String public function set lineGradientAlphas(value:String):void| lineGradientColorArray | property |
protected var lineGradientColorArray:Array| lineGradientColors | property |
lineGradientColors:StringSets lineGradient colors when line type is gradient Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
The default value is 0x333333, 0xAAAAAA.
public function get lineGradientColors():String public function set lineGradientColors(value:String):void| lineGradientFocalPointRatio | property |
lineGradientFocalPointRatio:NumberA number that controls the location of the focal point of the lineGradient. A value of 0 sets the focal point in the center. A value of 1 sets the focal point at one border of the lineGradient circle. A value of -1 sets the focal point at the other border of the lineGradient circle. A value less than -1 or greater than 1 is rounded to -1 or 1, respectively.
The default value is 0.0.
public function get lineGradientFocalPointRatio():Number public function set lineGradientFocalPointRatio(value:Number):void| lineGradientHeight | property |
lineGradientHeight:NumberThe height (in pixels) to which the gradient will spread. Line type must be lineGradient.
The default value is 100.
public function get lineGradientHeight():Number public function set lineGradientHeight(value:Number):void| lineGradientInterpolation | property |
lineGradientInterpolation:StringSpecifies which interpolation value to use: RGB or linearRGB
The default value is RGB.
public function get lineGradientInterpolation():String public function set lineGradientInterpolation(value:String):void| lineGradientRatioArray | property |
protected var lineGradientRatioArray:Array| lineGradientRatios | property |
lineGradientRatios:StringColor distribution ratios; valid values are 0-255. This value defines the percentage of the width where the color is sampled at 100%. The value 0 represents the left position in the gradient box, and 255 represents the right position in the gradient box. Line type must be gradient. The values must increase sequentially; for example, "0, 63, 127, 190, 255". Ordered list, (ex: 0, 255)
The default value is 0, 255.
public function get lineGradientRatios():String public function set lineGradientRatios(value:String):void| lineGradientRotation | property |
lineGradientRotation:NumberSets the rotation (in degrees) that will be applied to the gradient. Line type must be lineGradient.
The default value is 0.
public function get lineGradientRotation():Number public function set lineGradientRotation(value:Number):void| lineGradientSpread | property |
lineGradientSpread:StringSpecifies which gradient spread method to use. Choose: pad, reflect, or repeat. Line type must be gradient.
The default value is pad.
public function get lineGradientSpread():String public function set lineGradientSpread(value:String):void| lineGradientType | property |
lineGradientType:StringSets lineGradient type when line type is gradient. Choose: linear or radial
public function get lineGradientType():String public function set lineGradientType(value:String):void| lineGradientWidth | property |
lineGradientWidth:NumberSets the width (in pixels) to which the gradient will spread. Line type must be gradient.
The default value is 100.
public function get lineGradientWidth():Number public function set lineGradientWidth(value:Number):void| lineGradientX | property |
lineGradientX:NumberSets how far (in pixels) the gradient is shifted horizontally. Line type must be lineGradient.
The default value is 0.
public function get lineGradientX():Number public function set lineGradientX(value:Number):void| lineGradientY | property |
lineGradientY:NumberSets how far (in pixels) the gradient is shifted vertically. Line type must be lineGradient.
The default value is 0.
public function get lineGradientY():Number public function set lineGradientY(value:Number):void| lineJoints | property |
lineJoints:StringSpecifies the type of joint on the line ends Choose: miter, round, or bevel
The default value is miter.
public function get lineJoints():String public function set lineJoints(value:String):void| lineMiterLimit | property |
lineMiterLimit:NumberSpecifies the limit at which the miter is cut off
The default value is 3.
public function get lineMiterLimit():Number public function set lineMiterLimit(value:Number):void| linePixelHinting | property |
linePixelHinting:BooleanSpecifies whether to hint strokes to full pixels. This affects both the position of anchors of a curve and the line stroke size itself. With pixelHinting set to true, line widths are adjusted to full pixel widths. With pixelHinting set to false, disjoints can appear for curves and straight lines. Note: Not supported in Flash Lite 4
The default value is false.
public function get linePixelHinting():Boolean public function set linePixelHinting(value:Boolean):void| lineScaleMode | property |
lineScaleMode:StringSpecifies 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). none - Never scale the line thickness. horizontal - Do not scale the line thickness if the object is scaled horzontal only. vertical - Do not scale the line thickness if the object is scaled vertically only.
The default value is normal.
public function get lineScaleMode():String public function set lineScaleMode(value:String):void| lineStroke | property |
lineStroke:NumberSets the width of the line stroke (in pixels)
The default value is 1.
public function get lineStroke():Number public function set lineStroke(value:Number):void| matrix | property |
protected var matrix:Matrix| radius | property |
radius:NumberSets radius (in pixels) of circle. Shape type must be circle.
The default value is 100.
public function get radius():Number public function set radius(value:Number):void| shape | property |
shape:StringSets predefined shape type. Choose: line, rectangle, circle, or ellipse
The default value is line.
public function get shape():String public function set shape(value:String):void| width | property |
width:Number[override] Sets graphics with
The default value is 0.
public function get width():Number public function set width(value:Number):void| GraphicFactory | () | Constructor |
public function GraphicFactory()| clear | () | method |
public function clear():voidClears the graphics that were drawn to this Graphics object, and resets fill and line style settings.
| copyFrom | () | method |
public function copyFrom(source:GraphicFactory):voidCopies all of drawing commands from the source Graphics object into the calling Graphics object.
Parameters
source:GraphicFactory |