| Package | org.aswing |
| Class | public class RepaintManager |
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.
| Method | Defined by | ||
|---|---|---|---|
|
Singleton class,
Don't create instance directly, in stead you should call
getInstance(). | RepaintManager | ||
|
addInvalidComponent(com:Component):void
Find the Component's validate root parent and regist it need to validate.
| RepaintManager | ||
|
addInvalidRootComponent(com:Component):void
Regists it need to be validated.
| RepaintManager | ||
|
addRepaintComponent(com:Component):void
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 | ||
| RepaintManager | () | constructor |
public function RepaintManager()
Singleton class,
Don't create instance directly, in stead you should call getInstance().
| addInvalidComponent | () | method |
public function addInvalidComponent(com:Component):voidFind the Component's validate root parent and regist it need to validate.
Parameterscom:Component |
See also
| addInvalidRootComponent | () | method |
public function addInvalidRootComponent(com:Component):voidRegists it need to be validated.
Parameterscom:Component |
See also
| addRepaintComponent | () | method |
public function addRepaintComponent(com:Component):voidRegist A Component need to repaint.
Parameterscom:Component |
See also
| getInstance | () | method |
public static function getInstance():RepaintManagerInit 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.
ReturnsRepaintManager |
| setAlwaysUseTimer | () | method |
public function setAlwaysUseTimer(b:Boolean, delay:int = 19):voidSets 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.
Parametersb:Boolean — true to make it always use timer, false not.
|
|
delay:int (default = 19) — the timer delay, by default it is 19 ms.
|