flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Added clear method and some comments to PathBuilder
Date Sun, 05 Mar 2017 22:30:05 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 08c169b48 -> be0682c25


Added clear method and some comments to PathBuilder


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/be0682c2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/be0682c2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/be0682c2

Branch: refs/heads/develop
Commit: be0682c256ee057e2c18698a81b138b11fdef74d
Parents: 08c169b
Author: Harbs <harbs@in-tools.com>
Authored: Mon Mar 6 00:30:00 2017 +0200
Committer: Harbs <harbs@in-tools.com>
Committed: Mon Mar 6 00:30:00 2017 +0200

----------------------------------------------------------------------
 .../org/apache/flex/graphics/PathBuilder.as     | 90 +++++++++++++++++++-
 1 file changed, 89 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/be0682c2/frameworks/projects/Graphics/src/main/flex/org/apache/flex/graphics/PathBuilder.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/src/main/flex/org/apache/flex/graphics/PathBuilder.as
b/frameworks/projects/Graphics/src/main/flex/org/apache/flex/graphics/PathBuilder.as
index 47359fc..39807d4 100644
--- a/frameworks/projects/Graphics/src/main/flex/org/apache/flex/graphics/PathBuilder.as
+++ b/frameworks/projects/Graphics/src/main/flex/org/apache/flex/graphics/PathBuilder.as
@@ -29,7 +29,7 @@ package org.apache.flex.graphics
          *  @langversion 3.0
          *  @playerversion Flash 9
          *  @playerversion AIR 1.1
-         *  @productversion Flex 3
+		 *  @productversion FlexJS 0.6
          */
         public function PathBuilder(closedPath:Boolean=false)
         {
@@ -37,6 +37,27 @@ package org.apache.flex.graphics
 			this.closedPath = closedPath;
         }
 
+		/**
+		 *  Clears the path data
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.8
+		 */
+        public function clear():void
+        {
+            commands.length = 0;
+        }
+
+		/**
+		 *  Gets a string representation of the path which can be used in SVG.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function getPathString():String
         {
 			var pathString:String = commands.join(" ");
@@ -46,6 +67,15 @@ package org.apache.flex.graphics
 			}
 			return pathString;
         }
+
+		/**
+		 *  Draws the paths to the specified context.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         COMPILE::SWF
         public function draw(g:Graphics):void
         {
@@ -71,27 +101,77 @@ package org.apache.flex.graphics
         }
 
         private var commands:Vector.<IPathCommand>;
+
+		/**
+		 *  Specifies whether the path should auto-close.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public var closedPath:Boolean;
         
+		/**
+		 *  Adds a lineTo command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function lineTo(x:Number, y:Number):void
         {
             commands.push(new LineTo(x,y));
         }
         
+		/**
+		 *  Adds a moveTo command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function moveTo(x:Number, y:Number):void
         {
             commands.push(new MoveTo(x,y));
         }
         
+		/**
+		 *  Adds a quadraticCurveTo command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function quadraticCurveTo(controlX:Number, controlY:Number, anchorX:Number,
anchorY:Number):void
         {
             commands.push(new QuadraticCurve(controlX,controlY,anchorX,anchorY));
         }
         
+		/**
+		 *  Adds a cubicCurveTo command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function cubicCurveTo(controlX1:Number, controlY1:Number, controlX2:Number,
controlY2:Number, anchorX:Number, anchorY:Number):void
         {
             commands.push(new CubicCurve(controlX1, controlY1, controlX2, controlY2, anchorX,
anchorY));
         }
+
+		/**
+		 *  Adds a drawRect command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function drawRect(x:Number,y:Number,width:Number,height:Number):void
         {
             commands.push(new MoveTo(x,y));
@@ -101,6 +181,14 @@ package org.apache.flex.graphics
             commands.push(new LineTo(x,y));
         }
 
+		/**
+		 *  Adds a drawRoundRectComplex command
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion FlexJS 0.6
+		 */
         public function drawRoundRectComplex(x:Number, y:Number, 
                                                     width:Number, height:Number, 
                                                     topLeftRadius:Number, topRightRadius:Number,



Mime
View raw message