Class GradientBackdrop
java.lang.Object
com.ardor3d.extension.ui.backdrop.UIBackdrop
com.ardor3d.extension.ui.backdrop.GradientBackdrop
A gradient four color backdrop. Each corner can be a different color and it will be blended across the background.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct this back drop, using default colors.GradientBackdrop(ReadOnlyColorRGBA topLeft, ReadOnlyColorRGBA topRight, ReadOnlyColorRGBA bottomLeft, ReadOnlyColorRGBA bottomRight) Construct this back drop, using the given corner colors. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Renderer renderer, UIComponent comp) Draw this backdrop.voidsetBottomLeft(ReadOnlyColorRGBA color) voidsetBottomRight(ReadOnlyColorRGBA color) voidsetTopLeft(ReadOnlyColorRGBA color) voidsetTopRight(ReadOnlyColorRGBA color) Methods inherited from class com.ardor3d.extension.ui.backdrop.UIBackdrop
getBackdropHeight, getBackdropWidth
-
Constructor Details
-
GradientBackdrop
public GradientBackdrop()Construct this back drop, using default colors. -
GradientBackdrop
public GradientBackdrop(ReadOnlyColorRGBA topLeft, ReadOnlyColorRGBA topRight, ReadOnlyColorRGBA bottomLeft, ReadOnlyColorRGBA bottomRight) Construct this back drop, using the given corner colors.- Parameters:
topLeft- the top left corner's colortopRight- the top right corner's colorbottomLeft- the bottom left corner's colorbottomRight- the bottom right corner's color
-
-
Method Details
-
getBottomLeft
-
setBottomLeft
-
getBottomRight
-
setBottomRight
-
getTopLeft
-
setTopLeft
-
getTopRight
-
setTopRight
-
draw
Description copied from class:UIBackdropDraw this backdrop. Override this method to do the actual work.- Specified by:
drawin classUIBackdrop- Parameters:
renderer- the renderer to use in drawing.comp- the component we are drawing the background for.
-