Modifier and Type | Method and Description |
---|---|
ej.microui.util.EventHandler |
getEventHandler()
Gets the event handler.
|
int |
getHeight()
Gets the height of this renderable.
|
int |
getWidth()
Gets the width of this renderable.
|
int |
getX()
Gets the x coordinate of this renderable, relative to its parent.
|
int |
getY()
Gets the y coordinate of this renderable, relative to its parent.
|
boolean |
handleEvent(int event)
Called by the system when an event occurred.
Pointer related events are sent to the pointed renderable. |
void |
hideNotify()
This method is called as soon as the renderable is hidden.
|
boolean |
isShown()
Gets whether or not this renderable is shown on a display.
|
void |
render(ej.microui.display.GraphicsContext g)
Renders the renderable on the given graphics context.
|
void |
repaint()
Requests a repaint of this renderable.
|
void |
repaint(int x,
int y,
int width,
int height)
Requests a repaint of a zone of this renderable.
|
void |
setEventHandler(ej.microui.util.EventHandler eventHandler)
Sets the event handler.
|
void |
showNotify()
This method is called as soon as the renderable is visible.
|
int getX()
int getY()
int getWidth()
int getHeight()
boolean isShown()
true
if the renderable is shown, false
otherwisevoid showNotify()
void hideNotify()
void repaint()
void repaint(int x, int y, int width, int height)
x
- the relative x coordinate of the area to repainty
- the relative y coordinate of the area to repaintwidth
- the width of the area to repaintheight
- the height of the area to repaintvoid render(ej.microui.display.GraphicsContext g)
g
- the graphics context to be used to draw the renderable.void setEventHandler(ej.microui.util.EventHandler eventHandler)
eventHandler
- the event handler to set.handleEvent(int)
ej.microui.util.EventHandler getEventHandler()
handleEvent(int)
boolean handleEvent(int event)
event
- the event to handletrue
if the renderable has consumed the event, false
otherwise