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