Modifier and Type | Method and Description |
---|---|
abstract TerminalSize |
Border.getInnerAreaSize(int width,
int height) |
TerminalSize |
Border.Standard.getInnerAreaSize(int width,
int height) |
TerminalSize |
Border.Bevel.getInnerAreaSize(int width,
int height) |
TerminalSize |
Border.Invisible.getInnerAreaSize(int width,
int height) |
TerminalSize |
Component.getMinimumSize()
This method is called by the layout system to figure out what the
absolute minimum size is for this component.
|
TerminalSize |
Component.getPreferredSize()
This method is called by the layout system to figure out how much space
each component will be assigned.
|
TerminalSize |
TextGraphics.getSize()
Size of the area the
TextGraphics can edit, as a TerminalSize object,
any attempts to draw outside of this area will be ignored. |
TerminalSize |
Window.getWindowSizeOverride()
Returns the current window size override or
null if none is set |
abstract TerminalSize |
Border.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Standard.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Bevel.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Invisible.surroundAreaSize(TerminalSize TerminalSize) |
Modifier and Type | Method and Description |
---|---|
abstract void |
Border.drawBorder(TextGraphics graphics,
TerminalSize actualSize,
String title) |
void |
Border.Standard.drawBorder(TextGraphics graphics,
TerminalSize actualSize,
String title) |
void |
Border.Bevel.drawBorder(TextGraphics graphics,
TerminalSize actualSize,
String title) |
void |
Border.Invisible.drawBorder(TextGraphics graphics,
TerminalSize actualSize,
String title) |
void |
TextGraphics.fillRectangle(char character,
TerminalPosition topLeft,
TerminalSize rectangleSize)
Replaces the content of a rectangle within the TextGraphic drawing area
with a specified character
|
void |
Component.setPreferredSize(TerminalSize preferredSizeOverride)
If called with a non-null parameter, it will override the component's
own preferred size calculation and instead
getPreferredSize()
will return the value passed in. |
void |
Window.setWindowSizeOverride(TerminalSize windowSizeOverride)
Sets the size of the window to a fixed value, rather than using automatic size calculation.
|
TextGraphics |
TextGraphics.subAreaGraphics(TerminalPosition topLeft,
TerminalSize subAreaSize)
Creates a new TextGraphics object using the same area or smaller.
|
abstract TerminalSize |
Border.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Standard.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Bevel.surroundAreaSize(TerminalSize TerminalSize) |
TerminalSize |
Border.Invisible.surroundAreaSize(TerminalSize TerminalSize) |
Modifier and Type | Method and Description |
---|---|
void |
TextArea.setMaximumSize(TerminalSize maximumSize) |
void |
TextArea.setMinimumSize(TerminalSize minimumSize) |
void |
AbstractComponent.setPreferredSize(TerminalSize preferredSizeOverride) |
protected TextGraphics |
AbstractComponent.transformAccordingToAlignment(TextGraphics graphics,
TerminalSize preferredSize)
Will create a sub-graphic area according to the alignment, if the assigned size is larger
than the preferred size.
|
Constructor and Description |
---|
AbstractListBox(TerminalSize preferredSize) |
ActionListBox(TerminalSize preferredSize) |
CheckBoxList(TerminalSize preferredSize) |
EditArea(TerminalSize preferredSize) |
EditArea(TerminalSize preferredSize,
String text) |
EditArea(TerminalSize preferredSize,
String text,
boolean lockPreferredSize) |
RadioCheckBoxList(TerminalSize preferredSize)
Creates a new RadioCheckBoxList with a specified size override
|
TextArea(TerminalSize preferredSize,
String text) |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
BorderLayout.getPreferredSize() |
TerminalSize |
LayoutManager.getPreferredSize()
Calculates the optimal size of the container this layout manager is
controlling by asking every component controlled by the manager how big
they would like to be.
|
TerminalSize |
LinearLayout.getPreferredSize() |
TerminalSize |
LayoutManager.LaidOutComponent.getSize() |
TerminalSize |
DefaultLaidOutComponent.getSize() |
Modifier and Type | Method and Description |
---|---|
protected int |
VerticalLayout.getMajorAxis(TerminalSize terminalSize) |
protected int |
HorisontalLayout.getMajorAxis(TerminalSize terminalSize) |
protected abstract int |
LinearLayout.getMajorAxis(TerminalSize terminalSize) |
protected int |
VerticalLayout.getMinorAxis(TerminalSize terminalSize) |
protected int |
HorisontalLayout.getMinorAxis(TerminalSize terminalSize) |
protected abstract int |
LinearLayout.getMinorAxis(TerminalSize terminalSize) |
List<? extends LayoutManager.LaidOutComponent> |
BorderLayout.layout(TerminalSize layoutArea) |
List<? extends LayoutManager.LaidOutComponent> |
LayoutManager.layout(TerminalSize layoutArea)
Given a size, lay out all the components on this area
|
List<? extends LayoutManager.LaidOutComponent> |
LinearLayout.layout(TerminalSize layoutArea) |
protected void |
VerticalLayout.setMajorAxis(TerminalSize terminalSize,
int majorAxisValue) |
protected void |
HorisontalLayout.setMajorAxis(TerminalSize terminalSize,
int majorAxisValue) |
protected abstract void |
LinearLayout.setMajorAxis(TerminalSize terminalSize,
int majorAxisValue) |
protected void |
VerticalLayout.setMinorAxis(TerminalSize terminalSize,
int minorAxisValue) |
protected void |
HorisontalLayout.setMinorAxis(TerminalSize terminalSize,
int minorAxisValue) |
protected abstract void |
LinearLayout.setMinorAxis(TerminalSize terminalSize,
int minorAxisValue) |
Constructor and Description |
---|
DefaultLaidOutComponent(Component component,
TerminalSize size,
TerminalPosition topLeftPosition) |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
Screen.getTerminalSize() |
Constructor and Description |
---|
Screen(Terminal terminal,
TerminalSize terminalSize)
Creates a new Screen on top of a supplied terminal and will set the size
of the screen to a supplied value.
|
Modifier and Type | Method and Description |
---|---|
protected TerminalSize |
AbstractTerminal.getLastKnownSize()
Used internally to get the last size known to the terminal
|
TerminalSize |
Terminal.getTerminalSize()
Returns the size of the terminal, expressed as a
TerminalSize
object. |
TerminalSize |
Terminal.queryTerminalSize()
Deprecated.
Being deprecated since 2.0.1 in favor of getTerminalSize()
|
protected TerminalSize |
InputEnabledAbstractTerminal.waitForTerminalSizeReport(int timeoutMs) |
Modifier and Type | Method and Description |
---|---|
void |
Terminal.ResizeListener.onResized(TerminalSize newSize) |
Constructor and Description |
---|
TerminalSize(TerminalSize terminalSize) |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
SwingTerminal.getTerminalSize() |
TerminalSize |
SwingTerminal.queryTerminalSize() |
Constructor and Description |
---|
SwingTerminal(TerminalSize terminalSize) |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
UnixTerminal.getTerminalSize() |
TerminalSize |
CygwinTerminal.getTerminalSize() |
TerminalSize |
ANSITerminal.getTerminalSize() |
TerminalSize |
UnixTerminal.queryTerminalSize()
Deprecated.
|
TerminalSize |
ANSITerminal.queryTerminalSize()
Deprecated.
|
TerminalSize |
UnixTerminalSizeQuerier.queryTerminalSize() |
TerminalSize |
FixedTerminalSizeProvider.queryTerminalSize() |
Constructor and Description |
---|
FixedTerminalSizeProvider(TerminalSize size) |
Copyright © 2015. All Rights Reserved.