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
ConstructorDescriptionConstruct 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 TypeMethodDescriptionvoid
draw
(Renderer renderer, UIComponent comp) Draw this backdrop.void
setBottomLeft
(ReadOnlyColorRGBA color) void
setBottomRight
(ReadOnlyColorRGBA color) void
setTopLeft
(ReadOnlyColorRGBA color) void
setTopRight
(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:UIBackdrop
Draw this backdrop. Override this method to do the actual work.- Specified by:
draw
in classUIBackdrop
- Parameters:
renderer
- the renderer to use in drawing.comp
- the component we are drawing the background for.
-