public class ControlSequence
extends java.lang.Object
ControlCommand
objects.Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_OPENING_CHAR |
Constructor and Description |
---|
ControlSequence()
Creates
ControlSequence object with default opening char
('\033'). |
ControlSequence(char openingCh)
Creates
ControlSequence object giving opening char. |
Modifier and Type | Method and Description |
---|---|
static boolean |
addType(char keyValue,
SequenceType type)
Adds map of second sequence character to
SequenceType object. |
void |
append(char ch)
Adds char to current sequence.
|
java.lang.String |
getCanonicalForm()
Returns "canonical" form of control sequence (i.e.
|
char |
getOpeningChar()
Returns sequence opening char.
|
int[] |
getParameters()
Extracts and returns sequence parameters as array of
int . |
boolean |
inProgress()
Checks if sequence is in progress.
|
boolean |
isComplete()
Checks if sequence is complete.
|
boolean |
isOpeningChar(char ch)
Checks if giving char is opening char for current sequence.
|
static boolean |
removeType(char keyValue)
Removes map.
|
void |
reset()
Resets current sequence.
|
void |
startNew()
Resets sequence and starts a new one.
|
java.lang.String |
toString() |
public static final char DEFAULT_OPENING_CHAR
public ControlSequence(char openingCh)
ControlSequence
object giving opening char.openingCh
- sequence opening char.public ControlSequence()
ControlSequence
object with default opening char
('\033').public static boolean addType(char keyValue, SequenceType type)
SequenceType
object.keyValue
- second character in sequence.type
- SequenceType
object.public static boolean removeType(char keyValue)
keyValue
- second character in sequence.public java.lang.String getCanonicalForm()
public java.lang.String toString()
toString
in class java.lang.Object
public char getOpeningChar()
public boolean isComplete()
public boolean inProgress()
public boolean isOpeningChar(char ch)
ch
- char to check.public int[] getParameters()
int
.int
.public void append(char ch)
ch
- character to add.public void reset()
public void startNew()
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved