@InterfaceAudience.Private public class ScreenBuffer extends Object
Modifier and Type | Field and Description |
---|---|
private Cell[][] |
buffer |
private int |
columns |
private int |
cursorColumn |
private int |
cursorRow |
private boolean |
cursorVisible |
private Cell[][] |
physical |
private int |
rows |
Constructor and Description |
---|
ScreenBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
endOfLine(int column,
int row) |
void |
flush(PrintWriter output) |
private void |
flushRow(int row,
StringBuilder sb,
Attributes lastAttributes) |
CursorPosition |
getCursorPosition() |
void |
hideCursor() |
void |
putChar(int column,
int row,
char ch,
Attributes attributes) |
void |
putString(int column,
int row,
String string,
Attributes attributes) |
void |
reallocate(int columns,
int rows) |
void |
setCursorPosition(int column,
int row) |
private int columns
private int rows
private boolean cursorVisible
private int cursorColumn
private int cursorRow
public ScreenBuffer()
public void reallocate(int columns, int rows)
public void clear()
public void flush(PrintWriter output)
private void flushRow(int row, StringBuilder sb, Attributes lastAttributes)
public CursorPosition getCursorPosition()
public void setCursorPosition(int column, int row)
public void hideCursor()
public void putString(int column, int row, String string, Attributes attributes)
public void putChar(int column, int row, char ch, Attributes attributes)
public void endOfLine(int column, int row)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.