yujota / elm-asap-pathology-format / AsapPathology.AnnotationGroup

This module provides getters and setters for Annotation.

Constructor

annotationGroup : { name : String, partOfGroup : String, color : Color } -> AnnotationGroup

Create annotation group. Corresponding to <ASAP_Annotation><AnnotationGroups><AnnotationGroup>.

Getters & Setters

name : AnnotationGroup -> String

Getter for name of Annotation. Corresponding to attribute Name of <ASAP_Annotation><AnnotationGroups><AnnotationGroup>

setName : String -> AnnotationGroup -> AnnotationGroup

Setter for name of AnnotationGroup.

partOfGroup : AnnotationGroup -> String

Getter for 'part of group' of Annotation. Corresponding to attribute PartOfGroup of <ASAP_Annotation><AnnotationGroups><AnnotationGroup> In most cases, this value would be "None".

setPartOfGroup : String -> AnnotationGroup -> AnnotationGroup

Setter for 'part of group' of AnnotationGroup.

color : AnnotationGroup -> Color

Getter for color of AnnotationGroup. Corresponding to attribute Color of <ASAP_Annotation><AnnotationGroups><AnnotationGroup>

The type of return value is defined at avh4/elm-color

setColor : Color -> AnnotationGroup -> AnnotationGroup

Setter for color of AnnotationGroup.