| Package | org.openzet.display |
| Class | public class DrawingLayer |
| Inheritance | DrawingLayer flash.display.Sprite |
| Method | Defined 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 | ||
| DrawingLayer | () | constructor |
public function DrawingLayer(fillColor:uint = 0x6378ed, fillAlpha:Number = 0.5, lineThickness:uint = 1, lineColor:uint = 0x000000)Constructor
ParametersfillColor:uint (default = 0x6378ed) |
|
fillAlpha:Number (default = 0.5) |
|
lineThickness:uint (default = 1) |
|
lineColor:uint (default = 0x000000) |
| clear | () | method |
public function clear():voidClears all drawing. Clears line drawing also.
| drawRect | () | method |
public function drawRect(x:Number, y:Number, width:Number, height:Number):voidDraws a rectangle with specified x, y, width, height values.
Parametersx:Number — x position
|
|
y:Number — y position
|
|
width:Number — width of the rectangle
|
|
height:Number — height of the rectangle
|