public class Size extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
copy(Size size) |
|
int |
cursorPos(int row,
int col) |
A cursor position combines a row number with a column position.
|
boolean |
equals(Object o) |
|
int |
getColumns() |
|
int |
getRows() |
|
int |
hashCode() |
|
void |
setColumns(int columns) |
|
void |
setRows(int rows) |
|
String |
toString() |
public int getColumns()
public void setColumns(int columns)
public int getRows()
public void setRows(int rows)
public int cursorPos(int row, int col)
Note each row has col+1
different column positions,
including the right margin.
col
- the new columnrow
- the new rowpublic void copy(Size size)
Copyright © 2020. All rights reserved.