-
- All Known Subinterfaces:
Border
,Component
,Container
,Interactable
- All Known Implementing Classes:
AbstractBasePane.ContentHolder
,AbstractBasePane.EmptyMenuBar
,AbstractBorder
,AbstractComponent
,AbstractComposite
,AbstractInteractableComponent
,AbstractListBox
,ActionListBox
,AnimatedLabel
,Borders.DoubleLine
,Borders.SingleLine
,Borders.StandardBorder
,Button
,CheckBox
,CheckBoxList
,ComboBox
,EmptySpace
,FileDialog.FileSystemLocationLabel
,GUIBackdrop
,ImageComponent
,Label
,Menu
,MenuBar
,MenuItem
,Panel
,ProgressBar
,RadioBoxList
,ScrollBar
,Separator
,SplitPanel
,Table
,TextBox
public interface TextGUIElement
This interface is the base part in the Lanterna Text GUI component hierarchy
-
-
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
-
-