public class SimpleImageBackground extends AbstractImageBackground
Constructor and Description |
---|
SimpleImageBackground()
Creates a simple image background.
|
SimpleImageBackground(ej.microui.display.Image image,
int alignment,
boolean fillColor)
Creates a simple image background specifying its image and alignment.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawImage(ej.microui.display.GraphicsContext g,
Rectangle bounds)
Draws the background image.
|
apply, getAlignment, getImage, isFillColor, isTransparent, setAlignment, setFillColor, setImage
public SimpleImageBackground()
public SimpleImageBackground(ej.microui.display.Image image, int alignment, boolean fillColor)
image
- the background image to set.alignment
- the alignment to set.fillColor
- true
to fill with color before drawing the image, false
otherwise.protected void drawImage(ej.microui.display.GraphicsContext g, Rectangle bounds)
AbstractImageBackground
drawImage
in class AbstractImageBackground
g
- the graphics context.bounds
- the available rectangle.