Package com.microej.wear.components
Interface Watchface
-
public interface WatchfaceRepresents a watchface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RenderablecreateRenderable()Creates a renderable that renders this watchface.voidrenderPreview(ej.microui.display.GraphicsContext g, int x, int y, int size)Renders a preview of this watchface.
-
-
-
Method Detail
-
renderPreview
void renderPreview(ej.microui.display.GraphicsContext g, int x, int y, int size)Renders a preview of this watchface.- Parameters:
g- the graphics context to draw with.x- the x coordinate of the region to draw in.y- the y coordinate of the region to draw in.size- the width and height of the region to draw in.
-
createRenderable
Renderable createRenderable()
Creates a renderable that renders this watchface.This method is called when the watchface is scheduled for imminent rendering. The renderable is then attached immediately by calling (see
Renderable.onAttached()).- Returns:
- the renderable.
-
-