Package | Description |
---|---|
com.googlecode.lanterna | |
com.googlecode.lanterna.graphics | |
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.screen |
Modifier and Type | Field and Description |
---|---|
static TextCharacter |
TextCharacter.DEFAULT_CHARACTER |
Modifier and Type | Method and 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 and Description |
---|
TextCharacter(TextCharacter character)
Copies another
ScreenCharacter |
Modifier and Type | Method and Description |
---|---|
TextCharacter |
TextGraphics.getCharacter(int column,
int row)
Returns the character at the specific position in the terminal.
|
TextCharacter |
ImmutableThemedTextGraphics.getCharacter(int column,
int row) |
TextCharacter |
DoublePrintingTextGraphics.getCharacter(int columnIndex,
int rowIndex) |
TextCharacter |
TextGraphics.getCharacter(TerminalPosition position)
Returns the character at the specific position in the terminal.
|
TextCharacter |
ImmutableThemedTextGraphics.getCharacter(TerminalPosition position) |
TextCharacter |
AbstractTextGraphics.getCharacter(TerminalPosition position) |
TextCharacter |
TextImage.getCharacterAt(int column,
int row)
Returns the character stored at a particular position in this image
|
TextCharacter |
BasicTextImage.getCharacterAt(int column,
int row) |
TextCharacter |
TextImage.getCharacterAt(TerminalPosition position)
Returns the character stored at a particular position in this image
|
TextCharacter |
BasicTextImage.getCharacterAt(TerminalPosition position) |
Modifier and Type | Method and Description |
---|---|
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 |
ImmutableThemedTextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
TextCharacter 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 |
ImmutableThemedTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
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 |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
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 |
ImmutableThemedTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
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 |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character)
Draws a filled triangle, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
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.
|
BasicTextImage |
BasicTextImage.resize(TerminalSize newSize,
TextCharacter filler) |
void |
TextImage.setAll(TextCharacter character)
Sets the text image content to one specified character (including color and style)
|
void |
BasicTextImage.setAll(TextCharacter character) |
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 |
ImmutableThemedTextGraphics.setCharacter(int column,
int row,
TextCharacter character) |
TextGraphics |
DoublePrintingTextGraphics.setCharacter(int columnIndex,
int rowIndex,
TextCharacter textCharacter) |
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.
|
TextGraphics |
ImmutableThemedTextGraphics.setCharacter(TerminalPosition position,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.setCharacter(TerminalPosition position,
TextCharacter textCharacter) |
void |
TextImage.setCharacterAt(int column,
int row,
TextCharacter character)
Sets the character at a specific position in the image to a particular TextCharacter.
|
void |
BasicTextImage.setCharacterAt(int column,
int row,
TextCharacter character) |
void |
TextImage.setCharacterAt(TerminalPosition position,
TextCharacter character)
Sets the character at a specific position in the image to a particular TextCharacter.
|
void |
BasicTextImage.setCharacterAt(TerminalPosition position,
TextCharacter character) |
Constructor and 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 and Description |
---|---|
TextCharacter |
TextGUIGraphics.getCharacter(int column,
int row) |
TextCharacter |
TextGUIGraphics.getCharacter(TerminalPosition position) |
Modifier and Type | Field and 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 and Description |
---|---|
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 |
AbstractScreen.getBackCharacter(int column,
int row) |
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 |
AbstractScreen.getBackCharacter(TerminalPosition position) |
TextCharacter |
ScreenBuffer.getCharacterAt(int column,
int row) |
TextCharacter |
ScreenBuffer.getCharacterAt(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 |
AbstractScreen.getFrontCharacter(int column,
int row) |
TextCharacter |
VirtualScreen.getFrontCharacter(TerminalPosition position) |
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 |
AbstractScreen.getFrontCharacter(TerminalPosition position) |
Modifier and Type | Method and Description |
---|---|
ScreenBuffer |
ScreenBuffer.resize(TerminalSize newSize,
TextCharacter filler) |
void |
ScreenBuffer.setAll(TextCharacter character) |
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 |
AbstractScreen.setCharacter(int column,
int row,
TextCharacter screenCharacter) |
void |
Screen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter)
Sets a character in the back-buffer to a specified value with specified colors and modifiers.
|
void |
AbstractScreen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter) |
void |
ScreenBuffer.setCharacterAt(int column,
int row,
TextCharacter character) |
void |
ScreenBuffer.setCharacterAt(TerminalPosition position,
TextCharacter character) |
Constructor and 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.
|
Copyright © 2016. All rights reserved.