Uses of Class
com.googlecode.lanterna.TerminalSize
Packages that use TerminalSize
Package
Description
-
Uses of TerminalSize in com.googlecode.lanterna
Fields in com.googlecode.lanterna declared as TerminalSizeModifier and TypeFieldDescriptionstatic final TerminalSize
TerminalSize.ONE
final TerminalSize
TerminalRectangle.size
static final TerminalSize
TerminalSize.ZERO
Methods in com.googlecode.lanterna that return TerminalSizeModifier and TypeMethodDescriptionTerminalSize.max
(TerminalSize other) Takes a different TerminalSize and returns a new TerminalSize that has the largest dimensions of the two, measured separately.TerminalSize.min
(TerminalSize other) Takes a different TerminalSize and returns a new TerminalSize that has the smallest dimensions of the two, measured separately.TerminalSize.with
(TerminalSize size) Returns itself if it is equal to the supplied size, otherwise the supplied size.TerminalSize.withColumns
(int columns) Creates a new size based on this size, but with a different widthTerminalSize.withRelative
(int deltaColumns, int deltaRows) Creates a new TerminalSize object representing a size based on this object's size but with a delta applied.TerminalSize.withRelative
(TerminalSize delta) Creates a new TerminalSize object representing a size based on this object's size but with a delta applied.TerminalSize.withRelativeColumns
(int delta) Creates a new TerminalSize object representing a size with the same number of rows, but with a column size offset by a supplied value.TerminalSize.withRelativeRows
(int delta) Creates a new TerminalSize object representing a size with the same number of columns, but with a row size offset by a supplied value.TerminalSize.withRows
(int rows) Creates a new size based on this size, but with a different heightMethods in com.googlecode.lanterna with parameters of type TerminalSizeModifier and TypeMethodDescriptionTerminalSize.max
(TerminalSize other) Takes a different TerminalSize and returns a new TerminalSize that has the largest dimensions of the two, measured separately.TerminalSize.min
(TerminalSize other) Takes a different TerminalSize and returns a new TerminalSize that has the smallest dimensions of the two, measured separately.TerminalSize.with
(TerminalSize size) Returns itself if it is equal to the supplied size, otherwise the supplied size.TerminalSize.withRelative
(TerminalSize delta) Creates a new TerminalSize object representing a size based on this object's size but with a delta applied. -
Uses of TerminalSize in com.googlecode.lanterna.graphics
Fields in com.googlecode.lanterna.graphics declared as TerminalSizeModifier and TypeFieldDescriptionprivate final TerminalSize
BasicTextImage.size
private final TerminalSize
NullTextGraphics.size
private final TerminalSize
SubTextGraphics.writableAreaSize
Methods in com.googlecode.lanterna.graphics that return TerminalSizeModifier and TypeMethodDescriptionBasicTextImage.getSize()
DoublePrintingTextGraphics.getSize()
NullTextGraphics.getSize()
SubTextGraphics.getSize()
TextGraphics.getSize()
Returns the size of the area that this text graphic can write to.TextImage.getSize()
Returns the dimensions of this TextImage, in columns and rowsMethods in com.googlecode.lanterna.graphics with parameters of type TerminalSizeModifier and TypeMethodDescriptionAbstractTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) NullTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) 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.AbstractTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) AbstractTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
DefaultShapeRenderer.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) NullTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) NullTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
ShapeRenderer.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) 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.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.AbstractTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) AbstractTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
DefaultShapeRenderer.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) NullTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) NullTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
ShapeRenderer.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) 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.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.AbstractTextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) NullTextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) TextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.BasicTextImage.resize
(TerminalSize newSize, TextCharacter filler) 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.Constructors in com.googlecode.lanterna.graphics with parameters of type TerminalSizeModifierConstructorDescriptionBasicTextImage
(TerminalSize size) Creates a new BasicTextImage with the specified size and fills it initially with space characters using the default foreground and background colorBasicTextImage
(TerminalSize size, TextCharacter initialContent) Creates a new BasicTextImage with a given size and a TextCharacter to initially fill it withprivate
BasicTextImage
(TerminalSize size, TextCharacter[][] toCopy, TextCharacter initialContent) Creates a new BasicTextImage by copying a region of a two-dimensional array of TextCharacter:s.NullTextGraphics
(TerminalSize size) Creates a newNullTextGraphics
that will return the specified size value if asked how big it is but other than that ignore all other calls.(package private)
SubTextGraphics
(TextGraphics underlyingTextGraphics, TerminalPosition topLeft, TerminalSize writableAreaSize) -
Uses of TerminalSize in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 declared as TerminalSizeModifier and TypeFieldDescriptionprivate TerminalSize
Panel.cachedPreferredSize
private TerminalSize
AnimatedLabel.combinedMaximumPreferredSize
private TerminalSize
AbstractComponent.explicitPreferredSize
private TerminalSize
Label.labelSize
private TerminalSize
AbstractWindow.lastKnownDecoratedSize
private TerminalSize
DefaultWindowManager.lastKnownScreenSize
private TerminalSize
AbstractWindow.lastKnownSize
private TerminalSize
AbstractComponent.size
private final TerminalSize
EmptySpace.size
Methods in com.googlecode.lanterna.gui2 that return TerminalSizeModifier and TypeMethodDescriptionprotected TerminalSize
AbstractComponent.calculatePreferredSize()
Invokes the component renderer's size calculation logic and returns the result.protected TerminalSize
AnimatedLabel.calculatePreferredSize()
Panel.calculatePreferredSize()
protected TerminalSize
Label.getBounds
(String[] lines, TerminalSize currentBounds) Returns the area, in terminal columns and rows, required to fully draw the lines passed in.final TerminalSize
AbstractWindow.getDecoratedSize()
DefaultWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) EmptyWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) FatWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) Window.getDecoratedSize()
Returns the last known size of the window including window decorations put on by the window manager.WindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) Retrieves the full size of the window, including all window decorations, given all components inside the window.AbsoluteLayout.getPreferredSize
(List<Component> components) final TerminalSize
AbstractComponent.getPreferredSize()
AbstractListBox.DefaultListBoxRenderer.getPreferredSize
(T listBox) AbstractWindow.getPreferredSize()
BorderLayout.getPreferredSize
(List<Component> components) Borders.AbstractBorderRenderer.getPreferredSize
(Border component) Button.BorderedButtonRenderer.getPreferredSize
(Button component) Button.DefaultButtonRenderer.getPreferredSize
(Button button) Button.FlatButtonRenderer.getPreferredSize
(Button component) CheckBox.DefaultCheckBoxRenderer.getPreferredSize
(CheckBox component) ComboBox.DefaultComboBoxRenderer.getPreferredSize
(ComboBox<V> comboBox) Component.getPreferredSize()
Returns the ideal size this component would like to have, in order to draw itself properly.ComponentRenderer.getPreferredSize
(T component) Given the supplied component, how large does this renderer want the component to be? Notice that this is the responsibility of the renderer and not the component itself, since the component has no idea what its visual representation looks like.GridLayout.getPreferredSize
(List<Component> components) LayoutManager.getPreferredSize
(List<Component> components) This method returns the dimensions it would prefer to have to be able to layout all components while giving all of them as much space as they are asking for.LinearLayout.getPreferredSize
(List<Component> components) Panel.DefaultPanelRenderer.getPreferredSize
(Panel component) ProgressBar.DefaultProgressBarRenderer.getPreferredSize
(ProgressBar component) ProgressBar.LargeProgressBarRenderer.getPreferredSize
(ProgressBar component) ScrollBar.ScrollBarRenderer.getPreferredSize
(ScrollBar component) Separator.DefaultSeparatorRenderer.getPreferredSize
(Separator component) SplitPanel.ScrollPanelLayoutManager.getPreferredSize
(List<Component> components) TextBox.DefaultTextBoxRenderer.getPreferredSize
(TextBox component) Window.getPreferredSize()
Returns the size this window would like to beprivate TerminalSize
LinearLayout.getPreferredSizeHorizontally
(List<Component> components) private TerminalSize
LinearLayout.getPreferredSizeVertically
(List<Component> components) AbstractComponent.getSize()
final TerminalSize
AbstractWindow.getSize()
Component.getSize()
Returns how large this component is.DefaultTextGUIGraphics.getSize()
(package private) TerminalSize
InteractableLookupMap.getSize()
Window.getSize()
Returns the last known size of the window.private TerminalSize
AbstractBorder.getWrappedComponentSize
(TerminalSize borderSize) Border.BorderRenderer.getWrappedComponentSize
(TerminalSize borderSize) Given a total size of the border composite and it's wrapped component, how large would the actual wrapped component be?Borders.AbstractBorderRenderer.getWrappedComponentSize
(TerminalSize borderSize) Methods in com.googlecode.lanterna.gui2 with parameters of type TerminalSizeModifier and TypeMethodDescriptionprivate void
LinearLayout.doFlexibleHorizontalLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doFlexibleVerticalLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doHorizontalLayout
(TerminalSize area, List<Component> components) Deprecated.void
AbsoluteLayout.doLayout
(TerminalSize area, List<Component> components) void
BorderLayout.doLayout
(TerminalSize area, List<Component> components) void
GridLayout.doLayout
(TerminalSize area, List<Component> components) void
LayoutManager.doLayout
(TerminalSize area, List<Component> components) Given a size constraint, update the location and size of each component in the component list by laying them out in the available area.void
LinearLayout.doLayout
(TerminalSize area, List<Component> components) void
SplitPanel.ScrollPanelLayoutManager.doLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doVerticalLayout
(TerminalSize area, List<Component> components) Deprecated.DefaultTextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) TextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) DefaultTextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) DefaultTextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) DefaultTextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) DefaultTextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) protected TerminalSize
Label.getBounds
(String[] lines, TerminalSize currentBounds) Returns the area, in terminal columns and rows, required to fully draw the lines passed in.DefaultWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) EmptyWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) FatWindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) WindowDecorationRenderer.getDecoratedSize
(Window window, TerminalSize contentAreaSize) Retrieves the full size of the window, including all window decorations, given all components inside the window.private int
Button.DefaultButtonRenderer.getLabelShift
(Button button, TerminalSize size) private TerminalSize
AbstractBorder.getWrappedComponentSize
(TerminalSize borderSize) Border.BorderRenderer.getWrappedComponentSize
(TerminalSize borderSize) Given a total size of the border composite and it's wrapped component, how large would the actual wrapped component be?Borders.AbstractBorderRenderer.getWrappedComponentSize
(TerminalSize borderSize) private int
GridLayout.grabExtraHorizontalSpace
(TerminalSize area, int[] columnWidths, Set<Integer> expandableColumns, int totalWidth) private int
GridLayout.grabExtraVerticalSpace
(TerminalSize area, int[] rowHeights, Set<Integer> expandableRows, int totalHeight) private void
Panel.layout
(TerminalSize size) DefaultTextGUIGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) TextGUIGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) void
WindowListener.onResized
(Window window, TerminalSize oldSize, TerminalSize newSize) Called whenever the window's size has changed, no matter if it was done by the window manager or the uservoid
WindowListenerAdapter.onResized
(Window window, TerminalSize oldSize, TerminalSize newSize) protected void
DefaultWindowManager.prepareWindow
(TerminalSize screenSize, Window window) Called byDefaultWindowManager
when iterating through all windows to decide their size and position.void
DefaultWindowManager.prepareWindows
(WindowBasedTextGUI textGUI, List<Window> allWindows, TerminalSize screenSize) void
WindowManager.prepareWindows
(WindowBasedTextGUI textGUI, List<Window> allWindows, TerminalSize screenSize) Called by the GUI system before iterating through all windows during the drawing process.final void
AbstractWindow.setDecoratedSize
(TerminalSize decoratedSize) void
Window.setDecoratedSize
(TerminalSize decoratedSize) This method is called by the GUI system to update the window on how large it is, counting window decorations too.void
AbstractWindow.setFixedSize
(TerminalSize size) void
Window.setFixedSize
(TerminalSize size) Calling this method will add the FIXED_SIZE window hint (if it wasn't present already) and attempt to force the window to always have the size specified.final T
AbstractComponent.setPreferredSize
(TerminalSize explicitPreferredSize) Component.setPreferredSize
(TerminalSize explicitPreferredSize) Overrides the components preferred size calculation and makes thegetPreferredSize()
always return the value passed in here.AbstractBorder.setSize
(TerminalSize size) AbstractComponent.setSize
(TerminalSize size) void
AbstractWindow.setSize
(TerminalSize size) Deprecated.private void
AbstractWindow.setSize
(TerminalSize size, boolean invalidate) Component.setSize
(TerminalSize size) This method will be called by the layout manager when it has decided how large the component will be.void
Window.setSize
(TerminalSize size) Deprecated.This method is deprecated now as it probably doesn't do what you think.private int
GridLayout.shrinkHeightToFitArea
(TerminalSize area, int[] rowHeights) private int
GridLayout.shrinkWidthToFitArea
(TerminalSize area, int[] columnWidths) Constructors in com.googlecode.lanterna.gui2 with parameters of type TerminalSizeModifierConstructorDescriptionprotected
AbstractListBox
(TerminalSize size) This constructor sets up the component with a preferred size that is will always request, no matter what items are in the list box.ActionListBox
(TerminalSize preferredSize) Creates a newActionListBox
with a pre-set size.CheckBoxList
(TerminalSize preferredSize) Creates a newCheckBoxList
that is initially empty and has a pre-defined size that it will request.DefaultWindowManager
(WindowDecorationRenderer windowDecorationRenderer, TerminalSize initialScreenSize) Creates a newDefaultWindowManager
using a specifiedwindowDecorationRendererOverride
for drawing window decorations.DefaultWindowManager
(TerminalSize initialScreenSize) Creates a newDefaultWindowManager
using aDefaultWindowDecorationRenderer
for drawing window decorations, unless the current theme has an override.EmptySpace
(TerminalSize size) Creates an EmptySpace with a specified preferred size (color will be chosen from the theme)EmptySpace
(TextColor color, TerminalSize size) Creates an EmptySpace with a specified color (null will make it use a color from the theme) and preferred size(package private)
RadioBoxList
(TerminalSize preferredSize) Creates a new RadioCheckBoxList with a specified size.TextBox
(TerminalSize preferredSize) Creates a new emptyTextBox
with a specific sizeTextBox
(TerminalSize preferredSize, TextBox.Style style) Creates a new emptyTextBox
with a specific size and styleTextBox
(TerminalSize preferredSize, String initialContent) Creates a new emptyTextBox
with a specific size and initial contentTextBox
(TerminalSize preferredSize, String initialContent, TextBox.Style style) Main constructor of theTextBox
which decides size, initial content and style -
Uses of TerminalSize in com.googlecode.lanterna.gui2.dialogs
Fields in com.googlecode.lanterna.gui2.dialogs declared as TerminalSizeModifier and TypeFieldDescriptionprivate TerminalSize
ActionListDialogBuilder.listBoxSize
private TerminalSize
ListSelectDialogBuilder.listBoxSize
private TerminalSize
DirectoryDialogBuilder.suggestedSize
private TerminalSize
FileDialogBuilder.suggestedSize
private TerminalSize
TextInputDialogBuilder.textBoxSize
Methods in com.googlecode.lanterna.gui2.dialogs that return TerminalSizeModifier and TypeMethodDescriptionActionListDialogBuilder.getListBoxSize()
Returns the specified size of the internalActionListBox
ornull
if there is no size and the list box will attempt to take up enough size to draw all itemsListSelectDialogBuilder.getListBoxSize()
Size of the list box in the dialog ornull
if the dialog will ask for enough space to draw all itemsDirectoryDialogBuilder.getSuggestedSize()
Returns the suggested size for the file dialogFileDialogBuilder.getSuggestedSize()
Returns the suggested size for the file dialogTextInputDialogBuilder.getTextBoxSize()
Returns the size of the text box the dialog will haveMethods in com.googlecode.lanterna.gui2.dialogs with parameters of type TerminalSizeModifier and TypeMethodDescriptionActionListDialogBuilder.setListBoxSize
(TerminalSize listBoxSize) Sets the size of the internalActionListBox
in columns and rows, forcing scrollbars to appear if the space isn't big enough to contain all the itemsListSelectDialogBuilder.setListBoxSize
(TerminalSize listBoxSize) Sets the size of the list box in the dialog, scrollbars will be used if there is not enough space to draw all items.DirectoryDialogBuilder.setSuggestedSize
(TerminalSize suggestedSize) Sets the suggested size for the file dialog, it won't have exactly this size but roughly.FileDialogBuilder.setSuggestedSize
(TerminalSize suggestedSize) Sets the suggested size for the file dialog, it won't have exactly this size but roughly.TextInputDialogBuilder.setTextBoxSize
(TerminalSize textBoxSize) Sets the size of the text box the dialog will havestatic <T> T
ListSelectDialog.showDialog
(WindowBasedTextGUI textGUI, String title, String description, TerminalSize listBoxSize, T... items) Shortcut for quickly creating a new dialogConstructors in com.googlecode.lanterna.gui2.dialogs with parameters of type TerminalSizeModifierConstructorDescription(package private)
ActionListDialog
(String title, String description, TerminalSize actionListPreferredSize, boolean canCancel, boolean closeAutomatically, List<Runnable> actions) DirectoryDialog
(String title, String description, String actionLabel, TerminalSize dialogSize, boolean showHiddenDirs, File selectedObject) Default constructor forDirectoryDialog
FileDialog
(String title, String description, String actionLabel, TerminalSize dialogSize, boolean showHiddenFilesAndDirs, File selectedObject) Default constructor forFileDialog
(package private)
ListSelectDialog
(String title, String description, TerminalSize listBoxPreferredSize, boolean canCancel, List<T> content) (package private)
TextInputDialog
(String title, String description, TerminalSize textBoxPreferredSize, String initialContent, TextInputDialogResultValidator validator, boolean password) -
Uses of TerminalSize in com.googlecode.lanterna.gui2.table
Fields in com.googlecode.lanterna.gui2.table declared as TerminalSizeMethods in com.googlecode.lanterna.gui2.table that return TerminalSizeModifier and TypeMethodDescriptionDefaultTableCellRenderer.getPreferredSize
(Table<V> table, V cell, int columnIndex, int rowIndex) DefaultTableHeaderRenderer.getPreferredSize
(Table<V> table, String label, int columnIndex) DefaultTableRenderer.getPreferredSize
(Table<V> table) TableCellRenderer.getPreferredSize
(Table<V> table, V cell, int columnIndex, int rowIndex) Called by the table when it wants to know how big a particular table cell should beTableHeaderRenderer.getPreferredSize
(Table<V> table, String label, int columnIndex) Called by the table when it wants to know how big a particular table header should beTableRenderer.getPreferredSize
(Table<V> component) Methods in com.googlecode.lanterna.gui2.table with parameters of type TerminalSizeModifier and TypeMethodDescriptionprivate int
DefaultTableRenderer.calculateVisibleColumns
(TerminalSize area, int viewLeftColumn, int preferredVisibleColumns) private int
DefaultTableRenderer.calculateVisibleRows
(TerminalSize area, int viewTopRow, int preferredVisibleRows) DefaultTableRenderer.fitColumnsInAvailableSpace
(Table<V> table, TerminalSize area, int visibleColumns) -
Uses of TerminalSize in com.googlecode.lanterna.screen
Fields in com.googlecode.lanterna.screen declared as TerminalSizeModifier and TypeFieldDescriptionprivate TerminalSize
AbstractScreen.latestResizeRequest
private TerminalSize
VirtualScreen.minimumSize
private TerminalSize
AbstractScreen.terminalSize
private TerminalSize
VirtualScreen.viewportSize
Methods in com.googlecode.lanterna.screen that return TerminalSizeModifier and TypeMethodDescriptionprivate TerminalSize
VirtualScreen.calculateViewport
(TerminalSize realTerminalSize) AbstractScreen.doResizeIfNecessary()
Screen.doResizeIfNecessary()
One problem working with Screens is that whenever the terminal is resized, the front and back buffers needs to be adjusted accordingly and the program should have a chance to figure out what to do with this extra space (or less space).TerminalScreen.doResizeIfNecessary()
VirtualScreen.doResizeIfNecessary()
private TerminalSize
AbstractScreen.getAndClearPendingResize()
VirtualScreen.getMinimumSize()
Returns the minimum size this virtual screen can have.ScreenBuffer.getSize()
ScreenTextGraphics.getSize()
AbstractScreen.getTerminalSize()
Screen.getTerminalSize()
Returns the size of the screen.VirtualScreen.DefaultFrameRenderer.getViewportSize
(TerminalSize realSize, TerminalSize virtualSize) VirtualScreen.FrameRenderer.getViewportSize
(TerminalSize realSize, TerminalSize virtualSize) Given the size of the real terminal and the current size of the virtual screen, how large should the viewport where the screen content is drawn be?VirtualScreen.getViewportSize()
Returns the current size of the viewport.Methods in com.googlecode.lanterna.screen with parameters of type TerminalSizeModifier and TypeMethodDescriptionprotected void
AbstractScreen.addResizeRequest
(TerminalSize newSize) Tells this screen that the size has changed and it should, at next opportunity, resize itself and its buffersprivate TerminalSize
VirtualScreen.calculateViewport
(TerminalSize realTerminalSize) void
VirtualScreen.DefaultFrameRenderer.drawFrame
(TextGraphics graphics, TerminalSize realSize, TerminalSize virtualSize, TerminalPosition virtualScrollPosition) 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)VirtualScreen.DefaultFrameRenderer.getViewportSize
(TerminalSize realSize, TerminalSize virtualSize) VirtualScreen.FrameRenderer.getViewportSize
(TerminalSize realSize, TerminalSize virtualSize) Given the size of the real terminal and the current size of the virtual screen, how large should the viewport where the screen content is drawn be?void
TerminalScreen.TerminalScreenResizeListener.onResized
(Terminal terminal, TerminalSize newSize) ScreenBuffer.resize
(TerminalSize newSize, TextCharacter filler) void
VirtualScreen.setMinimumSize
(TerminalSize minimumSize) Sets the minimum size we want the virtual screen to have.Constructors in com.googlecode.lanterna.screen with parameters of type TerminalSizeModifierConstructorDescriptionAbstractScreen
(TerminalSize initialSize) 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 -
Uses of TerminalSize in com.googlecode.lanterna.terminal
Fields in com.googlecode.lanterna.terminal declared as TerminalSizeModifier and TypeFieldDescriptionprivate TerminalSize
DefaultTerminalFactory.initialTerminalSize
private TerminalSize
AbstractTerminal.lastKnownSize
(package private) TerminalSize
SimpleTerminalResizeListener.lastKnownSize
private final TerminalSize
TerminalTextGraphics.terminalSize
Methods in com.googlecode.lanterna.terminal that return TerminalSizeModifier and TypeMethodDescriptionSimpleTerminalResizeListener.getLastKnownSize()
Returns the last known size the Terminal is supposed to have.TerminalTextGraphics.getSize()
IOSafeTerminal.getTerminalSize()
IOSafeTerminalAdapter.getTerminalSize()
Terminal.getTerminalSize()
Returns the size of the terminal, expressed as aTerminalSize
object.Methods in com.googlecode.lanterna.terminal with parameters of type TerminalSizeModifier and TypeMethodDescriptionTerminalTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TerminalTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) protected void
AbstractTerminal.onResized
(TerminalSize newSize) Call this method when the terminal has been resized or the initial size of the terminal has been discovered.void
SimpleTerminalResizeListener.onResized
(Terminal terminal, TerminalSize newSize) void
TerminalResizeListener.onResized
(Terminal terminal, TerminalSize newSize) The terminal has changed its size, most likely because the user has resized the window.DefaultTerminalFactory.setInitialTerminalSize
(TerminalSize initialTerminalSize) Sets a hint to the TerminalFactory of what size to use when creating the terminal.Constructors in com.googlecode.lanterna.terminal with parameters of type TerminalSizeModifierConstructorDescriptionSimpleTerminalResizeListener
(TerminalSize initialSize) Creates a new SimpleTerminalResizeListener -
Uses of TerminalSize in com.googlecode.lanterna.terminal.ansi
Fields in com.googlecode.lanterna.terminal.ansi declared as TerminalSizeMethods in com.googlecode.lanterna.terminal.ansi that return TerminalSizeModifier and TypeMethodDescriptionprotected TerminalSize
ANSITerminal.findTerminalSize()
protected TerminalSize
CygwinTerminal.findTerminalSize()
final TerminalSize
ANSITerminal.getTerminalSize()
FixedTerminalSizeProvider.queryTerminalSize()
UnixTerminalSizeQuerier.queryTerminalSize()
Checks what the size of the terminal is, measured in number of rows and columns.Constructors in com.googlecode.lanterna.terminal.ansi with parameters of type TerminalSizeModifierConstructorDescriptionCreating aFixedTerminalSizeProvider
set to a particular size that it will always report whenever the associatedTerminal
interface queries. -
Uses of TerminalSize in com.googlecode.lanterna.terminal.swing
Methods in com.googlecode.lanterna.terminal.swing that return TerminalSizeModifier and TypeMethodDescriptionAWTTerminal.getTerminalSize()
AWTTerminalFrame.getTerminalSize()
GraphicalTerminalImplementation.getTerminalSize()
ScrollingAWTTerminal.getTerminalSize()
ScrollingSwingTerminal.getTerminalSize()
SwingTerminal.getTerminalSize()
SwingTerminalFrame.getTerminalSize()
Constructors in com.googlecode.lanterna.terminal.swing with parameters of type TerminalSizeModifierConstructorDescriptionAWTTerminal
(TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, AWTTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration) Creates a new AWTTerminal component using custom settings and no scroll controller.AWTTerminal
(TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, AWTTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController) Creates a new AWTTerminal component using custom settings and a custom scroll controller.AWTTerminalFrame
(String title, TerminalSize terminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, AWTTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalEmulatorAutoCloseTrigger... autoCloseTriggers) Creates a new AWTTerminalFrame using a specified title and a series of AWT terminal configuration objects(package private)
AWTTerminalImplementation
(Component component, AWTTerminalFontConfiguration fontConfiguration, TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController) Creates a newAWTTerminalImplementation
(package private)
GraphicalTerminalImplementation
(TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController) Creates a new GraphicalTerminalImplementation component using custom settings and a custom scroll controller.SwingTerminal
(TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, SwingTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration) Creates a new SwingTerminal component using custom settings and no scroll controller.SwingTerminal
(TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, SwingTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController) Creates a new SwingTerminal component using custom settings and a custom scroll controller.SwingTerminalFrame
(String title, TerminalSize terminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, SwingTerminalFontConfiguration fontConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalEmulatorAutoCloseTrigger... autoCloseTriggers) Creates a new SwingTerminalFrame using a specified title and a series of swing terminal configuration objects(package private)
SwingTerminalImplementation
(JComponent component, SwingTerminalFontConfiguration fontConfiguration, TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController) Creates a newSwingTerminalImplementation
-
Uses of TerminalSize in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual declared as TerminalSizeMethods in com.googlecode.lanterna.terminal.virtual that return TerminalSizeModifier and TypeMethodDescriptionVirtualTerminalTextGraphics.getSize()
DefaultVirtualTerminal.getTerminalSize()
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TerminalSizeModifier and TypeMethodDescriptionvoid
DefaultVirtualTerminal.setTerminalSize
(TerminalSize newSize) void
VirtualTerminal.setTerminalSize
(TerminalSize newSize) Changes the "visible size" of the virtual terminal.Constructors in com.googlecode.lanterna.terminal.virtual with parameters of type TerminalSizeModifierConstructorDescriptionDefaultVirtualTerminal
(TerminalSize initialTerminalSize) Creates a new virtual terminal with an initial size set