Package ej.mwt.style.background
Interface Background
-
- All Known Implementing Classes:
ImageBackground,NoBackground,RectangularBackground,RoundedBackground,TiledImageBackground
public interface BackgroundRepresents the background of the widgets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(ej.microui.display.GraphicsContext g, int width, int height)Applies the background on a graphics context.booleanequals(java.lang.Object obj)inthashCode()booleanisTransparent(int width, int height)Tells whether or not this background is transparent.
-
-
-
Method Detail
-
isTransparent
boolean isTransparent(int width, int height)Tells whether or not this background is transparent.A background is considered as transparent if it does not draw every pixel with maximal opacity when it is applied. If a widget has a transparent background, its parent has to be rendered before the widget.
- Parameters:
width- the width of the background.height- the height of the background.- Returns:
trueif the background is transparent,falseotherwise.
-
apply
void apply(ej.microui.display.GraphicsContext g, int width, int height)Applies the background on a graphics context.- Parameters:
g- the graphics context.width- the width of the background.height- the height of the background.
-
equals
boolean equals(@Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-