Packagecom.nocircleno.graffiti.tools
Interfacepublic interface ITool
Implementors BrushTool, LineTool, ShapeTool

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

The ITool interface will be implemented by the BrushTool, LineTool and ShapeTool Classes.



Public Properties
 PropertyDefined By
  mode : String
ITool
  renderType : String
[read-only] Tools Render Mode
ITool
  type : String
ITool
Public Methods
 MethodDefined By
  
apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void
The apply method must be implemented by the sub Class.
ITool
  
resetTool():void
The resetTool method must be implemented by the sub Class.
ITool
Property Detail
modeproperty
mode:String  [read-write]


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

Tools Render Mode


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


Implementation
    public function get type():String
    public function set type(value:String):void
Method Detail
apply()method
public function apply(drawingTarget:DisplayObject, point1:Point, point2:Point = null):void

The apply method must be implemented by the sub Class.

Parameters

drawingTarget:DisplayObject — Sprite object to draw to.
 
point1:Point — First Point of Drawing interaction.
 
point2:Point (default = null) — Second Point of Drawing interaction.

resetTool()method 
public function resetTool():void

The resetTool method must be implemented by the sub Class.