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