+ /**\r
+ * \r
+ * \r
+ * @param out\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ */\r
+ public void marshal(final java.io.Writer out)\r
+ throws org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException\r
+ {\r
+ Marshaller.marshal(this, out);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param handler\r
+ * @throws java.io.IOException\r
+ * if an IOException occurs during marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ */\r
+ public void marshal(final org.xml.sax.ContentHandler handler)\r
+ throws java.io.IOException,\r
+ org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException\r
+ {\r
+ Marshaller.marshal(this, handler);\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'autoScale'.\r
+ * \r
+ * @param autoScale\r
+ * the value of field 'autoScale'.\r
+ */\r
+ public void setAutoScale(final boolean autoScale)\r
+ {\r
+ this._autoScale = autoScale;\r
+ this._has_autoScale = true;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'colourByLabel'.\r
+ * \r
+ * @param colourByLabel\r
+ * the value of field 'colourByLabel'.\r
+ */\r
+ public void setColourByLabel(final boolean colourByLabel)\r
+ {\r
+ this._colourByLabel = colourByLabel;\r
+ this._has_colourByLabel = true;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'max'.\r
+ * \r
+ * @param max\r
+ * the value of field 'max'.\r
+ */\r
+ public void setMax(final float max)\r
+ {\r
+ this._max = max;\r
+ this._has_max = true;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'min'.\r
+ * \r
+ * @param min\r
+ * the value of field 'min'.\r
+ */\r
+ public void setMin(final float min)\r
+ {\r
+ this._min = min;\r
+ this._has_min = true;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'minRGB'.\r
+ * \r
+ * @param minRGB\r
+ * the value of field 'minRGB'.\r
+ */\r
+ public void setMinRGB(final java.lang.String minRGB)\r
+ {\r
+ this._minRGB = minRGB;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'name'.\r
+ * \r
+ * @param name\r
+ * the value of field 'name'.\r
+ */\r
+ public void setName(final java.lang.String name)\r
+ {\r
+ this._name = name;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'RGB'.\r
+ * \r
+ * @param RGB\r
+ * the value of field 'RGB'.\r
+ */\r
+ public void setRGB(final java.lang.String RGB)\r
+ {\r
+ this._RGB = RGB;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'threshType'. The field 'threshType' has the\r
+ * following description: loosely specified enumeration: NONE,ABOVE, or BELOW\r
+ * \r
+ * @param threshType\r
+ * the value of field 'threshType'.\r
+ */\r
+ public void setThreshType(final java.lang.String threshType)\r
+ {\r
+ this._threshType = threshType;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'threshold'.\r
+ * \r
+ * @param threshold\r
+ * the value of field 'threshold'.\r
+ */\r
+ public void setThreshold(final float threshold)\r
+ {\r
+ this._threshold = threshold;\r
+ this._has_threshold = true;\r
+ }\r
+\r
+ /**\r
+ * Method unmarshal.\r
+ * \r
+ * @param reader\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ * @return the unmarshaled jalview.schemabinding.version2.Colour\r
+ */\r
+ public static jalview.schemabinding.version2.Colour unmarshal(\r
+ final java.io.Reader reader)\r
+ throws org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException\r
+ {\r
+ return (jalview.schemabinding.version2.Colour) Unmarshaller.unmarshal(\r
+ jalview.schemabinding.version2.Colour.class, reader);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ */\r
+ public void validate() throws org.exolab.castor.xml.ValidationException\r
+ {\r
+ org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+ validator.validate(this);\r
+ }\r