Package | com.gestureworks.cml.elements |
Class | public class Graphic |
Inheritance | Graphic ![]() ![]() |
Subclasses | Frame |
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);
Property | Defined By | ||
---|---|---|---|
anchorX : Number
Sets the anchor X of curve. | Graphic | ||
anchorY : Number
Sets the anchor Y of curve. | Graphic | ||
angleLength : Number
Set the angle length of the circle segment in degrees. | Graphic | ||
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
bottomLeftRadius : Number
sets the bottom left radius of the graphic object
| Graphic | ||
bottomRightRadius : Number
sets the bottom right radius of the graphic object
| Graphic | ||
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
clockwise : Boolean
Set if the circle segment should go clockwise/
Shape must be circleSegment. | Graphic | ||
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
color : uint
Sets fill color when fill type is color
| Graphic | ||
controlX : Number
Sets the control X of curve. | Graphic | ||
controlY : Number
Sets the control y value of curve. | Graphic | ||
cornerHeight : Number
Sets the height of the ellipse that is used to round the rectangle. | Graphic | ||
cornerWidth : Number
Sets the width of the ellipse that is used to round the rectangle. | Graphic | ||
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
fill : String
Sets fill type, choose: color, gradient
todo: implement shader and bitmap fills
| Graphic | ||
fillAlpha : Number
Sets fill alpha when fill type is color
| Graphic | ||
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)
| Graphic | ||
gradientColors : String
Sets gradient colors when fill type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| Graphic | ||
gradientFocalPointRatio : Number
A number that controls the location of the focal point of the gradient. | Graphic | ||
gradientHeight : Number
The height (in pixels) to which the gradient will spread. | Graphic | ||
gradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| Graphic | ||
gradientRatios : String
Color distribution ratios; valid values are 0-255. | Graphic | ||
gradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | Graphic | ||
gradientSpread : String
Specifies which gradient spread method to use. | Graphic | ||
gradientType : String
Sets gradient type when fill type is gradient. | Graphic | ||
gradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | Graphic | ||
gradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | Graphic | ||
gradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | Graphic | ||
![]() | group : String | TouchContainer | |
height : Number [override]
Sets graphics height. | Graphic | ||
heightPercent : Number [override]
Sets the height relative to the parent container. | Graphic | ||
![]() | id : String
Returns the object's id. | TouchContainer | |
innerRadius : Number
Set the inner radius of the circle segment in pixels. | Graphic | ||
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
line : String
Sets line type, choose: color, gradient
todo: implement shader and bitmap lines
| Graphic | ||
lineAlpha : Number
Sets the alpha of the line
| Graphic | ||
lineCaps : String
Specifies the type of cap on the line ends
Choose: none, round, or square
| Graphic | ||
lineColor : uint
Sets the color of the line
Line type must be color
| Graphic | ||
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)
| Graphic | ||
lineGradientColors : String
Sets lineGradient colors when line type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| Graphic | ||
lineGradientFocalPointRatio : Number
A number that controls the location of the focal point of the lineGradient. | Graphic | ||
lineGradientHeight : Number
The height (in pixels) to which the gradient will spread. | Graphic | ||
lineGradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| Graphic | ||
lineGradientRatios : String
Color distribution ratios; valid values are 0-255. | Graphic | ||
lineGradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | Graphic | ||
lineGradientSpread : String
Specifies which gradient spread method to use. | Graphic | ||
lineGradientType : String
Sets lineGradient type when line type is gradient. | Graphic | ||
lineGradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | Graphic | ||
lineGradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | Graphic | ||
lineGradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | Graphic | ||
lineJoints : String
Specifies the type of joint on the line ends
Choose: miter, round, or bevel
| Graphic | ||
lineMiterLimit : Number
Specifies the limit at which the miter is cut off
| Graphic | ||
linePixelHinting : Boolean
Specifies whether to hint strokes to full pixels. | Graphic | ||
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). | Graphic | ||
lineStroke : Number
Sets the width of the line stroke (in pixels)
| Graphic | ||
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
pathCommands : String
Sets the path moveTo and lineTo values
| Graphic | ||
pathCommandsVector : Vector.<int> | Graphic | ||
pathCoordinates : String
Sets the path coordinates
| Graphic | ||
pathCoordinatesVector : Vector.<Number> | Graphic | ||
![]() | position : *
Sets the position
| TouchContainer | |
radius : Number
Sets radius (in pixels) of circle. | Graphic | ||
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
shape : String
Sets predefined shape type. | Graphic | ||
![]() | sound : String | TouchContainer | |
startAngle : Number
Set the start angle of the circle segment in degrees, clockwise from X axis. | Graphic | ||
startX : Number
Sets starting X position for curve
| Graphic | ||
startY : Number
Sets starting Y position for curve
| Graphic | ||
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
topLeftRadius : Number
sets the top left radius of the graphic object
| Graphic | ||
topRightRadius : Number
sets the top right radius of the grpahic object
| Graphic | ||
width : Number [override]
Sets graphics width. | Graphic | ||
widthPercent : Number [override]
Sets the width relative to the parent container. | Graphic |
Property | Defined By | ||
---|---|---|---|
![]() | cmlGestureList : Object | TouchContainer | |
gradientAlphaArray : Array | Graphic | ||
gradientColorArray : Array | Graphic | ||
_gradientInterpolation : String = rgb | Graphic | ||
gradientRatioArray : Array | Graphic | ||
_gradientRotation : Number = 0 | Graphic | ||
_gradientSpread : String = pad | Graphic | ||
_gradientType : String = linear | Graphic | ||
_height : Number = 0 | Graphic | ||
_lineCaps : String = none | Graphic | ||
lineGradientAlphaArray : Array | Graphic | ||
lineGradientColorArray : Array | Graphic | ||
_lineGradientInterpolation : String = rgb | Graphic | ||
lineGradientRatioArray : Array | Graphic | ||
_lineGradientRotation : Number = 0 | Graphic | ||
_lineGradientSpread : String = pad | Graphic | ||
_lineGradientType : String = linear | Graphic | ||
_lineJoints : String = miter | Graphic | ||
_lineMiterLimit : Number = 3 | Graphic | ||
_lineScaleMode : String = normal | Graphic | ||
matrix : Matrix | Graphic | ||
_width : Number = 0 | Graphic |
Method | Defined By | ||
---|---|---|---|
Graphic()
Constructor
| Graphic | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
clear():void
Clears the graphics that were drawn to this Graphics object,
and resets fill and line style settings. | Graphic | ||
clone():* [override]
Returns clone of self
| Graphic | ||
Copies all of drawing commands from the source Graphics object
into the calling Graphics object. | Graphic | ||
dispose():void [override]
Destructor
| Graphic | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initialisation method
| Graphic | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
updateGraphic():void
Graphics drawing method
| Graphic | ||
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
_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
anchorX | property |
anchorX:Number
Sets the anchor X of curve.
The default value is 10
.
public function get anchorX():Number
public function set anchorX(value:Number):void
anchorY | property |
anchorY:Number
Sets the anchor Y of curve.
The default value is 10
.
public function get anchorY():Number
public function set anchorY(value:Number):void
angleLength | property |
angleLength:Number
Set the angle length of the circle segment in degrees. Must be in range 0.0 - 360.0. Shape must be circleSegment.
public function get angleLength():Number
public function set angleLength(value:Number):void
bottomLeftRadius | property |
bottomLeftRadius:Number
sets the bottom left radius of the graphic object
The default value is 0;
.
public function get bottomLeftRadius():Number
public function set bottomLeftRadius(value:Number):void
bottomRightRadius | property |
bottomRightRadius:Number
sets the bottom right radius of the graphic object
The default value is 0;
.
public function get bottomRightRadius():Number
public function set bottomRightRadius(value:Number):void
clockwise | property |
clockwise:Boolean
Set if the circle segment should go clockwise/ Shape must be circleSegment.
public function get clockwise():Boolean
public function set clockwise(value:Boolean):void
color | property |
color:uint
Sets fill color when fill type is color
The default value is 0x333333
.
public function get color():uint
public function set color(value:uint):void
controlX | property |
controlX:Number
Sets the control X of curve.
The default value is 10
.
public function get controlX():Number
public function set controlX(value:Number):void
controlY | property |
controlY:Number
Sets the control y value of curve.
The default value is 10
.
public function get controlY():Number
public function set controlY(value:Number):void
cornerHeight | property |
cornerHeight:Number
Sets 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:Number
Sets 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:String
Sets 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:Number
Sets 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: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)
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:String
Sets 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:Number
A 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:Number
The 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:String
Specifies 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:String
Color 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:Number
Sets 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:String
Specifies 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:String
Sets 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:Number
Sets 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:Number
Sets 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:Number
Sets 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 height.
The default value is 0
.
public function get height():Number
public function set height(value:Number):void
heightPercent | property |
heightPercent:Number
[override] Sets the height relative to the parent container.
public function get heightPercent():Number
public function set heightPercent(value:Number):void
innerRadius | property |
innerRadius:Number
Set the inner radius of the circle segment in pixels. Shape must be circlesegement.
public function get innerRadius():Number
public function set innerRadius(value:Number):void
line | property |
line:String
Sets 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:Number
Sets 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:String
Specifies 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:uint
Sets 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: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)
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:String
Sets 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:Number
A 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:Number
The 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:String
Specifies 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:String
Color 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:Number
Sets 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:String
Specifies 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:String
Sets 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:Number
Sets 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:Number
Sets 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:Number
Sets 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:String
Specifies 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:Number
Specifies 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:Boolean
Specifies 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: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). 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:Number
Sets the width of the line stroke (in pixels)
The default value is 0
.
public function get lineStroke():Number
public function set lineStroke(value:Number):void
matrix | property |
protected var matrix:Matrix
pathCommands | property |
pathCommands:String
Sets the path moveTo and lineTo values
public function get pathCommands():String
public function set pathCommands(value:String):void
pathCommandsVector | property |
public var pathCommandsVector:Vector.<int>
pathCoordinates | property |
pathCoordinates:String
Sets the path coordinates
public function get pathCoordinates():String
public function set pathCoordinates(value:String):void
pathCoordinatesVector | property |
public var pathCoordinatesVector:Vector.<Number>
radius | property |
radius:Number
Sets 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:String
Sets 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
startAngle | property |
startAngle:Number
Set the start angle of the circle segment in degrees, clockwise from X axis. Must be in range 0.0 - 360.0. Shape must be circleSegment.
public function get startAngle():Number
public function set startAngle(value:Number):void
startX | property |
startX:Number
Sets starting X position for curve
The default value is 0
.
public function get startX():Number
public function set startX(value:Number):void
startY | property |
startY:Number
Sets starting Y position for curve
The default value is 0
.
public function get startY():Number
public function set startY(value:Number):void
topLeftRadius | property |
topLeftRadius:Number
sets the top left radius of the graphic object
The default value is 0;
.
public function get topLeftRadius():Number
public function set topLeftRadius(value:Number):void
topRightRadius | property |
topRightRadius:Number
sets the top right radius of the grpahic object
The default value is 0;
.
public function get topRightRadius():Number
public function set topRightRadius(value:Number):void
width | property |
width:Number
[override] Sets graphics width.
The default value is 0
.
public function get width():Number
public function set width(value:Number):void
widthPercent | property |
widthPercent:Number
[override] Sets the width relative to the parent container.
public function get widthPercent():Number
public function set widthPercent(value:Number):void
Graphic | () | Constructor |
public function Graphic()
Constructor
clear | () | method |
public function clear():void
Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings.
clone | () | method |
override public function clone():*
Returns clone of self
Returns* |
copyFrom | () | method |
public function copyFrom(source:Graphic):void
Copies all of drawing commands from the source Graphics object into the calling Graphics object.
Parameters
source:Graphic |
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialisation method
updateGraphic | () | method |
public function updateGraphic():void
Graphics drawing method