public class CodeTable extends UC4Object
Constructor and Description |
---|
CodeTable() |
Modifier and Type | Method and Description |
---|---|
char |
getAlternativeCharacter()
Returns the alternative character of this code table.
|
char |
getCharacter(int row,
int column)
Gets the character at the given position in the code table.
|
boolean |
hasAlternativeCharacter()
Whether or not the code table has an alternative character.
|
Header |
header()
Returns the header data of this object.
|
boolean |
isAlternativeCharacter(int row,
int column)
Whether or not the character at the given position is marked as alternative character.
|
boolean |
isExecutable()
Returns
true if this Object can be executed. |
boolean |
isTextCharacter(int row,
int column)
Whether or not the character at the given position is marked as text character.
|
void |
setAttributes(int row,
int column,
boolean textCharacter,
boolean alternativeCharacter)
Sets an attribute for a character at the given position in the code table.
|
void |
setCharacter(int row,
int column,
char value)
Sets a character (value) for the given position in the code table.
|
public Header header()
public void setCharacter(int row, int column, char value)
row
- Row must be in range [0,15].column
- Column must be in range [0,15].value
- The character.public char getCharacter(int row, int column)
row
- Row must be in range [0,15].column
- Column must be in range [0,15].public void setAttributes(int row, int column, boolean textCharacter, boolean alternativeCharacter)
row
- Row must be in range [0,15].column
- Column must be in range [0,15].textCharacter
- Activate the option text character if this character should be considered for the conversion.alternativeCharacter
- The alternative character is used if the requested character is not found. Only one character can be defined as alternative character.public boolean isTextCharacter(int row, int column)
row
- Row must be in range [0,15].column
- Column must be in range [0,15].public boolean isAlternativeCharacter(int row, int column)
row
- Row must be in range [0,15].column
- Column must be in range [0,15].public boolean hasAlternativeCharacter()
public char getAlternativeCharacter()
hasAlternativeCharacter
first to check whether the code table has an alternative character.
If there is no such alternative character this method will return Unicode 0.public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object