Packageorg.openzet.display
Classpublic class DrawingLayer
InheritanceDrawingLayer Inheritance flash.display.Sprite

Drawing class that has a separate Sprite object for line drawing.



Public Methods
 MethodDefined by
  
DrawingLayer(fillColor:uint = 0x6378ed, fillAlpha:Number = 0.5, lineThickness:uint = 1, lineColor:uint = 0x000000)
Constructor
DrawingLayer
  
clear():void
Clears all drawing.
DrawingLayer
  
drawRect(x:Number, y:Number, width:Number, height:Number):void
Draws a rectangle with specified x, y, width, height values.
DrawingLayer
Constructor detail
DrawingLayer()constructor
public function DrawingLayer(fillColor:uint = 0x6378ed, fillAlpha:Number = 0.5, lineThickness:uint = 1, lineColor:uint = 0x000000)

Constructor

Parameters
fillColor:uint (default = 0x6378ed)
 
fillAlpha:Number (default = 0.5)
 
lineThickness:uint (default = 1)
 
lineColor:uint (default = 0x000000)
Method detail
clear()method
public function clear():void

Clears all drawing. Clears line drawing also.

drawRect()method 
public function drawRect(x:Number, y:Number, width:Number, height:Number):void

Draws a rectangle with specified x, y, width, height values.

Parameters
x:Number — x position
 
y:Number — y position
 
width:Number — width of the rectangle
 
height:Number — height of the rectangle