JAL-2110 random stuff
[jalview.git] / schemas / JalviewUserColours.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
4   Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
5   
6   This file is part of Jalview.
7   
8   Jalview is free software: you can redistribute it and/or
9   modify it under the terms of the GNU General Public License 
10   as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11    
12   Jalview is distributed in the hope that it will be useful, but 
13   WITHOUT ANY WARRANTY; without even the implied warranty 
14   of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15   PURPOSE.  See the GNU General Public License for more details.
16   
17   You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by lj (jl) -->
20 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="www.jalview.org/colours">
21         <xs:complexType name="JalviewUserColours">
22                 <xs:sequence>
23                         <xs:element name="Version" maxOccurs="1" minOccurs="0" type="xs:string">
24                                 <xs:annotation>
25                                 <xs:documentation>
26                                 Jalview colour scheme document version.
27                                 </xs:documentation>
28                                 </xs:annotation>
29                         </xs:element>
30                         <xs:element name="colour" maxOccurs="unbounded" minOccurs="0">
31                                 <xs:complexType>
32                                         <xs:attribute name="Name" type="xs:string"/>
33                                         <xs:attribute name="RGB" type="xs:string" use="required"/>
34                                         <xs:attribute name="minRGB" type="xs:string" use="optional"/>
35                                         <xs:attribute name="threshType" type="xs:string" use="optional">
36                                         <xs:annotation>
37                                         <xs:documentation>loosely specified enumeration: NONE,ABOVE, or BELOW</xs:documentation>
38                                         </xs:annotation>
39                                         </xs:attribute>
40                                         <xs:attribute name="threshold" type="xs:float" use="optional"/>
41                                         <xs:attribute name="max" type="xs:float" use="optional"/>
42                                         <xs:attribute name="min" type="xs:float" use="optional"/>
43                                         <xs:attribute name="colourByLabel" type="xs:boolean" use="optional"/>
44                                         <xs:attribute name="autoScale" type="xs:boolean" use="optional"/>
45                                 </xs:complexType>
46                         </xs:element>
47                 </xs:sequence>
48                 <xs:attribute name="schemeName" type="xs:string" use="optional"/>
49         </xs:complexType>
50 </xs:schema>