Package org.apache.uima.tools.stylemap
Class StyleMapEntry
java.lang.Object
org.apache.uima.tools.stylemap.StyleMapEntry
The Class StyleMapEntry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe name of the annotation type to which this style map entry applies.private ColorBackground color used to display this type of annotation.private StringFeature value.private ColorForeground color used to display this type of annotation.private booleanThe is checked.private booleanThe is hidden.private StringLabel that identifies the type of annotation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the annotation type name.Gets the background.booleanGets the checked.Gets the feature value.Gets the foreground.booleanGets the hidden.getLabel()Gets the label.This method returns a pattern representing either simply an annotation type or else an annotation type/feature value.voidsetAnnotationTypeName(String annotationTypeName) Sets the annotation type name.voidsetBackground(Color background) Sets the background.voidsetChecked(Boolean chk) Sets the checked.voidsetFeatureValue(String featureValue) Sets the feature value.voidsetForeground(Color foreground) Sets the foreground.voidSets the hidden.voidSets the label.toString()
-
Field Details
-
annotationTypeName
The name of the annotation type to which this style map entry applies. -
label
Label that identifies the type of annotation. This will appear in the legend in the annotation viewer. -
featureValue
Feature value. Features with this value will adopt corresponding style. -
foreground
Foreground color used to display this type of annotation. -
background
Background color used to display this type of annotation. -
isChecked
private boolean isCheckedThe is checked. -
isHidden
private boolean isHiddenThe is hidden.
-
-
Constructor Details
-
StyleMapEntry
public StyleMapEntry()
-
-
Method Details
-
toString
-
getHidden
public boolean getHidden()Gets the hidden.- Returns:
- the hidden
-
setHidden
Sets the hidden.- Parameters:
hid- the new hidden
-
getChecked
public boolean getChecked()Gets the checked.- Returns:
- the checked
-
setChecked
Sets the checked.- Parameters:
chk- the new checked
-
getPattern
This method returns a pattern representing either simply an annotation type or else an annotation type/feature value. In the case of the latter: e.g. SYNTAX_ANNOT_TYPE[@SYNTAXLABEL_STRING='NP']- Returns:
- the pattern
-
getBackground
Gets the background.- Returns:
- Returns the background.
-
setBackground
Sets the background.- Parameters:
background- The background to set.
-
getFeatureValue
Gets the feature value.- Returns:
- Returns the featureValue.
-
setFeatureValue
Sets the feature value.- Parameters:
featureValue- The featureValue to set.
-
getForeground
Gets the foreground.- Returns:
- Returns the foreground.
-
setForeground
Sets the foreground.- Parameters:
foreground- The foreground to set.
-
getLabel
Gets the label.- Returns:
- Returns the label.
-
setLabel
Sets the label.- Parameters:
label- The label to set.
-
getAnnotationTypeName
Gets the annotation type name.- Returns:
- Returns the annotationTypeName.
-
setAnnotationTypeName
Sets the annotation type name.- Parameters:
annotationTypeName- The annotationTypeName to set.
-