/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
private boolean scaleProteinAsCdna = true;
+ /*
+ * if true, font changes to protein or cDNA are applied to both
+ * sides of a split screen
+ */
+ private boolean proteinFontAsCdna = true;
+
/**
* Copy constructor
*
setScaleAboveWrapped(vs.getScaleAboveWrapped());
setScaleLeftWrapped(vs.getScaleLeftWrapped());
setScaleProteinAsCdna(vs.isScaleProteinAsCdna());
+ setProteinFontAsCdna(vs.isProteinFontAsCdna());
setScaleRightWrapped(vs.getScaleRightWrapped());
setSeqNameItalics(vs.isSeqNameItalics());
setShowAnnotation(vs.isShowAnnotation());
&& getScaleAboveWrapped() == vs.getScaleAboveWrapped()
&& getScaleLeftWrapped() == vs.getScaleLeftWrapped()
&& isScaleProteinAsCdna() == vs.isScaleProteinAsCdna()
+ && isProteinFontAsCdna() == vs.isProteinFontAsCdna()
&& getScaleRightWrapped() == vs.getScaleRightWrapped()
&& isSeqNameItalics() == vs.isSeqNameItalics()
&& isShowAnnotation() == vs.isShowAnnotation()
&& getThreshold() == vs.getThreshold()
&& getThresholdTextColour() == vs.getThresholdTextColour()
&& isUpperCasebold() == vs.isUpperCasebold()
- && getWrapAlignment() == vs.getWrapAlignment() && getWrappedWidth() == vs
- .getWrappedWidth());
+ && getWrapAlignment() == vs.getWrapAlignment()
+ && getWrappedWidth() == vs.getWrappedWidth());
/*
* and compare non-primitive types; syntax below will match null with null
* values
*/
- match = match
- && String.valueOf(getFontName()).equals(
- String.valueOf(vs.getFontName()));
- match = match
- && String.valueOf(getTextColour()).equals(
- String.valueOf(vs.getTextColour()));
- match = match
- && String.valueOf(getTextColour2()).equals(
- String.valueOf(vs.getTextColour2()));
+ match = match && String.valueOf(getFontName())
+ .equals(String.valueOf(vs.getFontName()));
+ match = match && String.valueOf(getTextColour())
+ .equals(String.valueOf(vs.getTextColour()));
+ match = match && String.valueOf(getTextColour2())
+ .equals(String.valueOf(vs.getTextColour2()));
return match;
// return equivalent(this, (ViewStyle) other);
}
{
this.scaleProteinAsCdna = b;
}
+
+ @Override
+ public boolean isProteinFontAsCdna()
+ {
+ return proteinFontAsCdna;
+ }
+
+ @Override
+ public void setProteinFontAsCdna(boolean b)
+ {
+ proteinFontAsCdna = b;
+ }
}