Class DefaultColors
java.lang.Object
org.apache.uima.caseditor.core.model.DefaultColors
Utility to assign default colors to the annotation types in the TypeSystem.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<AnnotationStyle> assignColors(TypeSystem ts, Collection<AnnotationStyle> styles) Assigns color to the annotation types in the providedTypeSystem.
-
Field Details
-
COLORS
The Constant COLORS.
-
-
Constructor Details
-
DefaultColors
public DefaultColors()
-
-
Method Details
-
assignColors
public static Collection<AnnotationStyle> assignColors(TypeSystem ts, Collection<AnnotationStyle> styles) Assigns color to the annotation types in the providedTypeSystem. If a user provides an already existing mapping these will not be changed and taken into account when mapping the not assigned types.- Parameters:
ts- theTypeSystemstyles- already existing styles which map an annotation to a color- Returns:
- the collection
-