Package | Description |
---|---|
ca.randolf.fx.textmode |
TextRegion is a high-performance pixel-perfect JavaFX text-mode region that
accurately resembles the look-and-feel of Unix and DOS screens that were
popular in the 1980s. In particular, the font's appearance has been
accurately re-created, the cursor's behaviour has been implemented with the
utmost attention to function and timing, and has support for both AVATAR
(AVT/0+) and ANSI code sequences. New features are also introduced
to modernize this extensive implementation of text mode, such as support
for full RGB colour support with transparency (RGBA).
|
Modifier and Type | Method and Description |
---|---|
TextRegion |
TextRegion.clear()
Clear the TextRegion to character 0 without any colour set (so that the
default background and foreground colours will be used), and position the
cursor to its proper corner.
|
TextRegion |
TextRegion.down()
Move the cursor up one row, scrolling if already at the bottom (and the
cursor advancement policy is top-to-bottom {default}).
|
TextRegion |
TextRegion.fill(int top,
int left,
int bottom,
int right,
int... ch)
Fill the specified region with the specified character (without changing
the position of the cursor).
|
TextRegion |
TextRegion.fill(int top,
int left,
int bottom,
int right,
String s)
Fill the specified region with the specified character (without changing
the position of the cursor).
|
TextRegion |
TextRegion.fillColour(int top,
int left,
int bottom,
int right,
int bg_argb_int,
int fg_argb_int)
Fill the specified region with the specified background and foreground
colours (without changing the position of the cursor) without changing any
of the characters.
|
TextRegion |
TextRegion.left()
Move the cursor left one column, wrapping around the edge to the previous
row as needed and without scrolling (and the cursor advancement policy is
top-to-bottom {default}).
|
TextRegion |
TextRegion.lnprint(byte... b)
Add binary bytes to TextRegion, preceded by a NewLine sequence, and advance
the cursor.
|
TextRegion |
TextRegion.lnprint(String s)
Add string to TextRegion, preceded by a NewLine sequence, and advance the
cursor.
|
TextRegion |
TextRegion.lnprintRaw(byte... b)
Add raw binary bytes to TextRegion, preceded by a NewLine sequence, and
advance the cursor.
|
TextRegion |
TextRegion.lnprintRaw(String s)
Add raw string to TextRegion, preceded by a NewLine sequence, and advance
the cursor.
|
TextRegion |
TextRegion.moveDown()
Move the cursor down one row, unless the cursor is already positioned on
the bottom-most row.
|
TextRegion |
TextRegion.moveLeft()
Move the cursor left one column, unless the cursor is already positioned on
the left-most column.
|
TextRegion |
TextRegion.moveRight()
Move the cursor right one column, unless the cursor is already positioned
on the right-most column.
|
TextRegion |
TextRegion.moveUp()
Move the cursor up one row, unless the cursor is already positioned on the
top-most row.
|
TextRegion |
TextRegion.newLine()
Add NewLine sequence to TextRegion, and advance the cursor.
|
TextRegion |
TextRegion.print(byte... b)
Add binary bytes to TextRegion, and advance the cursor.
|
TextRegion |
TextRegion.print(String s)
Add string to TextRegion, and advance the cursor.
|
TextRegion |
TextRegion.println(byte... b)
Add binary bytes to TextRegion, append a NewLine to the string, and advance
the cursor.
|
TextRegion |
TextRegion.println(String s)
Add string to TextRegion, append a NewLine to the string, and advance the
cursor.
|
TextRegion |
TextRegion.printlnRaw(byte... b)
Add raw binary bytes to TextRegion, append a NewLine to the string, and
advance the cursor.
|
TextRegion |
TextRegion.printlnRaw(String s)
Add raw binary bytes to TextRegion, append a NewLine to the string, and
advance the cursor.
|
TextRegion |
TextRegion.printRaw(byte... b)
Add raw binary bytes to TextRegion, and advance the cursor.
|
TextRegion |
TextRegion.printRaw(String s)
Add raw string to TextRegion, and advance the cursor.
|
TextRegion |
TextRegion.right()
Move the cursor right one column, wrapping around the edge to the next row
as needed and with scrolling also as needed (and the cursor advancement
policy is top-to-bottom {default}).
|
TextRegion |
TextRegion.scrollDown(int r)
Scroll the entire region down by the specified number of rows (without
changing the position of the cursor).
|
TextRegion |
TextRegion.scrollDownArea(int n,
int top,
int left,
int bottom,
int right)
Scroll the specified region down by the specified number of rows (without
changing the position of the cursor).
|
TextRegion |
TextRegion.scrollLeft(int c)
Scroll the entire region left by the specified number of columns (without
changing the position of the cursor).
|
TextRegion |
TextRegion.scrollRight(int c)
Scroll the entire region right by the specified number of columns (without
changing the position of the cursor).
|
TextRegion |
TextRegion.scrollUp(int r)
Scroll the entire region up by the specified number of rows (without
changing the position of the cursor).
|
TextRegion |
TextRegion.scrollUpArea(int n,
int top,
int left,
int bottom,
int right)
Scroll the specified region up by the specified number of rows (without
changing the position of the cursor).
|
TextRegion |
TextRegion.set(int... cmds)
Alters the value of any number of parameters (in any order).
|
TextRegion |
TextRegion.strafeDown()
Move the cursor down one row, or scroll up one row if the cursor is already
positioned on the bottom-most row.
|
TextRegion |
TextRegion.strafeLeft()
Move the cursor left one column, or scroll right one column if the cursor
is already positioned on the left-most column.
|
TextRegion |
TextRegion.strafeRight()
Move the cursor right one column, or scroll left one column if the cursor
is already positioned on the right-most column.
|
TextRegion |
TextRegion.strafeUp()
Move the cursor up one row, or scroll down one row if the cursor is already
positioned on the top-most row.
|
TextRegion |
TextRegion.up()
Move the cursor up one row, without scrolling if already at the top (and
the cursor advancement policy is top-to-bottom {default}).
|
Modifier and Type | Method and Description |
---|---|
static Chr |
Chr.zero(TextRegion tr)
Instantiate a new Chr object that is character 0 using the specified
background and foreground colours (formatted as ARGB integers).
|
Constructor and Description |
---|
Chr(int chr,
TextRegion tr,
int... cmds)
Autonomic "Chr" constructor, starting with the character, and a TextRegion
object upon which to base its attribute defaults. Additional
attributes are optional.
|