Package | Description |
---|---|
jexer |
Jexer - Java Text User Interface library
|
jexer.backend |
The interface between TApplication and user-facing I/O.
|
jexer.bits |
Low-level data objects and utility functions that don't warrant their own
separate package.
|
jexer.teditor |
A basic text editor backend supporting word highlighting.
|
jexer.tterminal |
An ECMA-48 / ANSI X3.64 style terminal emulator.
|
Modifier and Type | Method and Description |
---|---|
protected CellAttributes |
TWidget.getAttrXY(int x,
int y)
Get the attributes at one location.
|
CellAttributes |
TWindow.getBackground()
Retrieve the background color.
|
CellAttributes |
TWindow.getBorder()
Retrieve the border color.
|
CellAttributes |
TWindow.getBorderControls()
Retrieve the color used by the window movement/sizing controls.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TWidget.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background)
Draw a box with a border and empty background.
|
protected void |
TWidget.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background,
int borderType,
boolean shadow)
Draw a box with a border and empty background.
|
protected void |
TWidget.hLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a horizontal line from (x, y) to (x + n, y).
|
protected void |
TWidget.putAll(int ch,
CellAttributes attr)
Fill the entire screen with one character with attributes.
|
protected void |
TWidget.putAttrXY(int x,
int y,
CellAttributes attr)
Set the attributes at one location.
|
protected void |
TWidget.putAttrXY(int x,
int y,
CellAttributes attr,
boolean clip)
Set the attributes at one location.
|
protected void |
TWidget.putCharXY(int x,
int y,
int ch,
CellAttributes attr)
Render one character with attributes.
|
protected void |
TWidget.putStringXY(int x,
int y,
java.lang.String str,
CellAttributes attr)
Render a string.
|
void |
TButton.setShadowColor(CellAttributes color)
Set the background color used for the button "shadow".
|
protected void |
TWidget.vLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a vertical line from (x, y) to (x, y + n).
|
Modifier and Type | Method and Description |
---|---|
CellAttributes |
LogicalScreen.getAttrXY(int x,
int y)
Get the attributes at one location.
|
CellAttributes |
MultiScreen.getAttrXY(int x,
int y)
Get the attributes at one location.
|
CellAttributes |
Screen.getAttrXY(int x,
int y)
Get the attributes at one location.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
SwingTerminal.attrToBackgroundColor(CellAttributes attr)
Convert a CellAttributes background color to an Swing Color.
|
static java.awt.Color |
SwingTerminal.attrToForegroundColor(CellAttributes attr)
Convert a CellAttributes foreground color to an Swing Color.
|
void |
LogicalScreen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background)
Draw a box with a border and empty background.
|
void |
MultiScreen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background)
Draw a box with a border and empty background.
|
void |
Screen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background)
Draw a box with a border and empty background.
|
void |
LogicalScreen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background,
int borderType,
boolean shadow)
Draw a box with a border and empty background.
|
void |
MultiScreen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background,
int borderType,
boolean shadow)
Draw a box with a border and empty background.
|
void |
Screen.drawBox(int left,
int top,
int right,
int bottom,
CellAttributes border,
CellAttributes background,
int borderType,
boolean shadow)
Draw a box with a border and empty background.
|
void |
LogicalScreen.hLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a horizontal line from (x, y) to (x + n, y).
|
void |
MultiScreen.hLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a horizontal line from (x, y) to (x + n, y).
|
void |
Screen.hLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a horizontal line from (x, y) to (x + n, y).
|
void |
LogicalScreen.putAll(int ch,
CellAttributes attr)
Fill the entire screen with one character with attributes.
|
void |
MultiScreen.putAll(int ch,
CellAttributes attr)
Fill the entire screen with one character with attributes.
|
void |
Screen.putAll(int ch,
CellAttributes attr)
Fill the entire screen with one character with attributes.
|
void |
LogicalScreen.putAttrXY(int x,
int y,
CellAttributes attr)
Set the attributes at one location.
|
void |
MultiScreen.putAttrXY(int x,
int y,
CellAttributes attr)
Set the attributes at one location.
|
void |
Screen.putAttrXY(int x,
int y,
CellAttributes attr)
Set the attributes at one location.
|
void |
LogicalScreen.putAttrXY(int x,
int y,
CellAttributes attr,
boolean clip)
Set the attributes at one location.
|
void |
MultiScreen.putAttrXY(int x,
int y,
CellAttributes attr,
boolean clip)
Set the attributes at one location.
|
void |
Screen.putAttrXY(int x,
int y,
CellAttributes attr,
boolean clip)
Set the attributes at one location.
|
void |
LogicalScreen.putCharXY(int x,
int y,
int ch,
CellAttributes attr)
Render one character with attributes.
|
void |
MultiScreen.putCharXY(int x,
int y,
int ch,
CellAttributes attr)
Render one character with attributes.
|
void |
Screen.putCharXY(int x,
int y,
int ch,
CellAttributes attr)
Render one character with attributes.
|
void |
LogicalScreen.putFullwidthCharXY(int x,
int y,
int ch,
CellAttributes attr)
Render one fullwidth character with attributes.
|
void |
LogicalScreen.putStringXY(int x,
int y,
java.lang.String str,
CellAttributes attr)
Render a string.
|
void |
MultiScreen.putStringXY(int x,
int y,
java.lang.String str,
CellAttributes attr)
Render a string.
|
void |
Screen.putStringXY(int x,
int y,
java.lang.String str,
CellAttributes attr)
Render a string.
|
void |
LogicalScreen.vLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a vertical line from (x, y) to (x, y + n).
|
void |
MultiScreen.vLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a vertical line from (x, y) to (x, y + n).
|
void |
Screen.vLineXY(int x,
int y,
int n,
int ch,
CellAttributes attr)
Draw a vertical line from (x, y) to (x, y + n).
|
Modifier and Type | Class and Description |
---|---|
class |
Cell
This class represents a single text cell or bit of image on the screen.
|
Modifier and Type | Method and Description |
---|---|
CellAttributes |
ColorTheme.getColor(java.lang.String name)
Retrieve the CellAttributes for a named theme color.
|
Modifier and Type | Method and Description |
---|---|
void |
Cell.setAttr(CellAttributes that)
Set my field attr values to that's field.
|
void |
ColorTheme.setColor(java.lang.String name,
CellAttributes color)
Set the color for a named theme color.
|
Constructor and Description |
---|
Cell(CellAttributes attr)
Public constructor sets the attributes.
|
Cell(int ch,
CellAttributes attr)
Public constructor sets the character and attributes.
|
CellAttributes(CellAttributes that)
Public constructor makes a copy from another instance.
|
Modifier and Type | Method and Description |
---|---|
CellAttributes |
Word.getColor()
Get the color used to display this word on screen.
|
CellAttributes |
Highlighter.getColor(java.lang.String name)
Retrieve the CellAttributes for a named theme color.
|
Modifier and Type | Method and Description |
---|---|
void |
Word.setColor(CellAttributes color)
Set the color used to display this word on screen.
|
Constructor and Description |
---|
Document(java.lang.String str,
CellAttributes defaultColor)
Construct a new Document from an existing text string.
|
Line(java.lang.String str,
CellAttributes defaultColor)
Construct a new Line from an existing text string.
|
Line(java.lang.String str,
CellAttributes defaultColor,
Highlighter highlighter)
Construct a new Line from an existing text string, and highlight
certain strings.
|
Word(CellAttributes defaultColor,
Highlighter highlighter)
Construct a word with an empty string.
|
Word(int ch,
CellAttributes defaultColor,
Highlighter highlighter)
Construct a word with one character.
|
Modifier and Type | Method and Description |
---|---|
void |
DisplayLine.setAttr(int idx,
CellAttributes attr)
Set the attributes (just the attributes, not the char) at the
specified position to attr.
|
Constructor and Description |
---|
DisplayLine(CellAttributes attr)
Public constructor sets everything to drawing attributes.
|
Copyright © 2019 Kevin Lamonte. Licensed MIT.