Package | Description |
---|---|
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.gui2.table |
Modifier and Type | Class and Description |
---|---|
class |
AbstractComponent<T extends Component>
AbstractComponent provides some good default behaviour for a
Component , all components in Lanterna extends
from this class in some way. |
interface |
ComponentRenderer<T extends Component>
This interface defines a renderer for a component, an external class that does the sizing and rendering.
|
interface |
InteractableRenderer<T extends Component & Interactable>
Extended interface for component renderers used with interactable components.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Border
Main interface for different border classes, with additional methods to help lanterna figure out the size and offset
of components wrapped by borders.
|
interface |
Container
Container is a component that contains a collection of child components.
|
interface |
Interactable
This interface marks a component as able to receive keyboard input from the user.
|
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractBasePane.ContentHolder |
class |
AbstractBorder
Abstract implementation of
Border interface that has some of the methods filled out. |
class |
AbstractComponent<T extends Component>
AbstractComponent provides some good default behaviour for a
Component , all components in Lanterna extends
from this class in some way. |
class |
AbstractComposite<T extends Container>
This abstract implementation contains common code for the different
Composite implementations. |
class |
AbstractInteractableComponent<T extends AbstractInteractableComponent<T>>
Default implementation of Interactable that extends from AbstractComponent.
|
class |
AbstractListBox<V,T extends AbstractListBox<V,T>>
Base class for several list box implementations, this will handle things like list of items and the scrollbar.
|
class |
ActionListBox
This class is a list box implementation that displays a number of items that has actions associated with them.
|
class |
AnimatedLabel
This is a special label that contains not just a single text to display but a number of frames that are cycled
through.
|
class |
Button
Simple labeled button with an optional action attached to it, you trigger the action by pressing the Enter key on the
keyboard when the component is in focus.
|
class |
CheckBox
The checkbox component looks like a regular checkbox that you can find in modern graphics user interfaces, a label
and a space that the user can toggle on and off by using enter or space keys.
|
class |
CheckBoxList<V>
This is a list box implementation where each item has its own checked state that can be toggled on and off
|
class |
ComboBox<V>
This is a simple combo box implementation that allows the user to select one out of multiple items through a
drop-down menu.
|
class |
EmptySpace
Simple component which draws a solid color over its area.
|
class |
Label
Label is a simple read-only text display component.
|
class |
Panel
This class is the basic building block for creating user interfaces, being the standard implementation of
Container that supports multiple children. |
class |
RadioBoxList<V>
The list box will display a number of items, of which one and only one can be marked as selected.
|
class |
ScrollBar
Classic scrollbar that can be used to display where inside a larger component a view is showing.
|
class |
Separator
Static non-interactive component that is typically rendered as a single line.
|
class |
TextBox
This component keeps a text content that is editable by the user.
|
Modifier and Type | Method and Description |
---|---|
Component |
Component.addTo(Panel panel)
Same as calling
panel.addComponent(thisComponent) |
Component |
Window.getComponent()
Returns the component which is the top-level in the component hierarchy inside this window.
|
Component |
Composite.getComponent()
Returns the component that this Composite is wrapping
|
Component |
BasePane.getComponent()
Returns the component that is the content of the BasePane.
|
Component |
AbstractComposite.getComponent() |
Component |
AbstractBasePane.getComponent() |
Component |
Component.setLayoutData(LayoutData data)
Sets optional layout data associated with this component.
|
Component |
Component.setPosition(TerminalPosition position)
This method will be called by the layout manager when it has decided where the component is to be located.
|
Component |
Component.setPreferredSize(TerminalSize explicitPreferredSize)
Overrides the components preferred size calculation and makes the
getPreferredSize() always return the
value passed in here. |
Component |
Component.setSize(TerminalSize size)
This method will be called by the layout manager when it has decided how large the component will be.
|
Modifier and Type | Method and Description |
---|---|
Collection<Component> |
Panel.getChildren() |
Collection<Component> |
Container.getChildren()
Returns collection that is to be considered a copy of the list of children contained inside of this object.
|
Collection<Component> |
AbstractComposite.getChildren() |
ComponentRenderer<? extends Component> |
Component.getRenderer()
Returns the renderer used to draw this component and measure its preferred size.
|
Modifier and Type | Method and Description |
---|---|
Panel |
Panel.addComponent(Component component)
Adds a new child component to the panel.
|
Panel |
Panel.addComponent(Component component,
LayoutData layoutData)
This method is a shortcut for calling:
|
boolean |
Panel.containsComponent(Component component) |
boolean |
Container.containsComponent(Component component)
Returns
true if this container contains the supplied component either directly or indirectly through
intermediate containers. |
boolean |
AbstractComposite.containsComponent(Component component) |
static Panel |
Panels.grid(int columns,
Component... components)
Creates a new
Panel with a GridLayout layout manager and adds all the components passed in |
static Panel |
Panels.horizontal(Component... components)
Creates a new
Panel with a LinearLayout layout manager in horizontal mode and adds all the
components passed in |
boolean |
Panel.removeComponent(Component component) |
boolean |
Container.removeComponent(Component component)
Removes the component from the container.
|
boolean |
AbstractComposite.removeComponent(Component component) |
boolean |
AbstractBasePane.ContentHolder.removeComponent(Component component) |
void |
Window.setComponent(Component component)
Sets the top-level component in the window, this will be the only component unless it's a container of some kind
that you add child-components to.
|
void |
Composite.setComponent(Component component)
Sets the component which is inside this Composite.
|
void |
BasePane.setComponent(Component component)
Sets the top-level component inside this BasePane.
|
void |
AbstractComposite.setComponent(Component component) |
void |
AbstractBorder.setComponent(Component component) |
void |
AbstractBasePane.setComponent(Component component) |
void |
AbstractBasePane.ContentHolder.setComponent(Component component) |
static Panel |
Panels.vertical(Component... components)
Creates a new
Panel with a LinearLayout layout manager in vertical mode and adds all the
components passed in |
Modifier and Type | Method and Description |
---|---|
void |
LinearLayout.doLayout(TerminalSize area,
List<Component> components) |
void |
LayoutManager.doLayout(TerminalSize area,
List<Component> components)
Given a size constraint, update the location and size of each component in the component list by laying them out
in the available area.
|
void |
GridLayout.doLayout(TerminalSize area,
List<Component> components) |
void |
BorderLayout.doLayout(TerminalSize area,
List<Component> components) |
void |
AbsoluteLayout.doLayout(TerminalSize area,
List<Component> components) |
TerminalSize |
LinearLayout.getPreferredSize(List<Component> components) |
TerminalSize |
LayoutManager.getPreferredSize(List<Component> components)
This method returns the dimensions it would prefer to have to be able to layout all components while giving all
of them as much space as they are asking for.
|
TerminalSize |
GridLayout.getPreferredSize(List<Component> components) |
TerminalSize |
BorderLayout.getPreferredSize(List<Component> components) |
TerminalSize |
AbsoluteLayout.getPreferredSize(List<Component> components) |
Constructor and Description |
---|
MultiWindowTextGUI(Screen screen,
WindowManager windowManager,
Component background)
Creates a new
MultiWindowTextGUI that uses the specified Screen as the backend for all drawing
operations. |
MultiWindowTextGUI(Screen screen,
WindowManager windowManager,
WindowPostRenderer postRenderer,
Component background)
Creates a new
MultiWindowTextGUI that uses the specified Screen as the backend for all drawing
operations. |
MultiWindowTextGUI(TextGUIThreadFactory guiThreadFactory,
Screen screen,
WindowManager windowManager,
WindowPostRenderer postRenderer,
Component background)
Creates a new
MultiWindowTextGUI that uses the specified Screen as the backend for all drawing
operations. |
Modifier and Type | Class and Description |
---|---|
class |
Table<V>
The table class is an interactable component that displays a grid of cells containing data along with a header of
labels.
|
Copyright © 2016. All rights reserved.