public final class NoBackground extends java.lang.Object implements Background
Modifier and Type | Field and Description |
---|---|
static NoBackground |
NO_BACKGROUND
No background singleton to avoid creating several ones.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle rectangle,
int color)
Applies the background on a graphics context.
|
boolean |
isTransparent()
Tells whether or not the background is transparent.
|
public static final NoBackground NO_BACKGROUND
public boolean isTransparent()
Background
isTransparent
in interface Background
true
if the background is transparent, false
otherwise.public void apply(ej.microui.display.GraphicsContext g, Rectangle rectangle, int color)
Background
apply
in interface Background
g
- the graphics context.rectangle
- the available rectangle.color
- the background color.