Package ej.widget.debug
Class RenderMonitor
- java.lang.Object
-
- ej.widget.debug.RenderMonitor
-
- All Implemented Interfaces:
RenderPolicy.RenderListener
public class RenderMonitor extends Object implements RenderPolicy.RenderListener
Monitor for Widget rendering.It uses a
Loggerwith 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 Summary
Constructors Constructor Description RenderMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRenderExecuted(Widget widget, int x, int y, int width, int height)Handles a render execution notification.voidonRenderRequested(Widget widget, int x, int y, int width, int height)Handles a render request notification.
-
-
-
Method Detail
-
onRenderRequested
public void onRenderRequested(Widget widget, int x, int y, int width, int height)
Description copied from interface:RenderPolicy.RenderListenerHandles a render request notification.Called by the
RenderPolicywhen a widget render is requested, in application thread.
It is not called for each successive rendering relative to theRenderPolicy.
It is not called for each successive rendering relative to the widget hierarchy.- Specified by:
onRenderRequestedin interfaceRenderPolicy.RenderListener- Parameters:
widget- 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.
-
onRenderExecuted
public void onRenderExecuted(Widget widget, int x, int y, int width, int height)
Description copied from interface:RenderPolicy.RenderListenerHandles a render execution notification.Called by the
RenderPolicywhen a widget is rendered, in MicroUI thread.
It is called for each successive rendering relative to theRenderPolicy.
It is not called for each successive rendering relative to the widget hierarchy.- Specified by:
onRenderExecutedin interfaceRenderPolicy.RenderListener- Parameters:
widget- 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.
-
-