<xs:attribute name="fontName" type="xs:string" />
<xs:attribute name="fontSize" type="xs:int" />
<xs:attribute name="fontStyle" type="xs:int" />
+ <xs:attribute name="scaleProteinAsCdna" type="xs:boolean" use="optional" default="true" />
<xs:attribute name="viewName" type="xs:string" />
<xs:attribute name="sequenceSetId" type="xs:string" />
<xs:attribute name="gatheredViews" type="xs:boolean" />
*/
package jalview.gui;
+import jalview.api.ViewStyleI;
import jalview.api.structures.JalviewStructureDisplayI;
import jalview.bin.Cache;
import jalview.datamodel.AlignedCodonFrame;
view.setFontName(av.font.getName());
view.setFontSize(av.font.getSize());
view.setFontStyle(av.font.getStyle());
+ view.setScaleProteinAsCdna(av.getViewStyle().isScaleProteinAsCdna());
view.setRenderGaps(av.isRenderGaps());
view.setShowAnnotation(av.isShowAnnotation());
view.setShowBoxes(av.getShowBoxes());
af.viewport.setFont(
new java.awt.Font(view.getFontName(), view.getFontStyle(), view
.getFontSize()), true);
+ ViewStyleI vs = af.viewport.getViewStyle();
+ vs.setScaleProteinAsCdna(view.isScaleProteinAsCdna());
+ af.viewport.setViewStyle(vs);
// TODO: allow custom charWidth/Heights to be restored by updating them
// after setting font - which means set above to false
af.viewport.setRenderGaps(view.getRenderGaps());
-#Fri Jun 26 14:22:47 BST 2015
+#Thu Sep 03 10:55:37 BST 2015
jalview.schemabinding.version2.ThresholdLine=jalview.schemabinding.version2.descriptors.ThresholdLineDescriptor
jalview.schemabinding.version2.SequenceSetProperties=jalview.schemabinding.version2.descriptors.SequenceSetPropertiesDescriptor
jalview.schemabinding.version2.StructureState=jalview.schemabinding.version2.descriptors.StructureStateDescriptor
private boolean _has_fontStyle;
/**
+ * Field _scaleProteinAsCdna.
+ */
+ private boolean _scaleProteinAsCdna = true;
+
+ /**
+ * keeps track of state for field: _scaleProteinAsCdna
+ */
+ private boolean _has_scaleProteinAsCdna;
+
+ /**
* Field _viewName.
*/
private java.lang.String _viewName;
/**
*/
+ public void deleteScaleProteinAsCdna(
+ ) {
+ this._has_scaleProteinAsCdna= false;
+ }
+
+ /**
+ */
public void deleteShowAnnotation(
) {
this._has_showAnnotation= false;
}
/**
+ * Returns the value of field 'scaleProteinAsCdna'.
+ *
+ * @return the value of field 'ScaleProteinAsCdna'.
+ */
+ public boolean getScaleProteinAsCdna(
+ ) {
+ return this._scaleProteinAsCdna;
+ }
+
+ /**
* Returns the value of field 'sequenceSetId'.
*
* @return the value of field 'SequenceSetId'.
}
/**
+ * Method hasScaleProteinAsCdna.
+ *
+ * @return true if at least one ScaleProteinAsCdna has been adde
+ */
+ public boolean hasScaleProteinAsCdna(
+ ) {
+ return this._has_scaleProteinAsCdna;
+ }
+
+ /**
* Method hasShowAnnotation.
*
* @return true if at least one ShowAnnotation has been added
}
/**
+ * Returns the value of field 'scaleProteinAsCdna'.
+ *
+ * @return the value of field 'ScaleProteinAsCdna'.
+ */
+ public boolean isScaleProteinAsCdna(
+ ) {
+ return this._scaleProteinAsCdna;
+ }
+
+ /**
* Returns the value of field 'showAnnotation'.
*
* @return the value of field 'ShowAnnotation'.
}
/**
+ * Sets the value of field 'scaleProteinAsCdna'.
+ *
+ * @param scaleProteinAsCdna the value of field
+ * 'scaleProteinAsCdna'.
+ */
+ public void setScaleProteinAsCdna(
+ final boolean scaleProteinAsCdna) {
+ this._scaleProteinAsCdna = scaleProteinAsCdna;
+ this._has_scaleProteinAsCdna = true;
+ }
+
+ /**
* Sets the value of field 'sequenceSetId'.
*
* @param sequenceSetId the value of field 'sequenceSetId'.
typeValidator.setMaxInclusive(2147483647);
}
desc.setValidator(fieldValidator);
+ //-- _scaleProteinAsCdna
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_scaleProteinAsCdna", "scaleProteinAsCdna", org.exolab.castor.xml.NodeType.Attribute);
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
+ public java.lang.Object getValue( java.lang.Object object )
+ throws IllegalStateException
+ {
+ Viewport target = (Viewport) object;
+ if (!target.hasScaleProteinAsCdna()) { return null; }
+ return (target.getScaleProteinAsCdna() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
+ }
+ public void setValue( java.lang.Object object, java.lang.Object value)
+ throws IllegalStateException, IllegalArgumentException
+ {
+ try {
+ Viewport target = (Viewport) object;
+ // if null, use delete method for optional primitives
+ if (value == null) {
+ target.deleteScaleProteinAsCdna();
+ return;
+ }
+ target.setScaleProteinAsCdna( ((java.lang.Boolean) value).booleanValue());
+ } catch (java.lang.Exception ex) {
+ throw new IllegalStateException(ex.toString());
+ }
+ }
+ public java.lang.Object newInstance(java.lang.Object parent) {
+ return null;
+ }
+ };
+ desc.setHandler(handler);
+ desc.setMultivalued(false);
+ addFieldDescriptor(desc);
+
+ //-- validation code for: _scaleProteinAsCdna
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
+ { //-- local scope
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
+ fieldValidator.setValidator(typeValidator);
+ }
+ desc.setValidator(fieldValidator);
//-- _viewName
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_viewName", "viewName", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);