Class UIElement

    • Field Summary

      Modifier and Type Field Description
      int height  
      org.newdawn.slick.Image image  
      boolean isEnabled  
      int width  
    • Constructor Summary

      Constructor Description
      UIElement​(int size)  
      UIElement​(int width, int height)  
      UIElement​(int width, int height, boolean enabled)  
      UIElement​(org.newdawn.slick.Image image)  
      UIElement​(org.newdawn.slick.Image image, boolean enabled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isClickInBounds​(int cx, int cy)  
      void render​(org.newdawn.slick.Graphics graphics)  
      void tick()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • width

        public int width
      • height

        public int height
      • isEnabled

        public boolean isEnabled
      • image

        public org.newdawn.slick.Image image
    • Constructor Detail

      • UIElement

        public UIElement​(org.newdawn.slick.Image image)
      • UIElement

        public UIElement​(org.newdawn.slick.Image image,
                         boolean enabled)
      • UIElement

        public UIElement​(int size)
      • UIElement

        public UIElement​(int width,
                         int height)
      • UIElement

        public UIElement​(int width,
                         int height,
                         boolean enabled)
    • Method Detail

      • tick

        public void tick()
        Specified by:
        tick in interface Tickable
      • render

        public void render​(org.newdawn.slick.Graphics graphics)
        Specified by:
        render in class Renderable
      • isClickInBounds

        public boolean isClickInBounds​(int cx,
                                       int cy)