Package org.apache.uima.tools.stylemap
Class StyleMapEntry
- java.lang.Object
-
- org.apache.uima.tools.stylemap.StyleMapEntry
-
public class StyleMapEntry extends java.lang.Object
The Class StyleMapEntry.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
annotationTypeName
The name of the annotation type to which this style map entry applies.private java.awt.Color
background
Background color used to display this type of annotation.private java.lang.String
featureValue
Feature value.private java.awt.Color
foreground
Foreground color used to display this type of annotation.private boolean
isChecked
The is checked.private boolean
isHidden
The is hidden.private java.lang.String
label
Label 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.String
getAnnotationTypeName()
Gets the annotation type name.java.awt.Color
getBackground()
Gets the background.boolean
getChecked()
Gets the checked.java.lang.String
getFeatureValue()
Gets the feature value.java.awt.Color
getForeground()
Gets the foreground.boolean
getHidden()
Gets the hidden.java.lang.String
getLabel()
Gets the label.java.lang.String
getPattern()
This method returns a pattern representing either simply an annotation type or else an annotation type/feature value.void
setAnnotationTypeName(java.lang.String annotationTypeName)
Sets the annotation type name.void
setBackground(java.awt.Color background)
Sets the background.void
setChecked(java.lang.Boolean chk)
Sets the checked.void
setFeatureValue(java.lang.String featureValue)
Sets the feature value.void
setForeground(java.awt.Color foreground)
Sets the foreground.void
setHidden(java.lang.Boolean hid)
Sets the hidden.void
setLabel(java.lang.String label)
Sets the label.java.lang.String
toString()
-
-
-
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:
toString
in 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.
-
-