java.lang.Object
com.googlecode.lanterna.gui2.AbstractComponent<EmptySpace>
com.googlecode.lanterna.gui2.EmptySpace
com.googlecode.lanterna.gui2.GUIBackdrop
- All Implemented Interfaces:
Component
,TextGUIElement
Special component that is by default displayed as the background of a text gui unless you override it with something
else. Themes can control how this backdrop is drawn, the normal is one solid color.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentRenderer
<EmptySpace> When you create a custom component, you need to implement this method and return a Renderer which is responsible for taking care of sizing the component, rendering it and choosing where to place the cursor (if Interactable).Methods inherited from class com.googlecode.lanterna.gui2.EmptySpace
getColor, setColor
Methods inherited from class com.googlecode.lanterna.gui2.AbstractComponent
addTo, calculatePreferredSize, draw, getBasePane, getGlobalPosition, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, invalidate, isInside, isInvalid, isVisible, onAdded, onAfterDrawing, onBeforeDrawing, onRemoved, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setLayoutData, setPosition, setPreferredSize, setRenderer, setSize, setTheme, setVisible, toBasePane, toGlobal, withBorder
-
Constructor Details
-
GUIBackdrop
public GUIBackdrop()
-
-
Method Details
-
createDefaultRenderer
Description copied from class:AbstractComponent
When you create a custom component, you need to implement this method and return a Renderer which is responsible for taking care of sizing the component, rendering it and choosing where to place the cursor (if Interactable). This value is intended to be overridden by custom themes.- Overrides:
createDefaultRenderer
in classEmptySpace
- Returns:
- Renderer to use when sizing and drawing this component
-