| Package | com.nocircleno.graffiti.tools |
| Class | public class BitmapTool |
| Inheritance | BitmapTool Object |
| Implements | ITool |
| Subclasses | BrushTool, LineTool, ShapeTool |
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10 - AIR 1.5 |
| Property | Defined By | ||
|---|---|---|---|
| layerType : String [read-only]
Layer Tool Writes to
| BitmapTool | ||
| mode : String | BitmapTool | ||
| renderType : String [read-only]
Render Type
| BitmapTool | ||
| type : String | BitmapTool | ||
| Property | Defined By | ||
|---|---|---|---|
| commands : Vector.<int> | BitmapTool | ||
| drawingData : Vector.<Number> | BitmapTool | ||
| _mode : String | BitmapTool | ||
| _renderType : String | BitmapTool | ||
| _type : String | BitmapTool | ||
| Method | Defined By | ||
|---|---|---|---|
| BitmapTool | |||
apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void
The apply method applies the BitmapTool to the DisplayObject passed
to the method. | BitmapTool | ||
resetTool():void
The resetTool method will reset the drawing data held by the tool. | BitmapTool | ||
| Constant | Defined By | ||
|---|---|---|---|
| LAYER_TYPE : String = drawingLayer | BitmapTool | ||
| _mode | property |
protected var _mode:String| _renderType | property |
protected var _renderType:String| _type | property |
protected var _type:String| commands | property |
protected var commands:Vector.<int>| drawingData | property |
protected var drawingData:Vector.<Number>| layerType | property |
layerType:String [read-only] Layer Tool Writes to
public function get layerType():String| mode | property |
mode:String [read-write] public function get mode():String public function set mode(value:String):void| renderType | property |
renderType:String [read-only] Render Type
public function get renderType():String| type | property |
type:String [read-write] public function get type():String public function set type(value:String):void| BitmapTool | () | Constructor |
public function BitmapTool()| apply | () | method |
public function apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void
The apply method applies the BitmapTool to the DisplayObject passed
to the method.
Parameters
drawingTarget:DisplayObject — Sprite that the bitmap tool will draw to.
| |
point1:Point — Starting point to apply tool.
| |
point2:Point (default = null) — End point to apply tool.
|
| resetTool | () | method |
public function resetTool():void
The resetTool method will reset the drawing data held by the tool.
| LAYER_TYPE | Constant |
protected const LAYER_TYPE:String = drawingLayer