Java Code Examples for com.googlecode.lanterna.TerminalSize#ONE

The following examples show how to use com.googlecode.lanterna.TerminalSize#ONE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EmptySpace.java    From lanterna with GNU Lesser General Public License v3.0 4 votes vote down vote up
/**
 * Creates an EmptySpace with size 1x1 and a default color chosen from the theme
 */
public EmptySpace() {
    this(null, TerminalSize.ONE);
}
 
Example 2
Source File: Separator.java    From lanterna with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TerminalSize getPreferredSize(Separator component) {
    return TerminalSize.ONE;
}
 
Example 3
Source File: ScrollBar.java    From lanterna with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TerminalSize getPreferredSize(ScrollBar component) {
    return TerminalSize.ONE;
}
 
Example 4
Source File: EmptySpace.java    From lanterna with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Creates an EmptySpace with a specified color and preferred size of 1x1
 * @param color Color to use (null will make it use the theme)
 */
public EmptySpace(TextColor color) {
    this(color, TerminalSize.ONE);
}