public class SimpleRoundedPlainBackground extends java.lang.Object implements Background
Should be used in association with a SimpleRoundedBorder
to:
Constructor and Description |
---|
SimpleRoundedPlainBackground()
Creates a simple rounded plain background.
|
SimpleRoundedPlainBackground(int cornerRadius)
Creates a simple rounded plain background specifying its corner radius.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle rectangle,
int color)
Applies the background on a graphics context.
|
int |
getCornerRadius()
Gets the corner radius.
|
boolean |
isTransparent()
Tells whether or not the background is transparent.
|
void |
setCornerRadius(int cornerRadius)
Sets the corner radius.
|
public SimpleRoundedPlainBackground()
public SimpleRoundedPlainBackground(int cornerRadius)
cornerRadius
- the corner radius to set.public int getCornerRadius()
public void setCornerRadius(int cornerRadius)
cornerRadius
- the corner radius to set.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.