Class Borders.SingleLine
java.lang.Object
com.googlecode.lanterna.gui2.AbstractComponent<Border>
com.googlecode.lanterna.gui2.AbstractComposite<Border>
com.googlecode.lanterna.gui2.AbstractBorder
com.googlecode.lanterna.gui2.Borders.StandardBorder
com.googlecode.lanterna.gui2.Borders.SingleLine
- All Implemented Interfaces:
Border, Component, Composite, Container, TextGUIElement
- Enclosing class:
Borders
-
Nested Class Summary
Nested classes/interfaces inherited from interface Border
Border.BorderRenderer -
Field Summary
Fields inherited from class Borders.StandardBorder
borderStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Border.BorderRendererWhen 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 Borders.StandardBorder
getTitle, toStringMethods inherited from class AbstractBorder
getLayoutData, getRenderer, setComponent, setLayoutData, setSize, toBasePane, toGlobalMethods inherited from class AbstractComposite
containsComponent, getChildCount, getChildren, getChildrenList, getComponent, handleInput, invalidate, isInvalid, nextFocus, previousFocus, removeComponent, updateLookupMapMethods inherited from class AbstractComponent
addTo, calculatePreferredSize, draw, getBasePane, getGlobalPosition, getParent, getPosition, getPreferredSize, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, isVisible, onAdded, onAfterDrawing, onBeforeDrawing, onRemoved, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setPosition, setPreferredSize, setRenderer, setTheme, setVisible, withBorderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Component
addTo, getBasePane, getGlobalPosition, getParent, getPosition, getPreferredSize, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, invalidate, isInside, isVisible, onAdded, onRemoved, setPosition, setPreferredSize, setTheme, setVisible, withBorderMethods inherited from interface Composite
getComponentMethods inherited from interface Container
containsComponent, getChildCount, getChildren, getChildrenList, handleInput, nextFocus, previousFocus, removeComponent, updateLookupMapMethods inherited from interface TextGUIElement
draw, isInvalid
-
Constructor Details
-
SingleLine
-
-
Method Details
-
createDefaultRenderer
Description copied from class:AbstractComponentWhen 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.- Specified by:
createDefaultRendererin classAbstractComponent<Border>- Returns:
- Renderer to use when sizing and drawing this component
-