Class SolidBackdrop

java.lang.Object
com.ardor3d.extension.ui.backdrop.UIBackdrop
com.ardor3d.extension.ui.backdrop.SolidBackdrop
Direct Known Subclasses:
ImageBackdrop, MultiImageBackdrop

public class SolidBackdrop extends UIBackdrop
This backdrop paints a solid rectangle of color behind a UI component.
  • Constructor Details

    • SolidBackdrop

      public SolidBackdrop(ReadOnlyColorRGBA color)
      Construct this backdrop, using the given color.
      Parameters:
      color - the color of the backdrop
  • Method Details

    • getColor

      public ReadOnlyColorRGBA getColor()
      Returns:
      the color of this back drop.
    • setColor

      public void setColor(ReadOnlyColorRGBA color)
      Set the color of this back drop.
      Parameters:
      color - the color to use
    • draw

      public void draw(Renderer renderer, UIComponent comp)
      Description copied from class: UIBackdrop
      Draw this backdrop. Override this method to do the actual work.
      Specified by:
      draw in class UIBackdrop
      Parameters:
      renderer - the renderer to use in drawing.
      comp - the component we are drawing the background for.