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
27 void setShowComplementFeatures(boolean b);
29 boolean isShowComplementFeatures();
31 void setShowComplementFeaturesOnTop(boolean b);
33 boolean isShowComplementFeaturesOnTop();
35 void setColourAppliesToAllGroups(boolean b);
37 boolean getColourAppliesToAllGroups();
39 boolean getAbovePIDThreshold();
41 void setIncrement(int inc);
45 boolean getConservationSelected();
47 void setConservationSelected(boolean b);
49 void setShowHiddenMarkers(boolean show);
51 boolean getShowHiddenMarkers();
53 void setScaleRightWrapped(boolean b);
55 void setScaleLeftWrapped(boolean b);
57 void setScaleAboveWrapped(boolean b);
59 boolean getScaleLeftWrapped();
61 boolean getScaleAboveWrapped();
63 boolean getScaleRightWrapped();
65 void setAbovePIDThreshold(boolean b);
67 void setThreshold(int thresh);
71 boolean getShowJVSuffix();
73 void setShowJVSuffix(boolean b);
75 void setWrapAlignment(boolean state);
77 void setShowText(boolean state);
79 void setRenderGaps(boolean state);
81 boolean getColourText();
83 void setColourText(boolean state);
85 void setShowBoxes(boolean state);
87 boolean getWrapAlignment();
89 boolean getShowText();
91 int getWrappedWidth();
93 void setWrappedWidth(int w);
97 void setCharHeight(int h);
101 void setCharWidth(int w);
103 boolean getShowBoxes();
105 boolean getShowUnconserved();
107 void setShowUnconserved(boolean showunconserved);
110 * @return true if a reference sequence is set and should be displayed
112 boolean isDisplayReferenceSeq();
115 * @return set the flag for displaying reference sequences when they are
118 void setDisplayReferenceSeq(boolean displayReferenceSeq);
121 * @return true if colourschemes should render according to reference sequence
122 * rather than consensus if available
124 boolean isColourByReferenceSeq();
126 void setSeqNameItalics(boolean default1);
128 void setShowSequenceFeatures(boolean b);
130 boolean isShowSequenceFeatures();
132 boolean isRightAlignIds();
134 void setRightAlignIds(boolean rightAlignIds);
137 * Returns true if annotation panel should be shown below alignment
141 boolean isShowAnnotation();
144 * Set flag for whether annotation panel should be shown below alignment
148 void setShowAnnotation(boolean b);
150 void setShowSequenceFeaturesHeight(boolean selected);
153 * @return true set flag for deciding if colourschemes should render according
154 * to reference sequence rather than consensus if available
156 void setColourByReferenceSeq(boolean colourByReferenceSeq);
158 Color getTextColour();
160 Color getTextColour2();
162 int getThresholdTextColour();
164 boolean isConservationColourSelected();
166 boolean isRenderGaps();
168 boolean isShowColourText();
170 boolean isShowSequenceFeaturesHeight();
172 void setConservationColourSelected(boolean conservationColourSelected);
174 void setShowColourText(boolean showColourText);
176 void setTextColour(Color textColour);
178 void setThresholdTextColour(int thresholdTextColour);
180 void setTextColour2(Color textColour2);
182 boolean isSeqNameItalics();
184 void setUpperCasebold(boolean upperCasebold);
186 boolean isUpperCasebold();
188 boolean sameStyle(ViewStyleI them);
190 void setFontName(String name);
192 void setFontStyle(int style);
194 void setFontSize(int size);
198 String getFontName();
203 * @return width of Sequence and Annotation ID margin. If less than zero, then
204 * width will be autocalculated
214 void setIdWidth(int i);
217 * centre columnar annotation labels in displayed alignment annotation
219 boolean isCentreColumnLabels();
222 * centre columnar annotation labels in displayed alignment annotation
224 void setCentreColumnLabels(boolean centreColumnLabels);
227 * enable or disable the display of Database Cross References in the sequence
230 void setShowDBRefs(boolean showdbrefs);
234 * @return true if Database References are to be displayed on tooltips.
236 boolean isShowDBRefs();
240 * @return true if Non-positional features are to be displayed on tooltips.
242 boolean isShowNPFeats();
245 * enable or disable the display of Non-Positional sequence features in the
246 * sequence ID tooltip
250 void setShowNPFeats(boolean shownpfeats);
253 * Get flag to scale protein residues 3 times the width of cDNA bases (only
254 * applicable in SplitFrame views)
258 boolean isScaleProteinAsCdna();
261 * Set flag to scale protein residues 3 times the width of cDNA bases (only
262 * applicable in SplitFrame views)
266 void setScaleProteinAsCdna(boolean b);
269 * Answers true if split screen protein and cDNA use the same font
273 boolean isProteinFontAsCdna();
276 * Set the flag for whether split screen protein and cDNA use the same font
280 void setProteinFontAsCdna(boolean b);