class org.aswing.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.

@author paling

Class Fields

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.

Instance Fields

function new(): Void

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

function addInvalidComponent(com:Component): Void

Find the Component's validate root parent and regist it need to validate. @see org.aswing.Component#revalidate() @see org.aswing.Component#validate() @see org.aswing.Component#invalidate()

function addInvalidRootComponent(com:Component): Void

Regists it need to be validated. @see org.aswing.Component#validate()

function addRepaintComponent(com:Component): Void

Regist A Component need to repaint. @see org.aswing.Component#repaint()

function setAlwaysUseTimer(b:Bool, ?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.

b

true to make it always use timer, false not.

delay

the timer delay, by default it is 19 ms.