All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- affirmative(String).
Static method in class utils.TxtGrph
- Prompts for a 'Y' or 'N' response from the user
- beep().
Static method in class utils.TxtGrph
- Beeps the speaker
- down(int).
Static method in class utils.TxtGrph
- Move cursor down n rows, but not below row 23
Row 24 is reserved for prompts
This procedure cannot scroll the screen
- eof().
Static method in class utils.Keyboard
-
- eraseAll().
Static method in class utils.TxtGrph
- Erase entire screen.
- eraseBlock(int, int, int, int).
Static method in class utils.TxtGrph
- Erase block of characters on the screen
- eraseChars(int).
Static method in class utils.TxtGrph
- Erase numchar characters starting at the cursor
Does not test for writing past right mrgin.
- eraseDown().
Static method in class utils.TxtGrph
- Erase from cursor to bottom of the screen
- eraseLeft().
Static method in class utils.TxtGrph
- Erase from start of line to cursor
- erasePrompt().
Static method in class utils.TxtGrph
- Clears prompt line
- eraseRight().
Static method in class utils.TxtGrph
- Erase from cursor to end of the line
- eraseUp().
Static method in class utils.TxtGrph
- Erase from top of screen to cursor.
- fmt(double).
Static method in class utils.OutFmt
- return double n as a String, using number of decimal places
currently set (default 2, changed w/ setDecimalPlaces())
- fmt(int).
Static method in class utils.OutFmt
- return int n as a String
- getArrows().
Static method in class utils.TxtGrph
- Waits for an arrow key to be pressed.
- home().
Static method in class utils.TxtGrph
- move the cursor to the top lefthand corner of screen.
- homeAndClear().
Static method in class utils.TxtGrph
- Clear screen then place cursor in upper left corner.
- horizLine(int).
Static method in class utils.TxtGrph
- Draw horizontal line across from current cursor position
- Keyboard().
Constructor for class utils.Keyboard
-
- left(int).
Static method in class utils.TxtGrph
- Move cursor n columns to left, but not beyond column 0
This command will not move the cursor to a different row
- LJust(String, int).
Static method in class utils.OutFmt
- return str as a String, LEFT-justified in col total columns;
will not truncate Strings whose length is > col.
- main(String[]).
Static method in class utils.TxtGrph
-
- OutFmt().
Constructor for class utils.OutFmt
-
- position(int, int).
Static method in class utils.TxtGrph
- Position cursor at specified row and column
- prompt(String).
Static method in class utils.TxtGrph
- Write a message on the prompt line
- rand().
Static method in class utils.RandNums
- return random number n,
such that 0 <= n < Integer.MAX_VALUE.
- randIntRange(int, int).
Static method in class utils.RandNums
- return random number n, such that low <= n <= high,
even if low > high.
- RandNums().
Constructor for class utils.RandNums
-
- read().
Static method in class utils.SavitchIn
- Reads the first byte in the input stream and returns that
byte as an int.
- readChar().
Static method in class utils.Keyboard
- reads first char found in the input "stream",
including whitespace.
- readChar().
Static method in class utils.SavitchIn
- Reads the next input character and returns that character.
- readDouble().
Static method in class utils.Keyboard
- reads first double found in the input "stream",
discards the rest of the line; Ignores initial whitespace.
- readDouble().
Static method in class utils.SavitchIn
- Precondition: The next input consists of a double value,
possibly preceded by white space, but definitely
followed by white space.
- readFloat().
Static method in class utils.SavitchIn
- Precondition: The next input consists of a float value,
possibly preceded by white space, but definitely
followed by white space.
- readInt().
Static method in class utils.Keyboard
- reads first int found in the input "stream",
discards the rest of the line; Ignores initial whitespace.
- readInt().
Static method in class utils.SavitchIn
- Precondition: The next input in the stream consists of an
int value, possibly preceded by white space, but definitely
followed by white space.
- readLine().
Static method in class utils.SavitchIn
- Reads a line of text and returns that line as a String value.
- readLineBoolean().
Static method in class utils.SavitchIn
- Input should consists of a single word on a line, possibly
surrounded by white space.
- readLineDouble().
Static method in class utils.SavitchIn
- Precondition: The user has entered a number of type double
on a line by itself, except that there may be white space
before and/or after the number.
- readLineFloat().
Static method in class utils.SavitchIn
- Precondition: The user has entered a number of type float
on a line by itself, except that there may be white space
before and/or after the number.
- readLineInt().
Static method in class utils.SavitchIn
- Precondition: The user has entered a number of type int on
a line by itself, except that there may be white space before
and/or after the number.
- readLineLong().
Static method in class utils.SavitchIn
- Precondition: The user has entered a number of type long on
a line by itself, except that there may be white space
before and/or after the number.
- readLineNonwhiteChar().
Static method in class utils.SavitchIn
- Reads the first Nonwhite character on a line and returns
that character.
- readLineWord().
Static method in class utils.SavitchIn
- Reads the first string of nonwhite characters on a line and
returns that string.
- readLong().
Static method in class utils.SavitchIn
- Precondition: The next input consists of a long value,
possibly preceded by white space, but definitely
followed by white space.
- readNonwhiteChar().
Static method in class utils.SavitchIn
- Reads the next nonwhite input character and returns that
character.
- readString().
Static method in class utils.Keyboard
- reads the next line in the input "stream", returns it
as a java String.
- readWord().
Static method in class utils.SavitchIn
- Reads the first string of nonwhite characters and returns
that string.
- restoreCursor().
Static method in class utils.TxtGrph
- Restore most recently saved cursor position
- right(int).
Static method in class utils.TxtGrph
- Move cursor n columns to right;
This command will not move the cursor to a different row
- RJust(String, int).
Static method in class utils.OutFmt
- return str as a String, RIGHT-justified in col total columns;
will not truncate Strings whose length is > col.
- saveCursor().
Static method in class utils.TxtGrph
- Store cursor position, overwriting any
previously saved positions
- SavitchIn().
Constructor for class utils.SavitchIn
-
- setBold().
Static method in class utils.TxtGrph
- Put into bold type (extra bright)
- setDecimalPlaces(int).
Static method in class utils.OutFmt
- set the number of decimal places to be printed, w/ trailing 0's
in subsequent printing operations.
- setNormal().
Static method in class utils.TxtGrph
- Restore to normal video
The following function sets the local display
so that all characters displayed after this function was called,
would display using the default attributes, white-on-black,
non-blinking.
- setReverse().
Static method in class utils.TxtGrph
- Put into reverse video, dark characters on light background.
- setSeed(long).
Static method in class utils.RandNums
- "seed" the Random Number Generator (RNJ) with 'arg'.
- setUnderline().
Static method in class utils.TxtGrph
-
- sleep(double).
Static method in class utils.TxtGrph
- Pauses the machine for n seconds.
- TxtGrph().
Constructor for class utils.TxtGrph
-
- up(int).
Static method in class utils.TxtGrph
- Move cursor up n rows, but not above row 0
This procedure cannot scroll the screen
- vertLine(int).
Static method in class utils.TxtGrph
- Draw vertical line down, from current cursor position
cursor ends up below last segment of line