Packageorg.aswing
Classpublic class RepaintManager

RepaintManager use to manager the component's painting.

If you want to repaint a component, call its repaint method, the component will register itself to RepaintManager, when this frame end, it will call its paintImmediately method to paint its. So component's repaint method is fast. But it will not paint immediately, if you want to paint it immediately, you should call paintImmediately method, but it is not fast.



Public Methods
 MethodDefined by
  
Singleton class, Don't create instance directly, in stead you should call getInstance().
RepaintManager
  
Find the Component's validate root parent and regist it need to validate.
RepaintManager
  
Regists it need to be validated.
RepaintManager
  
Regist A Component need to repaint.
RepaintManager
  
[static] Init the repaint manager, it will works better when it is inited.
RepaintManager
  
setAlwaysUseTimer(b:Boolean, delay:int = 19):void
Sets whether or not always use timer to trigger the repaint progress.
RepaintManager
Constructor detail
RepaintManager()constructor
public function RepaintManager()

Singleton class, Don't create instance directly, in stead you should call getInstance().

Method detail
addInvalidComponent()method
public function addInvalidComponent(com:Component):void

Find the Component's validate root parent and regist it need to validate.

Parameters
com:Component

See also

addInvalidRootComponent()method 
public function addInvalidRootComponent(com:Component):void

Regists it need to be validated.

Parameters
com:Component

See also

addRepaintComponent()method 
public function addRepaintComponent(com:Component):void

Regist A Component need to repaint.

Parameters
com:Component

See also

getInstance()method 
public static function getInstance():RepaintManager

Init the repaint manager, it will works better when it is inited. By default, it will be inited when a component is added to stage automatically.

Returns
RepaintManager
setAlwaysUseTimer()method 
public function setAlwaysUseTimer(b:Boolean, delay:int = 19):void

Sets whether or not always use timer to trigger the repaint progress. By default it is false, means use stage Event.RENDER to trigger at most time. It is better smooth for the rendering for Event.RENDER way, but if you make AsWing components works with Flex component, you should change to timer way.

Parameters
b:Boolean — true to make it always use timer, false not.
 
delay:int (default = 19) — the timer delay, by default it is 19 ms.