Package | Description |
---|---|
com.googlecode.lanterna.graphics | |
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.screen | |
com.googlecode.lanterna.terminal | |
com.googlecode.lanterna.terminal.swing |
Modifier and Type | Interface and Description |
---|---|
interface |
ThemedTextGraphics
Expanded TextGraphics that adds methods to interact with themes
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTextGraphics
This class hold the default logic for drawing the basic text graphic as exposed by TextGraphic.
|
class |
DoublePrintingTextGraphics
This TextGraphics implementation wraps another TextGraphics and forwards all operations to it, but with a few
differences.
|
class |
ImmutableThemedTextGraphics
Implementation of ThemedTextGraphics that wraps a TextGraphics that all calls are delegated to, except for the
method from ThemedTextGraphics which are handled.
|
Modifier and Type | Method and Description |
---|---|
TextGraphics |
TextGraphics.clearModifiers()
Removes all active modifiers
|
TextGraphics |
AbstractTextGraphics.clearModifiers() |
TextGraphics |
TextGraphics.disableModifiers(SGR... modifiers)
Removes zero or more modifiers from the set of currently active modifiers
|
TextGraphics |
AbstractTextGraphics.disableModifiers(SGR... modifiers) |
TextGraphics |
TextGraphics.drawImage(TerminalPosition topLeft,
TextImage image)
Takes a TextImage and draws it on the surface this TextGraphics is targeting, given the coordinates on the target
that is specifying where the top-left corner of the image should be drawn.
|
TextGraphics |
ImmutableThemedTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image) |
TextGraphics |
AbstractTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image) |
TextGraphics |
TextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize)
Takes a TextImage and draws it on the surface this TextGraphics is targeting, given the coordinates on the target
that is specifying where the top-left corner of the image should be drawn.
|
TextGraphics |
ImmutableThemedTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
AbstractTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
TextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
char 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,
char character) |
TextGraphics |
AbstractTextGraphics.drawLine(int fromX,
int fromY,
int toX,
int toY,
char 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 |
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,
char character)
Draws a line from a specified position to a specified position, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
char character) |
TextGraphics |
AbstractTextGraphics.drawLine(TerminalPosition fromPosition,
TerminalPosition toPoint,
char 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,
char character)
Draws the outline of a rectangle with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char 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,
char character)
Draws the outline of a triangle on the screen, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
AbstractTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char 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.enableModifiers(SGR... modifiers)
Adds zero or more modifiers to the set of currently active modifiers
|
TextGraphics |
AbstractTextGraphics.enableModifiers(SGR... modifiers) |
TextGraphics |
TextGraphics.fill(char c)
Fills the entire writable area with a single character, using current foreground color, background color and modifiers.
|
TextGraphics |
AbstractTextGraphics.fill(char c) |
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character)
Takes a rectangle and fills it with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char 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,
char character)
Draws a filled triangle, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
AbstractTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char 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) |
TextGraphics |
ImmutableThemedTextGraphics.getUnderlyingTextGraphics()
Returns the underlying
TextGraphics that is handling all drawing operations |
TextGraphics |
TextImage.newTextGraphics()
Creates a TextGraphics object that targets this TextImage for all its drawing operations.
|
TextGraphics |
BasicTextImage.newTextGraphics() |
TextGraphics |
TextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size)
Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.
|
TextGraphics |
AbstractTextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
TextGraphics |
TextGraphics.putString(int column,
int row,
String string)
Puts a string on the screen at the specified position with the current colors and modifiers.
|
TextGraphics |
AbstractTextGraphics.putString(int column,
int row,
String string) |
TextGraphics |
TextGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers)
Puts a string on the screen at the specified position with the current colors and modifiers.
|
TextGraphics |
ImmutableThemedTextGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers) |
TextGraphics |
AbstractTextGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers) |
TextGraphics |
TextGraphics.putString(int column,
int row,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers)
Puts a string on the screen at the specified position with the current colors and modifiers.
|
TextGraphics |
AbstractTextGraphics.putString(int column,
int row,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
TextGraphics |
TextGraphics.putString(TerminalPosition position,
String string)
Shortcut to calling:
|
TextGraphics |
AbstractTextGraphics.putString(TerminalPosition position,
String string) |
TextGraphics |
TextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers)
Shortcut to calling:
|
TextGraphics |
AbstractTextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
TextGraphics |
TextGraphics.setBackgroundColor(TextColor backgroundColor)
Updates the current background color
|
TextGraphics |
AbstractTextGraphics.setBackgroundColor(TextColor backgroundColor) |
TextGraphics |
TextGraphics.setCharacter(int column,
int row,
char character)
Sets the character at the current position to the specified value
|
TextGraphics |
ImmutableThemedTextGraphics.setCharacter(int column,
int row,
char character) |
TextGraphics |
AbstractTextGraphics.setCharacter(int column,
int row,
char 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,
char character)
Sets the character at the current position to the specified value
|
TextGraphics |
ImmutableThemedTextGraphics.setCharacter(TerminalPosition position,
char character) |
TextGraphics |
AbstractTextGraphics.setCharacter(TerminalPosition position,
char character) |
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) |
TextGraphics |
TextGraphics.setForegroundColor(TextColor foregroundColor)
Updates the current foreground color
|
TextGraphics |
AbstractTextGraphics.setForegroundColor(TextColor foregroundColor) |
TextGraphics |
TextGraphics.setModifiers(EnumSet<SGR> modifiers)
Sets the active modifiers to exactly the set passed in to this method.
|
TextGraphics |
AbstractTextGraphics.setModifiers(EnumSet<SGR> modifiers) |
TextGraphics |
TextGraphics.setTabBehaviour(TabBehaviour tabBehaviour)
Sets the behaviour to use when expanding tab characters (\t) to spaces
|
TextGraphics |
AbstractTextGraphics.setTabBehaviour(TabBehaviour tabBehaviour) |
Constructor and Description |
---|
DoublePrintingTextGraphics(TextGraphics underlyingTextGraphics)
Creates a new
DoublePrintingTextGraphics on top of a supplied TextGraphics |
ImmutableThemedTextGraphics(TextGraphics backend,
Theme theme)
Creates a new
ImmutableThemedTextGraphics with a specified backend for all drawing operations and a
theme. |
Modifier and Type | Class and Description |
---|---|
class |
TextGUIGraphics
TextGraphics implementation used by TextGUI when doing any drawing operation.
|
Modifier and Type | Method and Description |
---|---|
static void |
Borders.joinLinesWithFrame(TextGraphics graphics)
This method will attempt to join line drawing characters with the outermost bottom and top rows and left and
right columns.
|
void |
WindowShadowRenderer.postRender(TextGraphics textGraphics,
TextGUI textGUI,
Window window) |
void |
WindowPostRenderer.postRender(TextGraphics textGraphics,
TextGUI textGUI,
Window window)
Called by DefaultWindowTextGUI immediately after a Window has been rendered, to let you do post-processing.
|
Modifier and Type | Method and Description |
---|---|
TextGraphics |
ScreenBuffer.newTextGraphics() |
TextGraphics |
Screen.newTextGraphics()
Creates a new TextGraphics objects that is targeting this Screen for writing to.
|
TextGraphics |
AbstractScreen.newTextGraphics() |
Modifier and Type | Method and Description |
---|---|
void |
VirtualScreen.FrameRenderer.drawFrame(TextGraphics graphics,
TerminalSize realSize,
TerminalSize virtualSize,
TerminalPosition virtualScrollPosition)
Drawn the 'frame', meaning anything that is outside the viewport (title, scrollbar, etc)
|
Modifier and Type | Method and Description |
---|---|
TextGraphics |
Terminal.newTextGraphics()
Creates a new TextGraphics object that uses this Terminal directly when outputting.
|
TextGraphics |
IOSafeTerminalAdapter.newTextGraphics() |
TextGraphics |
AbstractTerminal.newTextGraphics() |
Modifier and Type | Method and Description |
---|---|
TextGraphics |
SwingTerminalFrame.newTextGraphics() |
TextGraphics |
SwingTerminal.newTextGraphics() |
TextGraphics |
ScrollingSwingTerminal.newTextGraphics() |
TextGraphics |
ScrollingAWTTerminal.newTextGraphics() |
TextGraphics |
AWTTerminalFrame.newTextGraphics() |
TextGraphics |
AWTTerminal.newTextGraphics() |
Copyright © 2016. All rights reserved.