Packageorg.apache.flex.graphics
Classpublic class PathBuilder
InheritancePathBuilder Inheritance Object



Public Methods
 MethodDefined By
  
Constructor.
PathBuilder
  
cubicCurveTo(controlX1:Number, controlY1:Number, controlX2:Number, controlY2:Number, anchorX:Number, anchorY:Number):void
PathBuilder
  
draw(g:Graphics):void
PathBuilder
  
drawRoundRectComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void
PathBuilder
  
drawRoundRectComplex2(x:Number, y:Number, width:Number, height:Number, radiusX:Number, radiusY:Number, topLeftRadiusX:Number, topLeftRadiusY:Number, topRightRadiusX:Number, topRightRadiusY:Number, bottomLeftRadiusX:Number, bottomLeftRadiusY:Number, bottomRightRadiusX:Number, bottomRightRadiusY:Number):void
Draws a rounded rectangle using the size of individual x and y radii to draw the rounded corners.
PathBuilder
  
getPathString():String
PathBuilder
  
lineTo(x:Number, y:Number):void
PathBuilder
  
moveTo(x:Number, y:Number):void
PathBuilder
  
quadraticCurveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
PathBuilder
Constructor Detail
PathBuilder()Constructor
public function PathBuilder()

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor.

Method Detail
cubicCurveTo()method
public function cubicCurveTo(controlX1:Number, controlY1:Number, controlX2:Number, controlY2:Number, anchorX:Number, anchorY:Number):void

Parameters

controlX1:Number
 
controlY1:Number
 
controlX2:Number
 
controlY2:Number
 
anchorX:Number
 
anchorY:Number

draw()method 
public function draw(g:Graphics):void

Parameters

g:Graphics

drawRoundRectComplex()method 
public function drawRoundRectComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void

Parameters

x:Number
 
y:Number
 
width:Number
 
height:Number
 
topLeftRadius:Number
 
topRightRadius:Number
 
bottomLeftRadius:Number
 
bottomRightRadius:Number

drawRoundRectComplex2()method 
public function drawRoundRectComplex2(x:Number, y:Number, width:Number, height:Number, radiusX:Number, radiusY:Number, topLeftRadiusX:Number, topLeftRadiusY:Number, topRightRadiusX:Number, topRightRadiusY:Number, bottomLeftRadiusX:Number, bottomLeftRadiusY:Number, bottomRightRadiusX:Number, bottomRightRadiusY:Number):void

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

Draws a rounded rectangle using the size of individual x and y radii to draw the rounded corners.

Parameters

x:Number — The horizontal position relative to the registration point of the parent display object, in pixels.
 
y:Number — The vertical position relative to the registration point of the parent display object, in pixels.
 
width:Number — The width of the round rectangle, in pixels.
 
height:Number — The height of the round rectangle, in pixels.
 
radiusX:Number — The default radiusX to use, if corner-specific values are not specified. This value must be specified.
 
radiusY:Number — The default radiusY to use, if corner-specific values are not specified. If 0, the value of radiusX is used.
 
topLeftRadiusX:Number — The x radius of the upper-left corner, in pixels. If NaN, the value of radiusX is used.
 
topLeftRadiusY:Number — The y radius of the upper-left corner, in pixels. If NaN, the value of topLeftRadiusX is used.
 
topRightRadiusX:Number — The x radius of the upper-right corner, in pixels. If NaN, the value of radiusX is used.
 
topRightRadiusY:Number — The y radius of the upper-right corner, in pixels. If NaN, the value of topRightRadiusX is used.
 
bottomLeftRadiusX:Number — The x radius of the bottom-left corner, in pixels. If NaN, the value of radiusX is used.
 
bottomLeftRadiusY:Number — The y radius of the bottom-left corner, in pixels. If NaN, the value of bottomLeftRadiusX is used.
 
bottomRightRadiusX:Number — The x radius of the bottom-right corner, in pixels. If NaN, the value of radiusX is used.
 
bottomRightRadiusY:Number — The y radius of the bottom-right corner, in pixels. If NaN, the value of bottomRightRadiusX is used.

getPathString()method 
public function getPathString():String

Returns
String
lineTo()method 
public function lineTo(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

moveTo()method 
public function moveTo(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

quadraticCurveTo()method 
public function quadraticCurveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void

Parameters

controlX:Number
 
controlY:Number
 
anchorX:Number
 
anchorY:Number