Package | Description |
---|---|
com.googlecode.lanterna | |
com.googlecode.lanterna.graphics | |
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.screen | |
com.googlecode.lanterna.terminal.virtual |
Modifier and Type | Field | Description |
---|---|---|
static TextCharacter |
TextCharacter.DEFAULT_CHARACTER |
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
TextCharacter.withBackgroundColor(TextColor backgroundColor) |
Returns a copy of this TextCharacter with a specified background color
|
TextCharacter |
TextCharacter.withCharacter(char character) |
Returns a new TextCharacter with the same colors and modifiers but a different underlying character
|
TextCharacter |
TextCharacter.withForegroundColor(TextColor foregroundColor) |
Returns a copy of this TextCharacter with a specified foreground color
|
TextCharacter |
TextCharacter.withModifier(SGR modifier) |
Returns a copy of this TextCharacter with an additional SGR modifier.
|
TextCharacter |
TextCharacter.withModifiers(Collection<SGR> modifiers) |
Returns a copy of this TextCharacter with specified list of SGR modifiers.
|
TextCharacter |
TextCharacter.withoutModifier(SGR modifier) |
Returns a copy of this TextCharacter with an SGR modifier removed.
|
Constructor | Description |
---|---|
TextCharacter(TextCharacter character) |
Copies another
ScreenCharacter |
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
AbstractTextGraphics.getCharacter(TerminalPosition position) |
|
TextCharacter |
DoublePrintingTextGraphics.getCharacter(int columnIndex,
int rowIndex) |
|
TextCharacter |
TextGraphics.getCharacter(int column,
int row) |
Returns the character at the specific position in the terminal.
|
TextCharacter |
TextGraphics.getCharacter(TerminalPosition position) |
Returns the character at the specific position in the terminal.
|
TextCharacter |
BasicTextImage.getCharacterAt(int column,
int row) |
|
TextCharacter |
BasicTextImage.getCharacterAt(TerminalPosition position) |
|
TextCharacter |
TextImage.getCharacterAt(int column,
int row) |
Returns the character stored at a particular position in this image
|
TextCharacter |
TextImage.getCharacterAt(TerminalPosition position) |
Returns the character stored at a particular position in this image
|
Modifier and Type | Method | Description |
---|---|---|
TextGraphics |
AbstractTextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
TextCharacter character) |
|
TextGraphics |
AbstractTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
|
TextGraphics |
TextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
TextCharacter character) |
Draws a line from a specified position to a specified position, using a supplied character.
|
TextGraphics |
TextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
Draws a line from a specified position to a specified position, using a supplied TextCharacter.
|
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
|
TextGraphics |
TextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
Draws the outline of a rectangle with a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
AbstractTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
|
TextGraphics |
TextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
Draws the outline of a triangle on the screen, using a supplied character.
|
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
|
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
Takes a rectangle and fills it using a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
AbstractTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
|
TextGraphics |
TextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
Draws a filled triangle, using a supplied character.
|
BasicTextImage |
BasicTextImage.resize(TerminalSize newSize,
TextCharacter filler) |
|
TextImage |
TextImage.resize(TerminalSize newSize,
TextCharacter filler) |
Returns a copy of this image resized to a new size and using a specified filler character if the new size is
larger than the old and we need to fill in empty areas.
|
void |
BasicTextImage.setAll(TextCharacter character) |
|
void |
TextImage.setAll(TextCharacter character) |
Sets the text image content to one specified character (including color and style)
|
TextGraphics |
AbstractTextGraphics.setCharacter(TerminalPosition position,
TextCharacter textCharacter) |
|
TextGraphics |
DoublePrintingTextGraphics.setCharacter(int columnIndex,
int rowIndex,
TextCharacter textCharacter) |
|
TextGraphics |
TextGraphics.setCharacter(int column,
int row,
TextCharacter character) |
Sets the character at the current position to the specified value, without using the current colors and modifiers
of this TextGraphics.
|
TextGraphics |
TextGraphics.setCharacter(TerminalPosition position,
TextCharacter character) |
Sets the character at the current position to the specified value, without using the current colors and modifiers
of this TextGraphics.
|
void |
BasicTextImage.setCharacterAt(int column,
int row,
TextCharacter character) |
|
void |
BasicTextImage.setCharacterAt(TerminalPosition position,
TextCharacter character) |
|
void |
TextImage.setCharacterAt(int column,
int row,
TextCharacter character) |
Sets the character at a specific position in the image to a particular TextCharacter.
|
void |
TextImage.setCharacterAt(TerminalPosition position,
TextCharacter character) |
Sets the character at a specific position in the image to a particular TextCharacter.
|
Constructor | Description |
---|---|
BasicTextImage(TerminalSize size,
TextCharacter initialContent) |
Creates a new BasicTextImage with a given size and a TextCharacter to initially fill it with
|
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
TextGUIGraphics.getCharacter(int column,
int row) |
|
TextCharacter |
TextGUIGraphics.getCharacter(TerminalPosition position) |
Modifier and Type | Field | Description |
---|---|---|
static TextCharacter |
Screen.DEFAULT_CHARACTER |
This is the character Screen implementations should use as a filler is there are areas not set to any particular
character.
|
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
AbstractScreen.getBackCharacter(int column,
int row) |
|
TextCharacter |
AbstractScreen.getBackCharacter(TerminalPosition position) |
|
TextCharacter |
Screen.getBackCharacter(int column,
int row) |
Reads a character and its associated meta-data from the back-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
Screen.getBackCharacter(TerminalPosition position) |
Reads a character and its associated meta-data from the back-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
ScreenBuffer.getCharacterAt(int column,
int row) |
|
TextCharacter |
ScreenBuffer.getCharacterAt(TerminalPosition position) |
|
TextCharacter |
AbstractScreen.getFrontCharacter(int column,
int row) |
|
TextCharacter |
AbstractScreen.getFrontCharacter(TerminalPosition position) |
|
TextCharacter |
Screen.getFrontCharacter(int column,
int row) |
Reads a character and its associated meta-data from the front-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
Screen.getFrontCharacter(TerminalPosition position) |
Reads a character and its associated meta-data from the front-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
VirtualScreen.getFrontCharacter(TerminalPosition position) |
Modifier and Type | Method | Description |
---|---|---|
ScreenBuffer |
ScreenBuffer.resize(TerminalSize newSize,
TextCharacter filler) |
|
void |
ScreenBuffer.setAll(TextCharacter character) |
|
void |
AbstractScreen.setCharacter(int column,
int row,
TextCharacter screenCharacter) |
|
void |
AbstractScreen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter) |
|
void |
Screen.setCharacter(int column,
int row,
TextCharacter screenCharacter) |
Sets a character in the back-buffer to a specified value with specified colors and modifiers.
|
void |
Screen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter) |
Sets a character in the back-buffer to a specified value with specified colors and modifiers.
|
void |
ScreenBuffer.setCharacterAt(int column,
int row,
TextCharacter character) |
|
void |
ScreenBuffer.setCharacterAt(TerminalPosition position,
TextCharacter character) |
Constructor | Description |
---|---|
AbstractScreen(TerminalSize initialSize,
TextCharacter defaultCharacter) |
Creates a new Screen on top of a supplied terminal, will query the terminal for its size.
|
ScreenBuffer(TerminalSize size,
TextCharacter filler) |
Creates a new ScreenBuffer with a given size and a TextCharacter to initially fill it with
|
TerminalScreen(Terminal terminal,
TextCharacter defaultCharacter) |
Creates a new Screen on top of a supplied terminal, will query the terminal for its size.
|
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
DefaultVirtualTerminal.getBufferCharacter(int column,
int row) |
|
TextCharacter |
DefaultVirtualTerminal.getBufferCharacter(TerminalPosition position) |
|
TextCharacter |
VirtualTerminal.getBufferCharacter(int column,
int row) |
Returns a character from this virtual terminal, relative to the top-left position of the text buffer including
any backlog.
|
TextCharacter |
VirtualTerminal.getBufferCharacter(TerminalPosition position) |
Returns a character from this virtual terminal, relative to the top-left position of the text buffer including
any backlog.
|
TextCharacter |
DefaultVirtualTerminal.getCharacter(int column,
int row) |
|
TextCharacter |
DefaultVirtualTerminal.getCharacter(TerminalPosition position) |
|
TextCharacter |
VirtualTerminal.getCharacter(int column,
int row) |
Returns a character from the viewport at the specified coordinates.
|
TextCharacter |
VirtualTerminal.getCharacter(TerminalPosition position) |
Returns a character from the viewport at the specified coordinates.
|
TextCharacter |
VirtualTerminal.BufferLine.getCharacterAt(int column) |
Returns a text character from this line in the specific column
|
Copyright © 2020. All rights reserved.