Packageorg.openPyro.painters
Classpublic class StrokePainter
ImplementsIPainter

Paints a Stroke on the Graphics context of a DisplayObject. The Painter can be configured to paint only selected sides of a control



Public Properties
 PropertyDefined by
  padding : Padding
StrokePainter
Public Methods
 MethodDefined by
  
StrokePainter(stroke:Stroke, top:Boolean = true, right:Boolean = true, bottom:Boolean = true, left:Boolean = true)
StrokePainter
  
draw(gr:Graphics, w:Number, h:Number):void
Paints the graphics context of the DisplayObject
StrokePainter
  
setBorderSides(top:Boolean = true, right:Boolean = true, bottom:Boolean = true, left:Boolean = true):void
StrokePainter
Property detail
paddingproperty
padding:Padding  [read-write]

Implementation
    public function get padding():Padding
    public function set padding(value:Padding):void
Constructor detail
StrokePainter()constructor
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)
Method detail
draw()method
public function draw(gr:Graphics, w:Number, h:Number):void

Paints the graphics context of the DisplayObject

Parameters
gr:Graphics
 
w:Number
 
h:Number
setBorderSides()method 
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)