Class SolidDiskBackdrop

java.lang.Object
com.ardor3d.extension.ui.backdrop.UIBackdrop
com.ardor3d.extension.ui.backdrop.SolidDiskBackdrop
Direct Known Subclasses:
ImageDiskBackdrop

public class SolidDiskBackdrop extends UIBackdrop
This backdrop paints a solid disk of color behind a UI component.
  • Field Details

    • _color

      protected final ColorRGBA _color
      The color to draw
  • Constructor Details

    • SolidDiskBackdrop

      public SolidDiskBackdrop(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.
    • createStandinDisk

      public static UIDisk createStandinDisk()