Class StyleMapEntry

java.lang.Object
org.apache.uima.tools.stylemap.StyleMapEntry

public class StyleMapEntry extends Object
  • Field Details

    • annotationTypeName

      private String annotationTypeName
      The name of the annotation type to which this style map entry applies.
    • label

      private String label
      Label that identifies the type of annotation. This will appear in the legend in the annotation viewer.
    • featureValue

      private String featureValue
      Feature value. Features with this value will adopt corresponding style.
    • foreground

      private Color foreground
      Foreground color used to display this type of annotation.
    • background

      private Color 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

      public String toString()
      Overrides:
      toString in class Object
    • getHidden

      public boolean getHidden()
    • setHidden

      public void setHidden(Boolean hid)
    • getChecked

      public boolean getChecked()
    • setChecked

      public void setChecked(Boolean chk)
    • getPattern

      public 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']
    • getBackground

      public Color getBackground()
      Returns:
      Returns the background.
    • setBackground

      public void setBackground(Color background)
      Parameters:
      background - The background to set.
    • getFeatureValue

      public String getFeatureValue()
      Returns:
      Returns the featureValue.
    • setFeatureValue

      public void setFeatureValue(String featureValue)
      Parameters:
      featureValue - The featureValue to set.
    • getForeground

      public Color getForeground()
      Returns:
      Returns the foreground.
    • setForeground

      public void setForeground(Color foreground)
      Parameters:
      foreground - The foreground to set.
    • getLabel

      public String getLabel()
      Returns:
      Returns the label.
    • setLabel

      public void setLabel(String label)
      Parameters:
      label - The label to set.
    • getAnnotationTypeName

      public String getAnnotationTypeName()
      Returns:
      Returns the annotationTypeName.
    • setAnnotationTypeName

      public void setAnnotationTypeName(String annotationTypeName)
      Parameters:
      annotationTypeName - The annotationTypeName to set.