Packagecom.nocircleno.graffiti.tools
Classpublic class BitmapTool
InheritanceBitmapTool Inheritance Object
Implements ITool
Subclasses BrushTool, LineTool, ShapeTool

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10 - AIR 1.5

BitmapTool Class is the base class used by Tools that draw to the bitmap layer.



Public Properties
 PropertyDefined By
  layerType : String
[read-only] Layer Tool Writes to
BitmapTool
  mode : String
BitmapTool
  renderType : String
[read-only] Render Type
BitmapTool
  type : String
BitmapTool
Protected Properties
 PropertyDefined By
  commands : Vector.<int>
BitmapTool
  drawingData : Vector.<Number>
BitmapTool
  _mode : String
BitmapTool
  _renderType : String
BitmapTool
  _type : String
BitmapTool
Public Methods
 MethodDefined 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
Protected Constants
 ConstantDefined By
  LAYER_TYPE : String = drawingLayer
BitmapTool
Property Detail
_modeproperty
protected var _mode:String

_renderTypeproperty 
protected var _renderType:String

_typeproperty 
protected var _type:String

commandsproperty 
protected var commands:Vector.<int>

drawingDataproperty 
protected var drawingData:Vector.<Number>

layerTypeproperty 
layerType:String  [read-only]

Layer Tool Writes to


Implementation
    public function get layerType():String
modeproperty 
mode:String  [read-write]


Implementation
    public function get mode():String
    public function set mode(value:String):void
renderTypeproperty 
renderType:String  [read-only]

Render Type


Implementation
    public function get renderType():String
typeproperty 
type:String  [read-write]


Implementation
    public function get type():String
    public function set type(value:String):void
Constructor Detail
BitmapTool()Constructor
public function BitmapTool()



Method Detail
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.

Constant Detail
LAYER_TYPEConstant
protected const LAYER_TYPE:String = drawingLayer