Package | Description |
---|---|
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.gui2.dialogs |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractWindow |
Abstract Window has most of the code requiring for a window to function, all concrete window implementations extends
from this in one way or another.
|
class |
BasicWindow |
Simple AbstractWindow implementation that you can use as a building block when creating new windows without having
to create new classes.
|
Modifier and Type | Method | Description |
---|---|---|
Window |
MultiWindowTextGUI.getActiveWindow() |
|
Window |
WindowBasedTextGUI.getActiveWindow() |
Returns the window which the TextGUI considers the active one at the time of the method call.
|
Modifier and Type | Method | Description |
---|---|---|
Collection<Window> |
MultiWindowTextGUI.getWindows() |
|
Collection<Window> |
WindowBasedTextGUI.getWindows() |
Returns a list of all windows currently in the TextGUI.
|
Modifier and Type | Method | Description |
---|---|---|
WindowBasedTextGUI |
MultiWindowTextGUI.addWindow(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.addWindow(Window window) |
Adds a window to the TextGUI system, depending on the window manager this window may or may not be immediately
visible.
|
WindowBasedTextGUI |
MultiWindowTextGUI.addWindowAndWait(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.addWindowAndWait(Window window) |
Adds a window to the TextGUI system, depending on the window manager this window may or may not be immediately
visible.
|
TextGUIGraphics |
DefaultWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
EmptyWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
FatWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
WindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
Draws the window decorations for a particular window and returns a new TextGraphics that is locked to the area
inside of the window decorations where the content of the window should be drawn
|
TerminalSize |
DefaultWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
|
TerminalSize |
EmptyWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
|
TerminalSize |
FatWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
|
TerminalSize |
WindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
Retrieves the full size of the window, including all window decorations, given all components inside the window.
|
TerminalPosition |
DefaultWindowDecorationRenderer.getOffset(Window window) |
|
TerminalPosition |
EmptyWindowDecorationRenderer.getOffset(Window window) |
|
TerminalPosition |
FatWindowDecorationRenderer.getOffset(Window window) |
|
TerminalPosition |
WindowDecorationRenderer.getOffset(Window window) |
Returns how much to step right and down from the top left position of the window decorations to the top left
position of the actual window
|
WindowDecorationRenderer |
DefaultWindowManager.getWindowDecorationRenderer(Window window) |
|
WindowDecorationRenderer |
WindowManager.getWindowDecorationRenderer(Window window) |
Returns the
WindowDecorationRenderer for a particular window |
WindowBasedTextGUI |
MultiWindowTextGUI.moveToTop(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.moveToTop(Window window) |
Windows are internally stored as a stack and newer windows are added at the top of the stack.
|
void |
DefaultWindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is added to the
WindowBasedTextGUI . |
void |
WindowListenerAdapter.onInput(Window basePane,
KeyStroke keyStroke,
AtomicBoolean deliverEvent) |
|
void |
WindowListener.onMoved(Window window,
TerminalPosition oldPosition,
TerminalPosition newPosition) |
Called whenever the window's position has changed, no matter if it was done by the window manager or the user
|
void |
WindowListenerAdapter.onMoved(Window window,
TerminalPosition oldPosition,
TerminalPosition newPosition) |
|
void |
DefaultWindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is removed from a
WindowBasedTextGUI . |
void |
WindowListener.onResized(Window window,
TerminalSize oldSize,
TerminalSize newSize) |
Called whenever the window's size has changed, no matter if it was done by the window manager or the user
|
void |
WindowListenerAdapter.onResized(Window window,
TerminalSize oldSize,
TerminalSize newSize) |
|
void |
WindowListenerAdapter.onUnhandledInput(Window basePane,
KeyStroke keyStroke,
AtomicBoolean hasBeenHandled) |
|
void |
WindowPostRenderer.postRender(ThemedTextGraphics textGraphics,
TextGUI textGUI,
Window window) |
Called by DefaultWindowTextGUI immediately after a Window has been rendered, to let you do post-processing.
|
void |
WindowShadowRenderer.postRender(ThemedTextGraphics textGraphics,
TextGUI textGUI,
Window window) |
|
protected void |
DefaultWindowManager.prepareWindow(TerminalSize screenSize,
Window window) |
Called by
DefaultWindowManager when iterating through all windows to decide their size and position. |
WindowBasedTextGUI |
MultiWindowTextGUI.removeWindow(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.removeWindow(Window window) |
Removes a window from the TextGUI.
|
MultiWindowTextGUI |
MultiWindowTextGUI.setActiveWindow(Window activeWindow) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.setActiveWindow(Window activeWindow) |
Selects a particular window to be considered 'active' and receive all input events
|
void |
MultiWindowTextGUI.waitForWindowToClose(Window window) |
|
void |
WindowBasedTextGUI.waitForWindowToClose(Window abstractWindow) |
Waits for the specified window to be closed
|
Modifier and Type | Method | Description |
---|---|---|
void |
DefaultWindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is added to the
WindowBasedTextGUI . |
void |
DefaultWindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is removed from a
WindowBasedTextGUI . |
void |
DefaultWindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
|
void |
WindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
Called by the GUI system before iterating through all windows during the drawing process.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ActionListDialog |
Dialog containing a multiple item action list box
|
class |
DialogWindow |
Thin layer on top of the
AbstractWindow class that automatically sets properties and hints to the window to
make it act more like a modal dialog window |
class |
FileDialog |
Dialog that allows the user to iterate the file system and pick file to open/save
|
class |
ListSelectDialog<T> |
Dialog that allows the user to select an item from a list
|
class |
MessageDialog |
Simple message dialog that displays a message and has optional selection/confirmation buttons
|
class |
TextInputDialog |
TextInputDialog is a modal text input dialog that prompts the user to enter a text string. |
class |
WaitingDialog |
Dialog that displays a text message, an optional spinning indicator and an optional progress bar.
|
Copyright © 2020. All rights reserved.