Uses of Class
com.googlecode.lanterna.TerminalSize
-
-
Uses of TerminalSize in com.googlecode.lanterna
Fields in com.googlecode.lanterna declared as TerminalSize Modifier and Type Field Description static TerminalSize
TerminalSize. ONE
TerminalSize
TerminalRectangle. size
static TerminalSize
TerminalSize. ZERO
Methods in com.googlecode.lanterna that return TerminalSize Modifier and Type Method Description TerminalSize
TerminalSize. max(TerminalSize other)
Takes a different TerminalSize and returns a new TerminalSize that has the largest dimensions of the two, measured separately.TerminalSize
TerminalSize. min(TerminalSize other)
Takes a different TerminalSize and returns a new TerminalSize that has the smallest dimensions of the two, measured separately.TerminalSize
TerminalSize. with(TerminalSize size)
Returns itself if it is equal to the supplied size, otherwise the supplied size.TerminalSize
TerminalSize. withColumns(int columns)
Creates a new size based on this size, but with a different widthTerminalSize
TerminalSize. 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
TerminalSize. withRelative(TerminalSize delta)
Creates a new TerminalSize object representing a size based on this object's size but with a delta applied.TerminalSize
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
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
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 TerminalSize Modifier and Type Method Description TerminalSize
TerminalSize. max(TerminalSize other)
Takes a different TerminalSize and returns a new TerminalSize that has the largest dimensions of the two, measured separately.TerminalSize
TerminalSize. min(TerminalSize other)
Takes a different TerminalSize and returns a new TerminalSize that has the smallest dimensions of the two, measured separately.TerminalSize
TerminalSize. with(TerminalSize size)
Returns itself if it is equal to the supplied size, otherwise the supplied size.TerminalSize
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 TerminalSize Modifier and Type Field Description private TerminalSize
BasicTextImage. size
private TerminalSize
NullTextGraphics. size
private TerminalSize
SubTextGraphics. writableAreaSize
Methods in com.googlecode.lanterna.graphics that return TerminalSize Modifier and Type Method Description TerminalSize
BasicTextImage. getSize()
TerminalSize
DoublePrintingTextGraphics. getSize()
TerminalSize
NullTextGraphics. getSize()
TerminalSize
SubTextGraphics. getSize()
TerminalSize
TextGraphics. getSize()
Returns the size of the area that this text graphic can write to.TerminalSize
TextImage. getSize()
Returns the dimensions of this TextImage, in columns and rowsMethods in com.googlecode.lanterna.graphics with parameters of type TerminalSize Modifier and Type Method Description TextGraphics
AbstractTextGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
TextGraphics
NullTextGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
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
AbstractTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char 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, char 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, char character)
Draws the outline of a rectangle with a particular character (and the currently active colors and modifiers).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. fillRectangle(TerminalPosition topLeft, TerminalSize size, char 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, char 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, char character)
Takes a rectangle and fills it with a particular character (and the currently active colors and modifiers).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. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGraphics
NullTextGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGraphics
TextGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.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.Constructors in com.googlecode.lanterna.graphics with parameters of type TerminalSize Constructor Description BasicTextImage(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 withBasicTextImage(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.SubTextGraphics(TextGraphics underlyingTextGraphics, TerminalPosition topLeft, TerminalSize writableAreaSize)
-
Uses of TerminalSize in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 declared as TerminalSize Modifier and Type Field Description private 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 TerminalSize
EmptySpace. size
Methods in com.googlecode.lanterna.gui2 that return TerminalSize Modifier and Type Method Description protected TerminalSize
AbstractComponent. calculatePreferredSize()
Invokes the component renderer's size calculation logic and returns the result.protected TerminalSize
AnimatedLabel. calculatePreferredSize()
TerminalSize
Panel. calculatePreferredSize()
protected TerminalSize
Label. getBounds(java.lang.String[] lines, TerminalSize currentBounds)
Returns the area, in terminal columns and rows, required to fully draw the lines passed in.TerminalSize
AbstractWindow. getDecoratedSize()
TerminalSize
DefaultWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
EmptyWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
FatWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
Window. getDecoratedSize()
Returns the last known size of the window including window decorations put on by the window manager.TerminalSize
WindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
Retrieves the full size of the window, including all window decorations, given all components inside the window.TerminalSize
AbsoluteLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
AbstractComponent. getPreferredSize()
TerminalSize
AbstractListBox.DefaultListBoxRenderer. getPreferredSize(T listBox)
TerminalSize
AbstractWindow. getPreferredSize()
TerminalSize
BorderLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
Borders.AbstractBorderRenderer. getPreferredSize(Border component)
TerminalSize
Button.BorderedButtonRenderer. getPreferredSize(Button component)
TerminalSize
Button.DefaultButtonRenderer. getPreferredSize(Button button)
TerminalSize
Button.FlatButtonRenderer. getPreferredSize(Button component)
TerminalSize
CheckBox.DefaultCheckBoxRenderer. getPreferredSize(CheckBox component)
TerminalSize
ComboBox.DefaultComboBoxRenderer. getPreferredSize(ComboBox<V> comboBox)
TerminalSize
Component. getPreferredSize()
Returns the ideal size this component would like to have, in order to draw itself properly.TerminalSize
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.TerminalSize
GridLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
LayoutManager. getPreferredSize(java.util.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.TerminalSize
LinearLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
Panel.DefaultPanelRenderer. getPreferredSize(Panel component)
TerminalSize
ProgressBar.DefaultProgressBarRenderer. getPreferredSize(ProgressBar component)
TerminalSize
ProgressBar.LargeProgressBarRenderer. getPreferredSize(ProgressBar component)
TerminalSize
ScrollBar.ScrollBarRenderer. getPreferredSize(ScrollBar component)
TerminalSize
Separator.DefaultSeparatorRenderer. getPreferredSize(Separator component)
TerminalSize
SplitPanel.ScrollPanelLayoutManager. getPreferredSize(java.util.List<Component> components)
TerminalSize
TextBox.DefaultTextBoxRenderer. getPreferredSize(TextBox component)
TerminalSize
Window. getPreferredSize()
Returns the size this window would like to beprivate TerminalSize
LinearLayout. getPreferredSizeHorizontally(java.util.List<Component> components)
private TerminalSize
LinearLayout. getPreferredSizeVertically(java.util.List<Component> components)
TerminalSize
AbstractComponent. getSize()
TerminalSize
AbstractWindow. getSize()
TerminalSize
Component. getSize()
Returns how large this component is.TerminalSize
DefaultTextGUIGraphics. getSize()
(package private) TerminalSize
InteractableLookupMap. getSize()
TerminalSize
Window. getSize()
Returns the last known size of the window.private TerminalSize
AbstractBorder. getWrappedComponentSize(TerminalSize borderSize)
TerminalSize
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?TerminalSize
Borders.AbstractBorderRenderer. getWrappedComponentSize(TerminalSize borderSize)
Methods in com.googlecode.lanterna.gui2 with parameters of type TerminalSize Modifier and Type Method Description private void
LinearLayout. doFlexibleHorizontalLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doFlexibleVerticalLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doHorizontalLayout(TerminalSize area, java.util.List<Component> components)
Deprecated.void
AbsoluteLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
BorderLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
GridLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
LayoutManager. doLayout(TerminalSize area, java.util.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, java.util.List<Component> components)
void
SplitPanel.ScrollPanelLayoutManager. doLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doVerticalLayout(TerminalSize area, java.util.List<Component> components)
Deprecated.DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
TextGUIGraphics
TextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
protected TerminalSize
Label. getBounds(java.lang.String[] lines, TerminalSize currentBounds)
Returns the area, in terminal columns and rows, required to fully draw the lines passed in.TerminalSize
DefaultWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
EmptyWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
FatWindowDecorationRenderer. getDecoratedSize(Window window, TerminalSize contentAreaSize)
TerminalSize
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)
TerminalSize
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?TerminalSize
Borders.AbstractBorderRenderer. getWrappedComponentSize(TerminalSize borderSize)
private int
GridLayout. grabExtraHorizontalSpace(TerminalSize area, int[] columnWidths, java.util.Set<java.lang.Integer> expandableColumns, int totalWidth)
private int
GridLayout. grabExtraVerticalSpace(TerminalSize area, int[] rowHeights, java.util.Set<java.lang.Integer> expandableRows, int totalHeight)
private void
Panel. layout(TerminalSize size)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGUIGraphics
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, java.util.List<Window> allWindows, TerminalSize screenSize)
void
WindowManager. prepareWindows(WindowBasedTextGUI textGUI, java.util.List<Window> allWindows, TerminalSize screenSize)
Called by the GUI system before iterating through all windows during the drawing process.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.T
AbstractComponent. setPreferredSize(TerminalSize explicitPreferredSize)
Component
Component. setPreferredSize(TerminalSize explicitPreferredSize)
Overrides the components preferred size calculation and makes thegetPreferredSize()
always return the value passed in here.Border
AbstractBorder. setSize(TerminalSize size)
T
AbstractComponent. setSize(TerminalSize size)
void
AbstractWindow. setSize(TerminalSize size)
Deprecated.private void
AbstractWindow. setSize(TerminalSize size, boolean invalidate)
Component
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 TerminalSize Constructor Description 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 sizeInteractableLookupMap(TerminalSize size)
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, java.lang.String initialContent)
Creates a new emptyTextBox
with a specific size and initial contentTextBox(TerminalSize preferredSize, java.lang.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 TerminalSize Modifier and Type Field Description private 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 TerminalSize Modifier and Type Method Description TerminalSize
ActionListDialogBuilder. 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 itemsTerminalSize
ListSelectDialogBuilder. getListBoxSize()
Size of the list box in the dialog ornull
if the dialog will ask for enough space to draw all itemsTerminalSize
DirectoryDialogBuilder. getSuggestedSize()
Returns the suggested size for the file dialogTerminalSize
FileDialogBuilder. getSuggestedSize()
Returns the suggested size for the file dialogTerminalSize
TextInputDialogBuilder. getTextBoxSize()
Returns the size of the text box the dialog will haveMethods in com.googlecode.lanterna.gui2.dialogs with parameters of type TerminalSize Modifier and Type Method Description ActionListDialogBuilder
ActionListDialogBuilder. 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<T>
ListSelectDialogBuilder. 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
DirectoryDialogBuilder. setSuggestedSize(TerminalSize suggestedSize)
Sets the suggested size for the file dialog, it won't have exactly this size but roughly.FileDialogBuilder
FileDialogBuilder. setSuggestedSize(TerminalSize suggestedSize)
Sets the suggested size for the file dialog, it won't have exactly this size but roughly.TextInputDialogBuilder
TextInputDialogBuilder. setTextBoxSize(TerminalSize textBoxSize)
Sets the size of the text box the dialog will havestatic <T> T
ListSelectDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, TerminalSize listBoxSize, T... items)
Shortcut for quickly creating a new dialogConstructors in com.googlecode.lanterna.gui2.dialogs with parameters of type TerminalSize Constructor Description ActionListDialog(java.lang.String title, java.lang.String description, TerminalSize actionListPreferredSize, boolean canCancel, boolean closeAutomatically, java.util.List<java.lang.Runnable> actions)
DirectoryDialog(java.lang.String title, java.lang.String description, java.lang.String actionLabel, TerminalSize dialogSize, boolean showHiddenDirs, java.io.File selectedObject)
Default constructor forDirectoryDialog
FileDialog(java.lang.String title, java.lang.String description, java.lang.String actionLabel, TerminalSize dialogSize, boolean showHiddenFilesAndDirs, java.io.File selectedObject)
Default constructor forFileDialog
ListSelectDialog(java.lang.String title, java.lang.String description, TerminalSize listBoxPreferredSize, boolean canCancel, java.util.List<T> content)
TextInputDialog(java.lang.String title, java.lang.String description, TerminalSize textBoxPreferredSize, java.lang.String initialContent, TextInputDialogResultValidator validator, boolean password)
-
Uses of TerminalSize in com.googlecode.lanterna.gui2.menu
Methods in com.googlecode.lanterna.gui2.menu that return TerminalSize Modifier and Type Method Description TerminalSize
MenuBar.DefaultMenuBarRenderer. getPreferredSize(MenuBar menuBar)
TerminalSize
MenuItem.DefaultMenuItemRenderer. getPreferredSize(MenuItem component)
-
Uses of TerminalSize in com.googlecode.lanterna.gui2.table
Fields in com.googlecode.lanterna.gui2.table declared as TerminalSize Modifier and Type Field Description private TerminalSize
DefaultTableRenderer. cachedSize
Methods in com.googlecode.lanterna.gui2.table that return TerminalSize Modifier and Type Method Description TerminalSize
DefaultTableCellRenderer. getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex)
TerminalSize
DefaultTableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)
TerminalSize
DefaultTableRenderer. getPreferredSize(Table<V> table)
TerminalSize
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 beTerminalSize
TableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)
Called by the table when it wants to know how big a particular table header should beTerminalSize
TableRenderer. getPreferredSize(Table<V> component)
Methods in com.googlecode.lanterna.gui2.table with parameters of type TerminalSize Modifier and Type Method Description private int
DefaultTableRenderer. calculateVisibleColumns(TerminalSize area, int viewLeftColumn, int preferredVisibleColumns)
private int
DefaultTableRenderer. calculateVisibleRows(TerminalSize area, int viewTopRow, int preferredVisibleRows)
private java.util.List<java.lang.Integer>
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 TerminalSize Modifier and Type Field Description private TerminalSize
AbstractScreen. latestResizeRequest
private TerminalSize
VirtualScreen. minimumSize
private TerminalSize
AbstractScreen. terminalSize
private TerminalSize
VirtualScreen. viewportSize
Methods in com.googlecode.lanterna.screen that return TerminalSize Modifier and Type Method Description private TerminalSize
VirtualScreen. calculateViewport(TerminalSize realTerminalSize)
TerminalSize
AbstractScreen. doResizeIfNecessary()
TerminalSize
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).TerminalSize
TerminalScreen. doResizeIfNecessary()
TerminalSize
VirtualScreen. doResizeIfNecessary()
private TerminalSize
AbstractScreen. getAndClearPendingResize()
TerminalSize
VirtualScreen. getMinimumSize()
Returns the minimum size this virtual screen can have.TerminalSize
ScreenBuffer. getSize()
TerminalSize
ScreenTextGraphics. getSize()
TerminalSize
AbstractScreen. getTerminalSize()
TerminalSize
Screen. getTerminalSize()
Returns the size of the screen.TerminalSize
VirtualScreen.DefaultFrameRenderer. getViewportSize(TerminalSize realSize, TerminalSize virtualSize)
TerminalSize
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?TerminalSize
VirtualScreen. getViewportSize()
Returns the current size of the viewport.Methods in com.googlecode.lanterna.screen with parameters of type TerminalSize Modifier and Type Method Description protected 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)TerminalSize
VirtualScreen.DefaultFrameRenderer. getViewportSize(TerminalSize realSize, TerminalSize virtualSize)
TerminalSize
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
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 TerminalSize Constructor Description AbstractScreen(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 TerminalSize Modifier and Type Field Description private TerminalSize
DefaultTerminalFactory. initialTerminalSize
private TerminalSize
AbstractTerminal. lastKnownSize
(package private) TerminalSize
SimpleTerminalResizeListener. lastKnownSize
private TerminalSize
TerminalTextGraphics. terminalSize
Methods in com.googlecode.lanterna.terminal that return TerminalSize Modifier and Type Method Description TerminalSize
SimpleTerminalResizeListener. getLastKnownSize()
Returns the last known size the Terminal is supposed to have.TerminalSize
TerminalTextGraphics. getSize()
TerminalSize
IOSafeTerminal. getTerminalSize()
TerminalSize
IOSafeTerminalAdapter. getTerminalSize()
TerminalSize
Terminal. getTerminalSize()
Returns the size of the terminal, expressed as aTerminalSize
object.Methods in com.googlecode.lanterna.terminal with parameters of type TerminalSize Modifier and Type Method Description TextGraphics
TerminalTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
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
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 TerminalSize Constructor Description SimpleTerminalResizeListener(TerminalSize initialSize)
Creates a new SimpleTerminalResizeListener -
Uses of TerminalSize in com.googlecode.lanterna.terminal.ansi
Fields in com.googlecode.lanterna.terminal.ansi declared as TerminalSize Modifier and Type Field Description private TerminalSize
FixedTerminalSizeProvider. size
Methods in com.googlecode.lanterna.terminal.ansi that return TerminalSize Modifier and Type Method Description protected TerminalSize
ANSITerminal. findTerminalSize()
protected TerminalSize
CygwinTerminal. findTerminalSize()
TerminalSize
ANSITerminal. getTerminalSize()
TerminalSize
FixedTerminalSizeProvider. queryTerminalSize()
TerminalSize
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 TerminalSize Constructor Description FixedTerminalSizeProvider(TerminalSize size)
Creating 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 TerminalSize Modifier and Type Method Description TerminalSize
AWTTerminal. getTerminalSize()
TerminalSize
AWTTerminalFrame. getTerminalSize()
TerminalSize
GraphicalTerminalImplementation. getTerminalSize()
TerminalSize
ScrollingAWTTerminal. getTerminalSize()
TerminalSize
ScrollingSwingTerminal. getTerminalSize()
TerminalSize
SwingTerminal. getTerminalSize()
TerminalSize
SwingTerminalFrame. getTerminalSize()
Constructors in com.googlecode.lanterna.terminal.swing with parameters of type TerminalSize Constructor Description AWTTerminal(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(java.lang.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 objectsAWTTerminalImplementation(java.awt.Component component, AWTTerminalFontConfiguration fontConfiguration, TerminalSize initialTerminalSize, TerminalEmulatorDeviceConfiguration deviceConfiguration, TerminalEmulatorColorConfiguration colorConfiguration, TerminalScrollController scrollController)
Creates a newAWTTerminalImplementation
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(java.lang.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 objectsSwingTerminalImplementation(javax.swing.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 TerminalSize Modifier and Type Field Description private TerminalSize
DefaultVirtualTerminal. terminalSize
Methods in com.googlecode.lanterna.terminal.virtual that return TerminalSize Modifier and Type Method Description TerminalSize
VirtualTerminalTextGraphics. getSize()
TerminalSize
DefaultVirtualTerminal. getTerminalSize()
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TerminalSize Modifier and Type Method Description void
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 TerminalSize Constructor Description DefaultVirtualTerminal(TerminalSize initialTerminalSize)
Creates a new virtual terminal with an initial size set
-