2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
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.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 import java.awt.Color;
25 public interface ViewStyleI
28 void setColourAppliesToAllGroups(boolean b);
30 boolean getColourAppliesToAllGroups();
32 boolean getAbovePIDThreshold();
34 void setIncrement(int inc);
38 boolean getConservationSelected();
40 void setConservationSelected(boolean b);
42 void setShowHiddenMarkers(boolean show);
44 boolean getShowHiddenMarkers();
46 void setScaleRightWrapped(boolean b);
48 void setScaleLeftWrapped(boolean b);
50 void setScaleAboveWrapped(boolean b);
52 boolean getScaleLeftWrapped();
54 boolean getScaleAboveWrapped();
56 boolean getScaleRightWrapped();
58 void setAbovePIDThreshold(boolean b);
60 void setThreshold(int thresh);
64 boolean getShowJVSuffix();
66 void setShowJVSuffix(boolean b);
68 void setWrapAlignment(boolean state);
70 void setShowText(boolean state);
72 void setRenderGaps(boolean state);
74 boolean getColourText();
76 void setColourText(boolean state);
78 void setShowBoxes(boolean state);
80 boolean getWrapAlignment();
82 boolean getShowText();
84 int getWrappedWidth();
86 void setWrappedWidth(int w);
90 void setCharHeight(int h);
94 void setCharWidth(int w);
96 boolean getShowBoxes();
98 boolean getShowUnconserved();
100 void setShowUnconserved(boolean showunconserved);
103 * @return true if a reference sequence is set and should be displayed
105 boolean isDisplayReferenceSeq();
108 * @return set the flag for displaying reference sequences when they are
111 void setDisplayReferenceSeq(boolean displayReferenceSeq);
114 * @return true if colourschemes should render according to reference sequence
115 * rather than consensus if available
117 boolean isColourByReferenceSeq();
119 void setSeqNameItalics(boolean default1);
121 void setShowSequenceFeatures(boolean b);
123 boolean isShowSequenceFeatures();
125 boolean isRightAlignIds();
127 void setRightAlignIds(boolean rightAlignIds);
130 * Returns true if annotation panel should be shown below alignment
134 boolean isShowAnnotation();
137 * Set flag for whether annotation panel should be shown below alignment
141 void setShowAnnotation(boolean b);
143 void setShowSequenceFeaturesHeight(boolean selected);
146 * @return true set flag for deciding if colourschemes should render according
147 * to reference sequence rather than consensus if available
149 void setColourByReferenceSeq(boolean colourByReferenceSeq);
151 Color getTextColour();
153 Color getTextColour2();
155 int getThresholdTextColour();
157 boolean isConservationColourSelected();
159 boolean isRenderGaps();
161 boolean isShowColourText();
163 boolean isShowSequenceFeaturesHeight();
165 void setConservationColourSelected(boolean conservationColourSelected);
167 void setShowColourText(boolean showColourText);
169 void setTextColour(Color textColour);
171 void setThresholdTextColour(int thresholdTextColour);
173 void setTextColour2(Color textColour2);
175 boolean isSeqNameItalics();
177 void setUpperCasebold(boolean upperCasebold);
179 boolean isUpperCasebold();
181 boolean sameStyle(ViewStyleI them);
183 void setFontName(String name);
185 void setFontStyle(int style);
187 void setFontSize(int size);
191 String getFontName();
196 * @return width of Sequence and Annotation ID margin. If less than zero, then
197 * width will be autocalculated
207 void setIdWidth(int i);
210 * centre columnar annotation labels in displayed alignment annotation
212 boolean isCentreColumnLabels();
215 * centre columnar annotation labels in displayed alignment annotation
217 void setCentreColumnLabels(boolean centreColumnLabels);
220 * enable or disable the display of Database Cross References in the sequence
223 void setShowDBRefs(boolean showdbrefs);
227 * @return true if Database References are to be displayed on tooltips.
229 boolean isShowDBRefs();
233 * @return true if Non-positional features are to be displayed on tooltips.
235 boolean isShowNPFeats();
238 * enable or disable the display of Non-Positional sequence features in the
239 * sequence ID tooltip
243 void setShowNPFeats(boolean shownpfeats);
246 * Get flag to scale protein residues 3 times the width of cDNA bases (only
247 * applicable in SplitFrame views)
251 boolean isScaleProteinAsCdna();
254 * Set flag to scale protein residues 3 times the width of cDNA bases (only
255 * applicable in SplitFrame views)
259 void setScaleProteinAsCdna(boolean b);