Packageorg.aswing
Classpublic class GradientBackground
ImplementsGroundDecorator

A background decorator that paint a gradient color.



Public Methods
 MethodDefined by
  
GradientBackground(fillType:String, colors:Array, alphas:Array, ratios:Array, direction:Number = 0, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRatio:Number = 0)
GradientBackground
  
getDisplay(c:Component):DisplayObject
GradientBackground
  
GradientBackground
Constructor detail
GradientBackground()constructor
public function GradientBackground(fillType:String, colors:Array, alphas:Array, ratios:Array, direction:Number = 0, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRatio:Number = 0)Parameters
fillType:String
 
colors:Array
 
alphas:Array
 
ratios:Array
 
direction:Number (default = 0)
 
spreadMethod:String (default = "pad")
 
interpolationMethod:String (default = "rgb")
 
focalPointRatio:Number (default = 0)
Method detail
getDisplay()method
public function getDisplay(c:Component):DisplayObjectParameters
c:Component

Returns
DisplayObject
updateDecorator()method 
public function updateDecorator(com:Component, g:Graphics2D, bounds:IntRectangle):voidParameters
com:Component
 
g:Graphics2D
 
bounds:IntRectangle