Paints a Stroke on the Graphics context of a DisplayObject.
The Painter can be configured to paint only selected sides
of a control
padding:Padding [read-write]
Implementation
public function get padding():Padding
public function set padding(value:Padding):void
public function StrokePainter(stroke:Stroke, top:Boolean = true, right:Boolean = true, bottom:Boolean = true, left:Boolean = true)Parameters
| stroke:Stroke |
| |
| top:Boolean (default = true) |
| |
| right:Boolean (default = true) |
| |
| bottom:Boolean (default = true) |
| |
| left:Boolean (default = true) |
public function draw(gr:Graphics, w:Number, h:Number):void
Paints the graphics context of the DisplayObject
Parameters
| gr:Graphics |
| |
| w:Number |
| |
| h:Number |
public function setBorderSides(top:Boolean = true, right:Boolean = true, bottom:Boolean = true, left:Boolean = true):voidParameters
| top:Boolean (default = true) |
| |
| right:Boolean (default = true) |
| |
| bottom:Boolean (default = true) |
| |
| left:Boolean (default = true) |