Uses of Class
com.googlecode.lanterna.TextCharacter
-
-
Uses of TextCharacter in com.googlecode.lanterna
Fields in com.googlecode.lanterna declared as TextCharacter Modifier and Type Field Description static TextCharacter
TextCharacter. DEFAULT_CHARACTER
Methods in com.googlecode.lanterna that return TextCharacter Modifier and Type Method Description static TextCharacter[]
TextCharacter. fromCharacter(char c)
static TextCharacter[]
TextCharacter. fromCharacter(char c, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers)
static TextCharacter[]
TextCharacter. fromString(java.lang.String string)
static TextCharacter[]
TextCharacter. fromString(java.lang.String string, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers)
static TextCharacter[]
TextCharacter. fromString(java.lang.String string, TextColor foregroundColor, TextColor backgroundColor, java.util.EnumSet<SGR> modifiers)
TextCharacter
TextCharacter. withBackgroundColor(TextColor backgroundColor)
Returns a copy of this TextCharacter with a specified background colorTextCharacter
TextCharacter. withCharacter(char character)
Returns a new TextCharacter with the same colors and modifiers but a different underlying characterTextCharacter
TextCharacter. withForegroundColor(TextColor foregroundColor)
Returns a copy of this TextCharacter with a specified foreground colorTextCharacter
TextCharacter. withModifier(SGR modifier)
Returns a copy of this TextCharacter with an additional SGR modifier.TextCharacter
TextCharacter. withModifiers(java.util.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.Constructors in com.googlecode.lanterna with parameters of type TextCharacter Constructor Description TextCharacter(TextCharacter character)
Deprecated.TextCharacters are immutable so you shouldn't need to call this -
Uses of TextCharacter in com.googlecode.lanterna.graphics
Fields in com.googlecode.lanterna.graphics declared as TextCharacter Modifier and Type Field Description private TextCharacter[][]
BasicTextImage. buffer
Methods in com.googlecode.lanterna.graphics that return TextCharacter Modifier and Type Method Description TextCharacter
AbstractTextGraphics. getCharacter(TerminalPosition position)
TextCharacter
DoublePrintingTextGraphics. getCharacter(int columnIndex, int rowIndex)
TextCharacter
NullTextGraphics. getCharacter(int column, int row)
TextCharacter
NullTextGraphics. getCharacter(TerminalPosition position)
TextCharacter
SubTextGraphics. getCharacter(int column, int row)
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 imageTextCharacter
TextImage. getCharacterAt(TerminalPosition position)
Returns the character stored at a particular position in this imageprivate TextCharacter[]
BasicTextImage. newBlankLine()
private TextCharacter
AbstractTextGraphics. newTextCharacter(char character)
Methods in com.googlecode.lanterna.graphics with parameters of type TextCharacter 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)
void
DefaultShapeRenderer. drawLine(TerminalPosition p1, TerminalPosition p2, TextCharacter character)
TextGraphics
NullTextGraphics. drawLine(int fromX, int fromY, int toX, int toY, TextCharacter character)
TextGraphics
NullTextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
void
ShapeRenderer. drawLine(TerminalPosition p1, TerminalPosition p2, 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.private void
DefaultShapeRenderer. drawLine0(TerminalPosition start, int deltaX, int deltaY, boolean leftToRight, TextCharacter character)
private void
DefaultShapeRenderer. drawLine1(TerminalPosition start, int deltaX, int deltaY, boolean leftToRight, TextCharacter character)
TextGraphics
AbstractTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
DefaultShapeRenderer. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGraphics
NullTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
ShapeRenderer. 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)
void
DefaultShapeRenderer. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGraphics
NullTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
ShapeRenderer. 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)
void
DefaultShapeRenderer. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGraphics
NullTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
ShapeRenderer. 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)
void
DefaultShapeRenderer. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGraphics
NullTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
ShapeRenderer. 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.void
DefaultShapeRenderer.Callback. onPoint(int column, int row, TextCharacter 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
NullTextGraphics. setCharacter(int column, int row, TextCharacter character)
TextGraphics
NullTextGraphics. setCharacter(TerminalPosition position, TextCharacter character)
TextGraphics
SubTextGraphics. 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.Constructors in com.googlecode.lanterna.graphics with parameters of type TextCharacter Constructor Description BasicTextImage(TerminalSize size, TextCharacter initialContent)
Creates a new BasicTextImage with a given size and a TextCharacter to initially fill it withBasicTextImage(TerminalSize size, TextCharacter[][] toCopy, TextCharacter initialContent)
Creates a new BasicTextImage by copying a region of a two-dimensional array of TextCharacter:s. -
Uses of TextCharacter in com.googlecode.lanterna.gui2
Methods in com.googlecode.lanterna.gui2 that return TextCharacter Modifier and Type Method Description TextCharacter
DefaultTextGUIGraphics. getCharacter(int column, int row)
TextCharacter
DefaultTextGUIGraphics. getCharacter(TerminalPosition position)
-
Uses of TextCharacter in com.googlecode.lanterna.screen
Fields in com.googlecode.lanterna.screen declared as TextCharacter 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.private TextCharacter
AbstractScreen. defaultCharacter
Methods in com.googlecode.lanterna.screen that return TextCharacter 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
ScreenTextGraphics. getCharacter(int column, int row)
TextCharacter
ScreenBuffer. getCharacterAt(int column, int row)
TextCharacter
ScreenBuffer. getCharacterAt(TerminalPosition position)
private TextCharacter
AbstractScreen. getCharacterFromBuffer(ScreenBuffer buffer, int column, int row)
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)
Methods in com.googlecode.lanterna.screen with parameters of type TextCharacter 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.TextGraphics
ScreenTextGraphics. setCharacter(int columnIndex, int rowIndex, TextCharacter textCharacter)
void
ScreenBuffer. setCharacterAt(int column, int row, TextCharacter character)
void
ScreenBuffer. setCharacterAt(TerminalPosition position, TextCharacter character)
Constructors in com.googlecode.lanterna.screen with parameters of type TextCharacter 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 withTerminalScreen(Terminal terminal, TextCharacter defaultCharacter)
Creates a new Screen on top of a supplied terminal, will query the terminal for its size. -
Uses of TextCharacter in com.googlecode.lanterna.terminal
Fields in com.googlecode.lanterna.terminal declared as TextCharacter Modifier and Type Field Description private TextCharacter
TerminalTextGraphics. lastCharacter
Fields in com.googlecode.lanterna.terminal with type parameters of type TextCharacter Modifier and Type Field Description private java.util.Map<TerminalPosition,TextCharacter>
TerminalTextGraphics. writeHistory
Methods in com.googlecode.lanterna.terminal that return TextCharacter Modifier and Type Method Description TextCharacter
TerminalTextGraphics. getCharacter(int column, int row)
TextCharacter
TerminalTextGraphics. getCharacter(TerminalPosition position)
Methods in com.googlecode.lanterna.terminal with parameters of type TextCharacter Modifier and Type Method Description private void
TerminalTextGraphics. applyGraphicState(TextCharacter textCharacter)
TextGraphics
TerminalTextGraphics. setCharacter(int columnIndex, int rowIndex, TextCharacter textCharacter)
TextGraphics
TerminalTextGraphics. setCharacter(TerminalPosition position, TextCharacter textCharacter)
-
Uses of TextCharacter in com.googlecode.lanterna.terminal.swing
Methods in com.googlecode.lanterna.terminal.swing with parameters of type TextCharacter Modifier and Type Method Description private java.awt.Color
GraphicalTerminalImplementation. deriveTrueBackgroundColor(TextCharacter character, boolean atCursorLocation)
private java.awt.Color
GraphicalTerminalImplementation. deriveTrueForegroundColor(TextCharacter character, boolean atCursorLocation)
private void
GraphicalTerminalImplementation. drawCharacter(java.awt.Graphics g, TextCharacter character, int columnIndex, int rowIndex, java.awt.Color foregroundColor, java.awt.Color backgroundColor, int fontWidth, int fontHeight, int characterWidth, int scrollingOffsetInPixels, boolean drawCursor)
(package private) java.awt.Font
AWTTerminalFontConfiguration. getFontForCharacter(TextCharacter character)
Given a certain character, return the font to use for drawing it.protected java.awt.Font
AWTTerminalImplementation. getFontForCharacter(TextCharacter character)
(package private) abstract java.awt.Font
GraphicalTerminalImplementation. getFontForCharacter(TextCharacter character)
Returning the AWT font to use for the specific character.protected java.awt.Font
SwingTerminalImplementation. getFontForCharacter(TextCharacter character)
-
Uses of TextCharacter in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual declared as TextCharacter Modifier and Type Field Description private static TextCharacter
TextBuffer. DOUBLE_WIDTH_CHAR_PADDING
Fields in com.googlecode.lanterna.terminal.virtual with type parameters of type TextCharacter Modifier and Type Field Description private java.util.LinkedList<java.util.List<TextCharacter>>
TextBuffer. lines
Methods in com.googlecode.lanterna.terminal.virtual that return TextCharacter 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)
(package private) TextCharacter
TextBuffer. getCharacter(int lineNumber, int columnIndex)
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
VirtualTerminalTextGraphics. getCharacter(int column, int row)
TextCharacter
VirtualTerminalTextGraphics. getCharacter(TerminalPosition position)
TextCharacter
VirtualTerminal.BufferLine. getCharacterAt(int column)
Returns a text character from this line in the specific columnMethods in com.googlecode.lanterna.terminal.virtual that return types with arguments of type TextCharacter Modifier and Type Method Description (package private) java.util.ListIterator<java.util.List<TextCharacter>>
TextBuffer. getLinesFrom(int rowNumber)
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TextCharacter Modifier and Type Method Description (package private) void
DefaultVirtualTerminal. putCharacter(TextCharacter terminalCharacter)
(package private) int
TextBuffer. setCharacter(int lineNumber, int columnIndex, TextCharacter textCharacter)
TextGraphics
VirtualTerminalTextGraphics. setCharacter(int columnIndex, int rowIndex, TextCharacter textCharacter)
-