Uses of Interface
com.googlecode.lanterna.gui2.TextGUIGraphics
Packages that use TextGUIGraphics
Package
Description
-
Uses of TextGUIGraphics in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 that implement TextGUIGraphicsMethods in com.googlecode.lanterna.gui2 that return TextGUIGraphicsModifier and TypeMethodDescriptionTextGUIGraphics.applyThemeStyle
(ThemeStyle themeStyle) TextGUIGraphics.clearModifiers()
TextGUIGraphics.disableModifiers
(SGR... modifiers) DefaultWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) EmptyWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) FatWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) 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.drawImage
(TerminalPosition topLeft, TextImage image) TextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) TextGUIGraphics.drawLine
(int fromX, int fromY, int toX, int toY, char character) TextGUIGraphics.drawLine
(int fromX, int fromY, int toX, int toY, TextCharacter character) TextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) TextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGUIGraphics.enableModifiers
(SGR... modifiers) TextGUIGraphics.fill
(char c) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGUIGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) TextGUIGraphics.putCSIStyledString
(int column, int row, String string) TextGUIGraphics.putCSIStyledString
(TerminalPosition position, String string) TextGUIGraphics.putString
(int column, int row, String string, SGR extraModifier, SGR... optionalExtraModifiers) TextGUIGraphics.putString
(int column, int row, String string, Collection<SGR> extraModifiers) TextGUIGraphics.putString
(TerminalPosition position, String string) TextGUIGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) TextGUIGraphics.setBackgroundColor
(TextColor backgroundColor) TextGUIGraphics.setCharacter
(int column, int row, char character) TextGUIGraphics.setCharacter
(int column, int row, TextCharacter character) TextGUIGraphics.setCharacter
(TerminalPosition position, char character) TextGUIGraphics.setCharacter
(TerminalPosition position, TextCharacter character) TextGUIGraphics.setForegroundColor
(TextColor foregroundColor) TextGUIGraphics.setModifiers
(EnumSet<SGR> modifiers) TextGUIGraphics.setStyleFrom
(StyleSet<?> source) TextGUIGraphics.setTabBehaviour
(TabBehaviour tabBehaviour) Methods in com.googlecode.lanterna.gui2 with parameters of type TextGUIGraphicsModifier and TypeMethodDescriptionvoid
AbstractBasePane.draw
(TextGUIGraphics graphics) final 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.DefaultWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) EmptyWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) 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.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.table
Methods in com.googlecode.lanterna.gui2.table with parameters of type TextGUIGraphicsModifier and TypeMethodDescriptionprotected 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, String label, int index, TextGUIGraphics textGUIGraphics) private void
DefaultTableRenderer.drawHeader
(TextGUIGraphics graphics, Table<V> table, List<Integer> columnSizes) void
TableHeaderRenderer.drawHeader
(Table<V> table, 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, List<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.