Package org.apache.uima.tools.stylemap
Class ColorParser
java.lang.Object
org.apache.uima.tools.stylemap.ColorParser
The Class ColorParser.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the color name map.private void
Initialize color name map.parseAndAssignColors
(String typeName, String featureValue, String labelString, String styleColor) Parses the and assign colors.private void
parseChecked
(StringTokenizer token, StyleMapEntry sme) Parses the checked.private void
parseHidden
(StringTokenizer token, StyleMapEntry sme) Parses the hidden.
-
Field Details
-
colorNameMap
The color name map.
-
-
Constructor Details
-
ColorParser
public ColorParser()Instantiates a new color parser.
-
-
Method Details
-
initializeColorNameMap
private void initializeColorNameMap()Initialize color name map. -
getColorNameMap
Gets the color name map.- Returns:
- the color name map
-
parseAndAssignColors
public StyleMapEntry parseAndAssignColors(String typeName, String featureValue, String labelString, String styleColor) Parses the and assign colors.- Parameters:
typeName
- the type namefeatureValue
- the feature valuelabelString
- the label stringstyleColor
- the style color- Returns:
- the style map entry
-
parseChecked
Parses the checked.- Parameters:
token
- the tokensme
- the sme
-
parseHidden
Parses the hidden.- Parameters:
token
- the tokensme
- the sme
-