Package com.microej.mwt
Class Trace
- java.lang.Object
-
- com.microej.mwt.Trace
-
public class Trace extends java.lang.ObjectThis class is only used internally by MWT to add trace events.
-
-
Field Summary
Fields Modifier and Type Field Description static intANIMATION_EVENTEvent when an animation is running.static intANIMATION_FPS_EVENTEvent when an animation ends with its FPS.static intANIMATOR_TICK_EVENTEvent when an animator is ticking.static intCOMPUTE_SIZE_WIDGET_EVENTEvent when computing the size of a widget.static intCREATE_DESKTOP_EVENTEvent when creating a desktop.static intCREATE_WIDGET_EVENTEvent when creating a widget.static intLAYOUT_WIDGET_EVENTEvent when setting the position and size of a widget.static java.lang.StringLOG_TRACE_ENABLED_CONSTANTBON boolean constantto enable/disable the logs associated with the traces.static intON_ATTACHED_WIDGET_EVENTEvent when a widget is attached.static intON_DETACHED_WIDGET_EVENTEvent when a widget is detached.static intON_HIDDEN_DESKTOP_EVENTEvent when a desktop is hidden.static intON_HIDDEN_WIDGET_EVENTEvent when a widget is hidden.static intON_SHOWN_DESKTOP_EVENTEvent when a desktop is shown.static intON_SHOWN_WIDGET_EVENTEvent when a widget is shown.static intRENDER_WIDGET_EVENTEvent when rendering a widget.static intREQUEST_DESKTOP_LAYOUT_EVENTEvent when requesting to layout a desktop.static intREQUEST_DESKTOP_RENDER_EVENTEvent when requesting to render a desktop.static intREQUEST_DESKTOP_SHOW_EVENTEvent when requesting to show a desktop.static intREQUEST_WIDGET_LAYOUT_EVENTEvent when requesting to layout a widget.static intREQUEST_WIDGET_RENDER_EVENTEvent when requesting to render a widget.static ej.trace.TracerTRACERInstance of the tracer.static intUPDATE_STYLE_WIDGET_EVENTEvent when updating the style of a widget.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateNewAnimation(Animation animation)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static voidcreateNewDesktop(Desktop desktop)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static voidcreateNewWidget(Widget widget)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static intgetGraphicsContextId(ej.microui.display.GraphicsContext gc)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static intgetObjectId(java.lang.Object object)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static intgetObjectTypeId(java.lang.Object object)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static voidstopAnimation(Animation animation)Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static voidtickAnimator()Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.static voidtickAnimatorEnd()Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
-
-
Field Detail
-
LOG_TRACE_ENABLED_CONSTANT
public static final java.lang.String LOG_TRACE_ENABLED_CONSTANT
BON boolean constantto enable/disable the logs associated with the traces.If enabled,
Tracer.TRACE_ENABLED_CONSTANT_PROPERTYmust also be set.It helps to understand the traces and more specifically the IDs associated to the desktops and widgets.
- See Also:
- Constant Field Values
-
CREATE_WIDGET_EVENT
public static final int CREATE_WIDGET_EVENT
Event when creating a widget.- See Also:
- Constant Field Values
-
CREATE_DESKTOP_EVENT
public static final int CREATE_DESKTOP_EVENT
Event when creating a desktop.- See Also:
- Constant Field Values
-
REQUEST_DESKTOP_SHOW_EVENT
public static final int REQUEST_DESKTOP_SHOW_EVENT
Event when requesting to show a desktop.- See Also:
- Constant Field Values
-
REQUEST_WIDGET_LAYOUT_EVENT
public static final int REQUEST_WIDGET_LAYOUT_EVENT
Event when requesting to layout a widget.- See Also:
- Constant Field Values
-
REQUEST_DESKTOP_LAYOUT_EVENT
public static final int REQUEST_DESKTOP_LAYOUT_EVENT
Event when requesting to layout a desktop.- See Also:
- Constant Field Values
-
REQUEST_WIDGET_RENDER_EVENT
public static final int REQUEST_WIDGET_RENDER_EVENT
Event when requesting to render a widget.- See Also:
- Constant Field Values
-
REQUEST_DESKTOP_RENDER_EVENT
public static final int REQUEST_DESKTOP_RENDER_EVENT
Event when requesting to render a desktop.- See Also:
- Constant Field Values
-
UPDATE_STYLE_WIDGET_EVENT
public static final int UPDATE_STYLE_WIDGET_EVENT
Event when updating the style of a widget.- See Also:
- Constant Field Values
-
COMPUTE_SIZE_WIDGET_EVENT
public static final int COMPUTE_SIZE_WIDGET_EVENT
Event when computing the size of a widget.- See Also:
- Constant Field Values
-
LAYOUT_WIDGET_EVENT
public static final int LAYOUT_WIDGET_EVENT
Event when setting the position and size of a widget.- See Also:
- Constant Field Values
-
RENDER_WIDGET_EVENT
public static final int RENDER_WIDGET_EVENT
Event when rendering a widget.- See Also:
- Constant Field Values
-
ON_SHOWN_WIDGET_EVENT
public static final int ON_SHOWN_WIDGET_EVENT
Event when a widget is shown.- See Also:
- Constant Field Values
-
ON_HIDDEN_WIDGET_EVENT
public static final int ON_HIDDEN_WIDGET_EVENT
Event when a widget is hidden.- See Also:
- Constant Field Values
-
ON_SHOWN_DESKTOP_EVENT
public static final int ON_SHOWN_DESKTOP_EVENT
Event when a desktop is shown.- See Also:
- Constant Field Values
-
ON_HIDDEN_DESKTOP_EVENT
public static final int ON_HIDDEN_DESKTOP_EVENT
Event when a desktop is hidden.- See Also:
- Constant Field Values
-
ON_ATTACHED_WIDGET_EVENT
public static final int ON_ATTACHED_WIDGET_EVENT
Event when a widget is attached.- See Also:
- Constant Field Values
-
ON_DETACHED_WIDGET_EVENT
public static final int ON_DETACHED_WIDGET_EVENT
Event when a widget is detached.- See Also:
- Constant Field Values
-
ANIMATION_EVENT
public static final int ANIMATION_EVENT
Event when an animation is running.- See Also:
- Constant Field Values
-
ANIMATION_FPS_EVENT
public static final int ANIMATION_FPS_EVENT
Event when an animation ends with its FPS.- See Also:
- Constant Field Values
-
ANIMATOR_TICK_EVENT
public static final int ANIMATOR_TICK_EVENT
Event when an animator is ticking.- See Also:
- Constant Field Values
-
TRACER
public static final ej.trace.Tracer TRACER
Instance of the tracer.
-
-
Method Detail
-
getObjectId
public static int getObjectId(java.lang.Object object)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
getObjectTypeId
public static int getObjectTypeId(java.lang.Object object)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
createNewDesktop
public static void createNewDesktop(Desktop desktop)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
createNewWidget
public static void createNewWidget(Widget widget)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
getGraphicsContextId
public static int getGraphicsContextId(ej.microui.display.GraphicsContext gc)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
tickAnimator
public static void tickAnimator()
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
tickAnimatorEnd
public static void tickAnimatorEnd()
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
createNewAnimation
public static void createNewAnimation(Animation animation)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
stopAnimation
public static void stopAnimation(Animation animation)
Should only be called ifTracer.TRACE_ENABLED_CONSTANT_PROPERTYistrue.
-
-