Class SolidBackdrop
java.lang.Object
com.ardor3d.extension.ui.backdrop.UIBackdrop
com.ardor3d.extension.ui.backdrop.SolidBackdrop
- Direct Known Subclasses:
ImageBackdrop
,MultiImageBackdrop
This backdrop paints a solid rectangle of color behind a UI component.
-
Constructor Summary
ConstructorDescriptionSolidBackdrop
(ReadOnlyColorRGBA color) Construct this backdrop, using the given color. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Renderer renderer, UIComponent comp) Draw this backdrop.getColor()
void
setColor
(ReadOnlyColorRGBA color) Set the color of this back drop.Methods inherited from class com.ardor3d.extension.ui.backdrop.UIBackdrop
getBackdropHeight, getBackdropWidth
-
Constructor Details
-
SolidBackdrop
Construct this backdrop, using the given color.- Parameters:
color
- the color of the backdrop
-
-
Method Details
-
getColor
- Returns:
- the color of this back drop.
-
setColor
Set the color of this back drop.- Parameters:
color
- the color to use
-
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.
-