Class BackgroundComponent

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Dimension render​(java.awt.Graphics2D graphics)  
      void setBackgroundColor​(java.awt.Color backgroundColor)  
      void setFill​(boolean fill)  
      void setRectangle​(java.awt.Rectangle rectangle)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BackgroundComponent

        public BackgroundComponent()
      • BackgroundComponent

        public BackgroundComponent​(java.awt.Color backgroundColor,
                                   java.awt.Rectangle rectangle,
                                   boolean fill)
    • Method Detail

      • render

        public java.awt.Dimension render​(java.awt.Graphics2D graphics)
        Specified by:
        render in interface RenderableEntity
      • setBackgroundColor

        public void setBackgroundColor​(java.awt.Color backgroundColor)
      • setRectangle

        public void setRectangle​(java.awt.Rectangle rectangle)
      • setFill

        public void setFill​(boolean fill)