JAL-4375 Add an AnnotationColouringI interface, and generic AnnotationColouringRanges...
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 20 Feb 2024 15:34:43 +0000 (15:34 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 20 Feb 2024 15:34:43 +0000 (15:34 +0000)
commitefd301320c3bd89d126980f661e4a7dbfca8bbfe
treeeb70d60936d2f427a7ea63feb531a42de90bc6d3
parentbfc58576f8b1bc505fbd27e5b573f26acd0f75b8
JAL-4375 Add an AnnotationColouringI interface, and generic AnnotationColouringRanges to calculate changing colours between two values and specific AnnotationColouringPLDDT.  Linegraph annotations can use this to drawSegmentedLine -- a line drawn multiple times clipped to different ranges in different colours.  Calculations are cached.
src/jalview/datamodel/Annotation.java
src/jalview/datamodel/annotations/AlphaFoldAnnotationRowBuilder.java
src/jalview/datamodel/annotations/AnnotationColouring.java [new file with mode: 0644]
src/jalview/datamodel/annotations/AnnotationColouringI.java [new file with mode: 0644]
src/jalview/datamodel/annotations/AnnotationColouringPLDDT.java [new file with mode: 0644]
src/jalview/datamodel/annotations/AnnotationColouringRanges.java [new file with mode: 0644]
src/jalview/datamodel/annotations/AnnotationRowBuilder.java
src/jalview/renderer/AnnotationRenderer.java