Class DefaultColors

java.lang.Object
org.apache.uima.caseditor.core.model.DefaultColors

public class DefaultColors extends Object
Utility to assign default colors to the annotation types in the TypeSystem.
  • Field Details

    • COLORS

      public static final Color[] 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 provided TypeSystem. 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 - the TypeSystem
      styles - already existing styles which map an annotation to a color
      Returns:
      the collection