Package org.apache.uima.tools.stylemap
Class ColorParser
- java.lang.Object
-
- org.apache.uima.tools.stylemap.ColorParser
-
public class ColorParser extends java.lang.Object
The Class ColorParser.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap
colorNameMap
The color name map.
-
Constructor Summary
Constructors Constructor Description ColorParser()
Instantiates a new color parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.HashMap
getColorNameMap()
Gets the color name map.private void
initializeColorNameMap()
Initialize color name map.StyleMapEntry
parseAndAssignColors(java.lang.String typeName, java.lang.String featureValue, java.lang.String labelString, java.lang.String styleColor)
Parses the and assign colors.private void
parseChecked(java.util.StringTokenizer token, StyleMapEntry sme)
Parses the checked.private void
parseHidden(java.util.StringTokenizer token, StyleMapEntry sme)
Parses the hidden.
-
-
-
Method Detail
-
initializeColorNameMap
private void initializeColorNameMap()
Initialize color name map.
-
getColorNameMap
public java.util.HashMap getColorNameMap()
Gets the color name map.- Returns:
- the color name map
-
parseAndAssignColors
public StyleMapEntry parseAndAssignColors(java.lang.String typeName, java.lang.String featureValue, java.lang.String labelString, java.lang.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
private void parseChecked(java.util.StringTokenizer token, StyleMapEntry sme)
Parses the checked.- Parameters:
token
- the tokensme
- the sme
-
parseHidden
private void parseHidden(java.util.StringTokenizer token, StyleMapEntry sme)
Parses the hidden.- Parameters:
token
- the tokensme
- the sme
-
-