| Package | com.nocircleno.graffiti.tools |
| Class | public class Line |
| Inheritance | Line Object |
| Implements | ITool |
| Property | Defined By | ||
|---|---|---|---|
| color : uint | Line | ||
| lineWidth : Number | Line | ||
| mode : String | Line | ||
| renderType : String [read-only]
Line Render Mode
| Line | ||
| type : String | Line | ||
| Method | Defined By | ||
|---|---|---|---|
Line(lineWidth:Number = 4, lineColor:uint = 0x000000, lineType:String = null, toolMode:String = null)
The Line constructor. | Line | ||
apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void
The apply method applies the line to the Sprite object passed
to the method. | Line | ||
| color | property |
color:uint [read-write] public function get color():uint public function set color(value:uint):void| lineWidth | property |
lineWidth:Number [read-write] public function get lineWidth():Number public function set lineWidth(value:Number):void| mode | property |
mode:String [read-write] public function get mode():String public function set mode(value:String):void| renderType | property |
renderType:String [read-only] Line Render Mode
public function get renderType():String| type | property |
type:String [read-write] public function get type():String public function set type(value:String):void| Line | () | Constructor |
public function Line(lineWidth:Number = 4, lineColor:uint = 0x000000, lineType:String = null, toolMode:String = null)
The Line constructor.
lineWidth:Number (default = 4) — Line width.
| |
lineColor:uint (default = 0x000000) — Line Color.
| |
lineType:String (default = null) — Type of Line.
| |
toolMode:String (default = null) — Tool mode the Line will be drawing with.
|
// create a dotted line of size 8 and the color of red
var dottedLine:Line = new Line(8, 0xFF0000, LineType.DOTTED);
| apply | () | method |
public function apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void
The apply method applies the line to the Sprite object passed
to the method.
Parameters
drawingTarget:DisplayObject — Sprite that the line will draw to.
| |
point1:Point — Starting point to apply line.
| |
point2:Point (default = null) — End point to apply line.
|