Uses of Interface
com.googlecode.lanterna.gui2.TextGUIGraphics
-
Packages that use TextGUIGraphics Package Description com.googlecode.lanterna.gui2 com.googlecode.lanterna.gui2.menu com.googlecode.lanterna.gui2.table -
-
Uses of TextGUIGraphics in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 that implement TextGUIGraphics Modifier and Type Class Description class
DefaultTextGUIGraphics
Created by Martin on 2017-08-11.Methods in com.googlecode.lanterna.gui2 that return TextGUIGraphics Modifier and Type Method Description TextGUIGraphics
TextGUIGraphics. applyThemeStyle(ThemeStyle themeStyle)
TextGUIGraphics
TextGUIGraphics. clearModifiers()
TextGUIGraphics
TextGUIGraphics. disableModifiers(SGR... modifiers)
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 drawnTextGUIGraphics
TextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image)
TextGUIGraphics
TextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
TextGUIGraphics
TextGUIGraphics. drawLine(int fromX, int fromY, int toX, int toY, char character)
TextGUIGraphics
TextGUIGraphics. drawLine(int fromX, int fromY, int toX, int toY, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, char character)
TextGUIGraphics
TextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGUIGraphics
TextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. enableModifiers(SGR... modifiers)
TextGUIGraphics
TextGUIGraphics. fill(char c)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGUIGraphics
TextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGUIGraphics
TextGUIGraphics. putCSIStyledString(int column, int row, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putString(int column, int row, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(TerminalPosition position, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGUIGraphics
TextGUIGraphics. setBackgroundColor(TextColor backgroundColor)
TextGUIGraphics
TextGUIGraphics. setCharacter(int column, int row, char character)
TextGUIGraphics
TextGUIGraphics. setCharacter(int column, int row, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. setCharacter(TerminalPosition position, char character)
TextGUIGraphics
TextGUIGraphics. setCharacter(TerminalPosition position, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. setForegroundColor(TextColor foregroundColor)
TextGUIGraphics
TextGUIGraphics. setModifiers(java.util.EnumSet<SGR> modifiers)
TextGUIGraphics
TextGUIGraphics. setStyleFrom(StyleSet<?> source)
TextGUIGraphics
TextGUIGraphics. setTabBehaviour(TabBehaviour tabBehaviour)
Methods in com.googlecode.lanterna.gui2 with parameters of type TextGUIGraphics Modifier and Type Method Description void
AbstractBasePane. draw(TextGUIGraphics graphics)
void
AbstractComponent. draw(TextGUIGraphics graphics)
void
AbstractWindow. draw(TextGUIGraphics graphics)
void
BasePane. draw(TextGUIGraphics graphics)
Called by the GUI system (or something imitating the GUI system) to draw the root container.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)
void
TextGUIElement. draw(TextGUIGraphics graphics)
Draws the GUI element using the supplied TextGUIGraphics object.void
Window. draw(TextGUIGraphics graphics)
Called by the GUI system (or something imitating the GUI system) to draw the 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 drawnprivate void
MultiWindowTextGUI. drawBackgroundPane(TextGUIGraphics graphics)
void
AbstractListBox.DefaultListBoxRenderer. drawComponent(TextGUIGraphics graphics, T listBox)
void
Borders.AbstractBorderRenderer. drawComponent(TextGUIGraphics graphics, Border component)
void
Button.BorderedButtonRenderer. drawComponent(TextGUIGraphics graphics, Button button)
void
Button.DefaultButtonRenderer. drawComponent(TextGUIGraphics graphics, Button button)
void
Button.FlatButtonRenderer. drawComponent(TextGUIGraphics graphics, Button button)
void
CheckBox.DefaultCheckBoxRenderer. drawComponent(TextGUIGraphics graphics, CheckBox component)
void
ComboBox.DefaultComboBoxRenderer. drawComponent(TextGUIGraphics graphics, ComboBox<V> comboBox)
void
ComponentRenderer. drawComponent(TextGUIGraphics graphics, T component)
Using the supplied graphics object, draws the component passed in.void
Panel.DefaultPanelRenderer. drawComponent(TextGUIGraphics graphics, Panel panel)
void
ProgressBar.DefaultProgressBarRenderer. drawComponent(TextGUIGraphics graphics, ProgressBar component)
void
ProgressBar.LargeProgressBarRenderer. drawComponent(TextGUIGraphics graphics, ProgressBar component)
void
ScrollBar.DefaultScrollBarRenderer. drawComponent(TextGUIGraphics graphics, ScrollBar component)
void
Separator.DefaultSeparatorRenderer. drawComponent(TextGUIGraphics graphics, Separator component)
void
TextBox.DefaultTextBoxRenderer. drawComponent(TextGUIGraphics graphics, TextBox component)
protected abstract void
AbstractTextGUI. drawGUI(TextGUIGraphics graphics)
Draws the entire GUI using aTextGUIGraphics
objectprotected void
MultiWindowTextGUI. drawGUI(TextGUIGraphics graphics)
void
AbstractListBox.ListItemRenderer. drawItem(TextGUIGraphics graphics, T listBox, int index, V item, boolean selected, boolean focused)
This is the main drawing method for a single list box item, it applies the current theme to setup the colors and then callsgetLabel(..)
and draws the result using the suppliedTextGUIGraphics
.void
CheckBoxList.CheckBoxListItemRenderer. drawItem(TextGUIGraphics graphics, CheckBoxList<V> listBox, int index, V item, boolean selected, boolean focused)
void
RadioBoxList.RadioBoxListItemRenderer. drawItem(TextGUIGraphics graphics, RadioBoxList<V> listBox, int index, V item, boolean selected, boolean focused)
private void
TextBox.DefaultTextBoxRenderer. drawTextArea(TextGUIGraphics graphics, TextBox component)
protected void
AbstractComponent. onAfterDrawing(TextGUIGraphics graphics)
This method is called immediately after the component's renderer has finished the drawing operation. -
Uses of TextGUIGraphics in com.googlecode.lanterna.gui2.menu
Methods in com.googlecode.lanterna.gui2.menu with parameters of type TextGUIGraphics Modifier and Type Method Description void
MenuBar.DefaultMenuBarRenderer. drawComponent(TextGUIGraphics graphics, MenuBar menuBar)
void
MenuItem.DefaultMenuItemRenderer. drawComponent(TextGUIGraphics graphics, MenuItem menuItem)
-
Uses of TextGUIGraphics in com.googlecode.lanterna.gui2.table
Methods in com.googlecode.lanterna.gui2.table with parameters of type TextGUIGraphics Modifier and Type Method Description protected void
DefaultTableCellRenderer. afterRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)
Called by the cell renderer after the cell content has been drawn into the assigned area.protected void
DefaultTableCellRenderer. applyStyle(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)
Called by the cell renderer to setup all the styling (colors and SGRs) before rendering the cell.protected void
DefaultTableCellRenderer. beforeRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)
Called by the cell renderer to prepare the cell area before rendering the cell.void
DefaultTableCellRenderer. drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics)
void
TableCellRenderer. drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics)
Called by the table when it's time to draw a cell, you can see how much size is available by checking the size of thetextGUIGraphics
.void
DefaultTableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> table)
void
TableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> component)
void
DefaultTableHeaderRenderer. drawHeader(Table<V> table, java.lang.String label, int index, TextGUIGraphics textGUIGraphics)
private void
DefaultTableRenderer. drawHeader(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes)
void
TableHeaderRenderer. drawHeader(Table<V> table, java.lang.String label, int index, TextGUIGraphics textGUIGraphics)
Called by the table when it's time to draw a header, you can see how much size is available by checking the size of thetextGUIGraphics
.private void
DefaultTableRenderer. drawRows(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes, int visibleRows, int visibleColumns, int renderColumns, boolean needVerticalScrollBar, boolean needHorizontalScrollBar)
protected void
DefaultTableCellRenderer. render(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics)
Called by the cell renderer to draw the content of the cell into the assigned area.
-