public class TerminalSize extends Object
Constructor and Description |
---|
TerminalSize(int height,
int width)
Initializes a TerminalSize with height and width.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCenterHeight()
Gets the center height of current and not readjusted terminal screen.
|
int |
getCenterWidth()
Gets the center width of current and not readjusted terminal screen.
|
int |
getHeight()
Gets the height of current and not readjusted terminal screen.
|
int |
getWidth()
Gets the width of current and not readjusted terminal screen.
|
int |
hashCode() |
boolean |
isPositionWithinSize(CursorPosition pos) |
void |
setHeight(int height)
Sets the height of terminal screen.
This method throw an IllegalArgumentException in case height < 1. |
void |
setWidth(int width)
Sets the width of terminal screen.
This method throw an IllegalArgumentException in case width < 1. |
String |
toString() |
public TerminalSize(int height, int width)
height
- intwidth
- intpublic int getWidth()
public void setWidth(int width)
width
- intpublic int getHeight()
public void setHeight(int height)
height
- intpublic int getCenterWidth()
public int getCenterHeight()
public boolean isPositionWithinSize(CursorPosition pos)
Copyright © 2018 JBoss by Red Hat. All rights reserved.