Interface TextGUIElement

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void draw​(TextGUIGraphics graphics)
      Draws the GUI element using the supplied TextGUIGraphics object.
      boolean isInvalid()
      Checks if this element (or any of its child components, if any) has signaled that what it's currently displaying is out of date and needs re-drawing.
    • Method Detail

      • draw

        void draw​(TextGUIGraphics graphics)
        Draws the GUI element using the supplied TextGUIGraphics object. This is the main method to implement when you want to create your own GUI components.
        Parameters:
        graphics - Graphics object to use when drawing the component
      • isInvalid

        boolean isInvalid()
        Checks if this element (or any of its child components, if any) has signaled that what it's currently displaying is out of date and needs re-drawing.
        Returns:
        true if the component is invalid and needs redrawing, false otherwise