Modifier and Type | Field and Description |
---|---|
static TerminalSize |
TerminalSize.ONE |
static TerminalSize |
TerminalSize.ZERO |
Modifier and Type | Method and 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 width
|
TerminalSize |
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 height
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
TerminalSize |
TextImage.getSize()
Returns the dimensions of this TextImage, in columns and rows
|
TerminalSize |
TextGraphics.getSize()
Returns the size of the area that this text graphic can write to.
|
TerminalSize |
ImmutableThemedTextGraphics.getSize() |
TerminalSize |
DoublePrintingTextGraphics.getSize() |
TerminalSize |
BasicTextImage.getSize() |
Modifier and Type | Method and Description |
---|---|
TextGraphics |
TextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize)
Takes a TextImage and draws it on the surface this TextGraphics is targeting, given the coordinates on the target
that is specifying where the top-left corner of the image should be drawn.
|
TextGraphics |
ImmutableThemedTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
AbstractTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
TextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character)
Draws the outline of a rectangle with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character)
Draws the outline of a rectangle with a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character)
Takes a rectangle and fills it with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character)
Takes a rectangle and fills it using a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size)
Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
TextGraphics |
AbstractTextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
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.
|
BasicTextImage |
BasicTextImage.resize(TerminalSize newSize,
TextCharacter filler) |
Constructor and 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 color
|
BasicTextImage(TerminalSize size,
TextCharacter initialContent)
Creates a new BasicTextImage with a given size and a TextCharacter to initially fill it with
|
Modifier and Type | Method and Description |
---|---|
TerminalSize |
Panel.calculatePreferredSize() |
protected TerminalSize |
AbstractComponent.calculatePreferredSize()
Invokes the component renderer's size calculation logic and returns the result.
|
protected TerminalSize |
Label.getBounds(String[] lines,
TerminalSize currentBounds)
Returns the area, in terminal columns and rows, required to fully draw the lines passed in.
|
TerminalSize |
Window.getDecoratedSize()
Returns the last known size of the window including window decorations put on by the window manager.
|
TerminalSize |
AbstractWindow.getDecoratedSize() |
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 |
EmptyWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
TerminalSize |
DefaultWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
TerminalSize |
Window.getPreferredSize()
Returns the size this window would like to be
|
TerminalSize |
Component.getPreferredSize()
Returns the ideal size this component would like to have, in order to draw itself properly.
|
TerminalSize |
AbstractWindow.getPreferredSize() |
TerminalSize |
AbstractComponent.getPreferredSize() |
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 |
LinearLayout.getPreferredSize(List<Component> components) |
TerminalSize |
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.
|
TerminalSize |
GridLayout.getPreferredSize(List<Component> components) |
TerminalSize |
BorderLayout.getPreferredSize(List<Component> components) |
TerminalSize |
AbsoluteLayout.getPreferredSize(List<Component> components) |
TerminalSize |
ScrollBar.ScrollBarRenderer.getPreferredSize(ScrollBar component) |
TerminalSize |
Separator.DefaultSeparatorRenderer.getPreferredSize(Separator component) |
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 |
AbstractListBox.DefaultListBoxRenderer.getPreferredSize(T listBox) |
TerminalSize |
TextBox.DefaultTextBoxRenderer.getPreferredSize(TextBox component) |
TerminalSize |
Window.getSize()
Returns the last known size of the window.
|
TerminalSize |
TextGUIGraphics.getSize() |
TerminalSize |
Component.getSize()
Returns how large this component is.
|
TerminalSize |
AbstractWindow.getSize() |
TerminalSize |
AbstractComponent.getSize() |
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?
|
Modifier and Type | Method and Description |
---|---|
void |
LinearLayout.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 |
GridLayout.doLayout(TerminalSize area,
List<Component> components) |
void |
BorderLayout.doLayout(TerminalSize area,
List<Component> components) |
void |
AbsoluteLayout.doLayout(TerminalSize area,
List<Component> components) |
TextGraphics |
TextGUIGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
TextGUIGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGUIGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGUIGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
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.
|
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 |
EmptyWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
TerminalSize |
DefaultWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
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?
|
TextGUIGraphics |
TextGUIGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
protected void |
DefaultWindowManager.prepareWindow(TerminalSize screenSize,
Window window)
Called by
DefaultWindowManager when iterating through all windows to decide their size and position. |
void |
WindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize)
Called by the GUI system before iterating through all windows during the drawing process.
|
void |
DefaultWindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
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.setDecoratedSize(TerminalSize decoratedSize) |
Component |
Component.setPreferredSize(TerminalSize explicitPreferredSize)
Overrides the components preferred size calculation and makes the
getPreferredSize() always return the
value passed in here. |
T |
AbstractComponent.setPreferredSize(TerminalSize explicitPreferredSize) |
void |
Window.setSize(TerminalSize size)
This method is called by the GUI system to update the window on how large it is, excluding window decorations.
|
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 |
AbstractWindow.setSize(TerminalSize size) |
T |
AbstractComponent.setSize(TerminalSize size) |
Border |
AbstractBorder.setSize(TerminalSize size) |
Constructor and 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 new
ActionListBox with a pre-set size. |
CheckBoxList(TerminalSize preferredSize)
Creates a new
CheckBoxList that is initially empty and has a pre-defined size that it will request. |
DefaultWindowManager(TerminalSize initialScreenSize)
Creates a new
DefaultWindowManager using a DefaultWindowDecorationRenderer for drawing window
decorations. |
DefaultWindowManager(WindowDecorationRenderer windowDecorationRenderer,
TerminalSize initialScreenSize)
Creates a new
DefaultWindowManager using a specified windowDecorationRenderer for drawing window
decorations. |
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
|
RadioBoxList(TerminalSize preferredSize)
Creates a new RadioCheckBoxList with a specified size.
|
TextBox(TerminalSize preferredSize)
Creates a new empty
TextBox with a specific size |
TextBox(TerminalSize preferredSize,
String initialContent)
Creates a new empty
TextBox with a specific size and initial content |
TextBox(TerminalSize preferredSize,
String initialContent,
TextBox.Style style)
Main constructor of the
TextBox which decides size, initial content and style |
TextBox(TerminalSize preferredSize,
TextBox.Style style)
Creates a new empty
TextBox with a specific size and style |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
ListSelectDialogBuilder.getListBoxSize()
Size of the list box in the dialog or
null if the dialog will ask for enough space to draw all items |
TerminalSize |
ActionListDialogBuilder.getListBoxSize()
Returns the specified size of the internal
ActionListBox or null if there is no size and the list
box will attempt to take up enough size to draw all items |
TerminalSize |
FileDialogBuilder.getSuggestedSize()
Returns the suggested size for the file dialog
|
TerminalSize |
TextInputDialogBuilder.getTextBoxSize()
Returns the size of the text box the dialog will have
|
Modifier and Type | Method and Description |
---|---|
ListSelectDialogBuilder<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.
|
ActionListDialogBuilder |
ActionListDialogBuilder.setListBoxSize(TerminalSize listBoxSize)
Sets the size of the internal
ActionListBox in columns and rows, forcing scrollbars to appear if the
space isn't big enough to contain all the items |
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 have
|
static <T> T |
ListSelectDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
TerminalSize listBoxSize,
T... items)
Shortcut for quickly creating a new dialog
|
Constructor and Description |
---|
FileDialog(String title,
String description,
String actionLabel,
TerminalSize dialogSize,
boolean showHiddenFilesAndDirs,
File selectedObject)
Default constructor for
FileDialog |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
TableRenderer.getPreferredSize(Table<V> component) |
TerminalSize |
DefaultTableRenderer.getPreferredSize(Table<V> table) |
TerminalSize |
TableHeaderRenderer.getPreferredSize(Table<V> table,
String label,
int columnIndex)
Called by the table when it wants to know how big a particular table header should be
|
TerminalSize |
DefaultTableHeaderRenderer.getPreferredSize(Table<V> table,
String label,
int columnIndex) |
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 be
|
TerminalSize |
DefaultTableCellRenderer.getPreferredSize(Table<V> table,
V cell,
int columnIndex,
int rowIndex) |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
VirtualScreen.doResizeIfNecessary() |
TerminalSize |
TerminalScreen.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 |
AbstractScreen.doResizeIfNecessary() |
TerminalSize |
VirtualScreen.getMinimumSize()
Returns the minimum size this virtual screen can have.
|
TerminalSize |
ScreenBuffer.getSize() |
TerminalSize |
Screen.getTerminalSize()
Returns the size of the screen.
|
TerminalSize |
AbstractScreen.getTerminalSize() |
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?
|
Modifier and Type | Method and 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 buffers
|
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.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?
|
ScreenBuffer |
ScreenBuffer.resize(TerminalSize newSize,
TextCharacter filler) |
void |
VirtualScreen.setMinimumSize(TerminalSize minimumSize)
Sets the minimum size we want the virtual screen to have.
|
Constructor and 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
|
Modifier and Type | Method and Description |
---|---|
TerminalSize |
SimpleTerminalResizeListener.getLastKnownSize()
Returns the last known size the Terminal is supposed to have.
|
TerminalSize |
Terminal.getTerminalSize()
Returns the size of the terminal, expressed as a
TerminalSize object. |
TerminalSize |
IOSafeTerminalAdapter.getTerminalSize() |
TerminalSize |
IOSafeTerminal.getTerminalSize() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleTerminalResizeListener.onResized(Terminal terminal,
TerminalSize newSize) |
void |
ResizeListener.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.
|
Constructor and Description |
---|
SimpleTerminalResizeListener(TerminalSize initialSize)
Creates a new SimpleTerminalResizeListener
|
Modifier and Type | Method and Description |
---|---|
TerminalSize |
UnixTerminal.getTerminalSize() |
TerminalSize |
CygwinTerminal.getTerminalSize() |
TerminalSize |
ANSITerminal.getTerminalSize() |
TerminalSize |
UnixTerminalSizeQuerier.queryTerminalSize()
Checks what the size of the terminal is, measured in number of rows and columns.
|
TerminalSize |
FixedTerminalSizeProvider.queryTerminalSize() |
Constructor and Description |
---|
FixedTerminalSizeProvider(TerminalSize size)
Creating a
FixedTerminalSizeProvider set to a particular size that it will always report whenever the
associated Terminal interface queries. |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
SwingTerminalFrame.getTerminalSize() |
TerminalSize |
SwingTerminal.getTerminalSize() |
TerminalSize |
ScrollingSwingTerminal.getTerminalSize() |
TerminalSize |
ScrollingAWTTerminal.getTerminalSize() |
TerminalSize |
AWTTerminalFrame.getTerminalSize() |
TerminalSize |
AWTTerminal.getTerminalSize() |
Constructor and 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(String title,
TerminalSize terminalSize,
TerminalEmulatorDeviceConfiguration deviceConfiguration,
AWTTerminalFontConfiguration fontConfiguration,
TerminalEmulatorColorConfiguration colorConfiguration,
TerminalEmulatorAutoCloseTrigger autoCloseTrigger)
Creates a new AWTTerminalFrame using a specified title and a series of AWT terminal configuration objects
|
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 autoCloseTrigger)
Creates a new SwingTerminalFrame using a specified title and a series of swing terminal configuration objects
|
Copyright © 2016. All rights reserved.