Package org.apache.uima.tools.stylemap
Class StyleMapEntry
java.lang.Object
org.apache.uima.tools.stylemap.StyleMapEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The name of the annotation type to which this style map entry applies.private Color
Background color used to display this type of annotation.private String
Feature value.private Color
Foreground color used to display this type of annotation.private boolean
private boolean
private String
Label that identifies the type of annotation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getLabel()
This method returns a pattern representing either simply an annotation type or else an annotation type/feature value.void
setAnnotationTypeName
(String annotationTypeName) void
setBackground
(Color background) void
setChecked
(Boolean chk) void
setFeatureValue
(String featureValue) void
setForeground
(Color foreground) void
void
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 isChecked -
isHidden
private boolean isHidden
-
-
Constructor Details
-
StyleMapEntry
public StyleMapEntry()
-
-
Method Details
-
toString
-
getHidden
public boolean getHidden() -
setHidden
-
getChecked
public boolean getChecked() -
setChecked
-
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'] -
getBackground
- Returns:
- Returns the background.
-
setBackground
- Parameters:
background
- The background to set.
-
getFeatureValue
- Returns:
- Returns the featureValue.
-
setFeatureValue
- Parameters:
featureValue
- The featureValue to set.
-
getForeground
- Returns:
- Returns the foreground.
-
setForeground
- Parameters:
foreground
- The foreground to set.
-
getLabel
- Returns:
- Returns the label.
-
setLabel
- Parameters:
label
- The label to set.
-
getAnnotationTypeName
- Returns:
- Returns the annotationTypeName.
-
setAnnotationTypeName
- Parameters:
annotationTypeName
- The annotationTypeName to set.
-