public class LabelDictionary extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_DUMMY_LABEL |
| Constructor and Description |
|---|
LabelDictionary()
Creates a new blank dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNewLabelsAllowed() |
String |
read(int labelID)
Returns the label with a given ID in the dictionary.
|
void |
setNewLabelsAllowed(boolean newLabelsAllowed) |
int |
store(String label)
Adds a new label to the dictionary if it has not been added yet.
|
public static final int KEY_DUMMY_LABEL
public int store(String label)
label - add this label to the dictionary if it does not exist yetpublic String read(int labelID)
labelID - public boolean isNewLabelsAllowed()
public void setNewLabelsAllowed(boolean newLabelsAllowed)
newLabelsAllowed - the newLabelsAllowed to setCopyright © 2007–2019. All rights reserved.