.get("secondaryStructure").toString().charAt(0);
String displayChar = annot.get("displayCharacter") == null ? ""
: annot.get("displayCharacter").toString();
- Color color = annot.get("colour") == null ? Color.white
- : UserColourScheme.getColourFromString(annot.get(
- "colour").toString());
- annotations[count] = new Annotation(displayChar, desc, ss, val,
- color);
+
+ annotations[count] = new Annotation(displayChar, desc, ss, val);
+ if (annot.get("colour") != null)
+ {
+ Color color = UserColourScheme.getColourFromString(annot.get(
+ "colour").toString());
+ annotations[count].colour = color;
+ }
}
++count;
}
@Attributes(
required = false,
- description = "Label for the Alignment Annotation")
+ description = "Label for the alignment annotation")
private String label;
@Attributes(
required = false,
- description = "Description for the Alignment Annotation")
+ description = "Description for the alignment annotation")
private String description;
@Attributes(required = false)
@Attributes(
required = false,
enums = { "0", "1", "2" },
- description = "Determines the rendered for the annotation<br><ul><li>0 - No graph</li><li>1 - Bar Graph</li><li>2 - Line graph</li></ul>")
+ description = "Determines the rendering for the annotation<br><ul><li>0 - No graph</li><li>1 - Bar Graph</li><li>2 - Line graph</li></ul>")
private int graphType;
@Attributes(
@Attributes(required = false, description = "Score of the annotation")
private double score;
- @Attributes(required = false, description = "Annotation generation source")
+ @Attributes(
+ required = false,
+ description = "The annotation generation source")
private String calcId;
public String getLabel()
package jalview.json.binding.biojson.v1;
+import com.github.reinert.jjschema.Attributes;
+
public class AnnotationDisplaySettingPojo
{
+
+ @Attributes(
+ required = false,
+ description = "Indicates if column label is scaled to fit within the <br>alignment column")
private boolean scaleColLabel;
+ @Attributes(
+ required = false,
+ description = "Indicates if every column label is displayed.")
private boolean showAllColLabels;
+ @Attributes(
+ required = false,
+ description = "Indicates if column labels is centred relative to the <br>alignment column")
private boolean centreColLabels;
+ @Attributes(
+ required = false,
+ description = "Indicates if the Annotation is shown below the alignment")
private boolean belowAlignment;
+ @Attributes(
+ required = false,
+ description = "Indicates if the annotation row is visible")
private boolean visible;
+ @Attributes(
+ required = false,
+ description = "Indicates if annotation has a graphical symbol track")
private boolean hasIcon;
public boolean isScaleColLabel()
@Attributes(required = false, description = "Value of the annotation")
private float value;
- @Attributes(required = false, description = "Colour for position")
+ @Attributes(
+ required = false,
+ description = "Colour of the annotation position in hex string.")
private String colour;
public String getDisplayCharacter()