Package org.apache.uima.tools.stylemap
Class ColorParser
- java.lang.Object
-
- org.apache.uima.tools.stylemap.ColorParser
-
public class ColorParser extends java.lang.ObjectThe Class ColorParser.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMapcolorNameMapThe 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.HashMapgetColorNameMap()Gets the color name map.private voidinitializeColorNameMap()Initialize color name map.StyleMapEntryparseAndAssignColors(java.lang.String typeName, java.lang.String featureValue, java.lang.String labelString, java.lang.String styleColor)Parses the and assign colors.private voidparseChecked(java.util.StringTokenizer token, StyleMapEntry sme)Parses the checked.private voidparseHidden(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
-
-