Package pal.misc
Class LabelMapping
java.lang.Object
pal.misc.LabelMapping
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(String id, String label) void
addMapping
(Identifier id, String label) void
addMappings
(String[] ids, String[] labels) getLabel
(Identifier id) getLabel
(Identifier id, String defaultLabel) getRelabeled
(LabelMapping.Relabeller relabeller) If a mapping occurs more than once will rename instance to "x 1", "x 2"...
-
Constructor Details
-
LabelMapping
public LabelMapping()
-
-
Method Details
-
addMapping
-
addMapping
-
addMappings
- Parameters:
names
- Namescolours
- associated colours
-
getLabel
-
getLabel
-
getLabel
-
getLabelIdentifier
-
getUniquifiedMappings
If a mapping occurs more than once will rename instance to "x 1", "x 2"... and so on where x is the mapping in question -
getRelabeled
-
getMapped
-