public class RenderMonitor extends Object implements RenderPolicy.RenderListener
It uses a Logger with following format:
Render requested on Path > To > MyWidget at {0,1 2x3} of {10,20 30x40}
by my.package.MyClass.myMethod(MyClass.java:0)
at my.package.MyClass.myCaller(MyClass.java:1)
at my.package.MyClass.myCaller(MyClass.java:2)
| Constructor and Description |
|---|
RenderMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onRenderExecuted(Widget widget,
int x,
int y,
int width,
int height)
Handles a render execution notification.
|
void |
onRenderRequested(Widget widget,
int x,
int y,
int width,
int height)
Handles a render request notification.
|
public void onRenderExecuted(Widget widget, int x, int y, int width, int height)
RenderPolicy.RenderListener
Called by the RenderPolicy when a widget is rendered, in MicroUI thread.
It is called for each successive rendering relative to the RenderPolicy.
It is not called for each successive rendering relative to the widget hierarchy.
onRenderExecuted in interface RenderPolicy.RenderListenerwidget - the rendered widget.x - the x coordinate of the rendered area.y - the y coordinate of the rendered area.width - the width of the rendered area.height - the height of the rendered area.public void onRenderRequested(Widget widget, int x, int y, int width, int height)
RenderPolicy.RenderListener
Called by the RenderPolicy when a widget render is requested, in application thread.
It is not called for each successive rendering relative to the RenderPolicy.
It is not called for each successive rendering relative to the widget hierarchy.
onRenderRequested in interface RenderPolicy.RenderListenerwidget - the widget requested to be rendered.x - the x coordinate of the area requested to be rendered.y - the y coordinate of the area requested to be rendered.width - the width of the area requested to be rendered.height - the height of the area requested to be rendered.