Package org.apache.uima.tools.stylemap
Class StyleMapEntry
- java.lang.Object
-
- org.apache.uima.tools.stylemap.StyleMapEntry
-
public class StyleMapEntry extends java.lang.ObjectThe Class StyleMapEntry.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringannotationTypeNameThe name of the annotation type to which this style map entry applies.private java.awt.ColorbackgroundBackground color used to display this type of annotation.private java.lang.StringfeatureValueFeature value.private java.awt.ColorforegroundForeground color used to display this type of annotation.private booleanisCheckedThe is checked.private booleanisHiddenThe is hidden.private java.lang.StringlabelLabel that identifies the type of annotation.
-
Constructor Summary
Constructors Constructor Description StyleMapEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAnnotationTypeName()Gets the annotation type name.java.awt.ColorgetBackground()Gets the background.booleangetChecked()Gets the checked.java.lang.StringgetFeatureValue()Gets the feature value.java.awt.ColorgetForeground()Gets the foreground.booleangetHidden()Gets the hidden.java.lang.StringgetLabel()Gets the label.java.lang.StringgetPattern()This method returns a pattern representing either simply an annotation type or else an annotation type/feature value.voidsetAnnotationTypeName(java.lang.String annotationTypeName)Sets the annotation type name.voidsetBackground(java.awt.Color background)Sets the background.voidsetChecked(java.lang.Boolean chk)Sets the checked.voidsetFeatureValue(java.lang.String featureValue)Sets the feature value.voidsetForeground(java.awt.Color foreground)Sets the foreground.voidsetHidden(java.lang.Boolean hid)Sets the hidden.voidsetLabel(java.lang.String label)Sets the label.java.lang.StringtoString()
-
-
-
Field Detail
-
annotationTypeName
private java.lang.String annotationTypeName
The name of the annotation type to which this style map entry applies.
-
label
private java.lang.String label
Label that identifies the type of annotation. This will appear in the legend in the annotation viewer.
-
featureValue
private java.lang.String featureValue
Feature value. Features with this value will adopt corresponding style.
-
foreground
private java.awt.Color foreground
Foreground color used to display this type of annotation.
-
background
private java.awt.Color background
Background color used to display this type of annotation.
-
isChecked
private boolean isChecked
The is checked.
-
isHidden
private boolean isHidden
The is hidden.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getHidden
public boolean getHidden()
Gets the hidden.- Returns:
- the hidden
-
setHidden
public void setHidden(java.lang.Boolean hid)
Sets the hidden.- Parameters:
hid- the new hidden
-
getChecked
public boolean getChecked()
Gets the checked.- Returns:
- the checked
-
setChecked
public void setChecked(java.lang.Boolean chk)
Sets the checked.- Parameters:
chk- the new checked
-
getPattern
public java.lang.String 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
public java.awt.Color getBackground()
Gets the background.- Returns:
- Returns the background.
-
setBackground
public void setBackground(java.awt.Color background)
Sets the background.- Parameters:
background- The background to set.
-
getFeatureValue
public java.lang.String getFeatureValue()
Gets the feature value.- Returns:
- Returns the featureValue.
-
setFeatureValue
public void setFeatureValue(java.lang.String featureValue)
Sets the feature value.- Parameters:
featureValue- The featureValue to set.
-
getForeground
public java.awt.Color getForeground()
Gets the foreground.- Returns:
- Returns the foreground.
-
setForeground
public void setForeground(java.awt.Color foreground)
Sets the foreground.- Parameters:
foreground- The foreground to set.
-
getLabel
public java.lang.String getLabel()
Gets the label.- Returns:
- Returns the label.
-
setLabel
public void setLabel(java.lang.String label)
Sets the label.- Parameters:
label- The label to set.
-
getAnnotationTypeName
public java.lang.String getAnnotationTypeName()
Gets the annotation type name.- Returns:
- Returns the annotationTypeName.
-
setAnnotationTypeName
public void setAnnotationTypeName(java.lang.String annotationTypeName)
Sets the annotation type name.- Parameters:
annotationTypeName- The annotationTypeName to set.
-
-